From c409d89fe090e8c9bd072728ab02af1f81806bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Saint-F=C3=A9lix?= Date: Wed, 16 Apr 2025 20:14:06 +0200 Subject: [PATCH 1/2] Update API to v8.19.0 (2af113d) --- esapi/api._.go | 34 ++- esapi/api.bulk.go | 16 +- esapi/api.capabilities.go | 14 +- esapi/api.cat.aliases.go | 16 +- esapi/api.cat.allocation.go | 16 +- esapi/api.cat.component_templates.go | 16 +- esapi/api.cat.count.go | 16 +- esapi/api.cat.fielddata.go | 16 +- esapi/api.cat.health.go | 14 +- esapi/api.cat.help.go | 14 +- esapi/api.cat.indices.go | 16 +- esapi/api.cat.master.go | 14 +- esapi/api.cat.nodeattrs.go | 14 +- esapi/api.cat.nodes.go | 14 +- esapi/api.cat.pending_tasks.go | 14 +- esapi/api.cat.plugins.go | 14 +- esapi/api.cat.recovery.go | 16 +- esapi/api.cat.repositories.go | 14 +- esapi/api.cat.segments.go | 16 +- esapi/api.cat.shards.go | 16 +- esapi/api.cat.snapshots.go | 16 +- esapi/api.cat.tasks.go | 14 +- esapi/api.cat.templates.go | 16 +- esapi/api.cat.thread_pool.go | 16 +- esapi/api.clear_scroll.go | 16 +- esapi/api.cluster.allocation_explain.go | 14 +- .../api.cluster.delete_component_template.go | 16 +- ...cluster.delete_voting_config_exclusions.go | 14 +- .../api.cluster.exists_component_template.go | 16 +- esapi/api.cluster.get_component_template.go | 16 +- esapi/api.cluster.get_settings.go | 14 +- esapi/api.cluster.health.go | 16 +- esapi/api.cluster.info.go | 16 +- esapi/api.cluster.pending_tasks.go | 14 +- ...i.cluster.post_voting_config_exclusions.go | 14 +- esapi/api.cluster.put_component_template.go | 16 +- esapi/api.cluster.put_settings.go | 14 +- esapi/api.cluster.remote_info.go | 14 +- esapi/api.cluster.reroute.go | 14 +- esapi/api.cluster.state.go | 18 +- esapi/api.cluster.stats.go | 14 +- esapi/api.connector.check_in.go | 16 +- esapi/api.connector.delete.go | 16 +- esapi/api.connector.get.go | 16 +- esapi/api.connector.last_sync.go | 16 +- esapi/api.connector.list.go | 14 +- esapi/api.connector.post.go | 14 +- esapi/api.connector.put.go | 16 +- esapi/api.connector.secret_delete.go | 16 +- esapi/api.connector.secret_get.go | 16 +- esapi/api.connector.secret_post.go | 14 +- esapi/api.connector.secret_put.go | 16 +- esapi/api.connector.sync_job_cancel.go | 16 +- esapi/api.connector.sync_job_check_in.go | 16 +- esapi/api.connector.sync_job_claim.go | 16 +- esapi/api.connector.sync_job_delete.go | 16 +- esapi/api.connector.sync_job_error.go | 16 +- esapi/api.connector.sync_job_get.go | 16 +- esapi/api.connector.sync_job_list.go | 14 +- esapi/api.connector.sync_job_post.go | 14 +- esapi/api.connector.sync_job_update_stats.go | 16 +- .../api.connector.update_active_filtering.go | 16 +- esapi/api.connector.update_api_key_id.go | 16 +- esapi/api.connector.update_configuration.go | 16 +- esapi/api.connector.update_error.go | 16 +- esapi/api.connector.update_features.go | 16 +- esapi/api.connector.update_filtering.go | 16 +- ...i.connector.update_filtering_validation.go | 16 +- esapi/api.connector.update_index_name.go | 16 +- esapi/api.connector.update_name.go | 16 +- esapi/api.connector.update_native.go | 16 +- esapi/api.connector.update_pipeline.go | 16 +- esapi/api.connector.update_scheduling.go | 16 +- esapi/api.connector.update_service_type.go | 16 +- esapi/api.connector.update_status.go | 16 +- esapi/api.count.go | 16 +- esapi/api.create.go | 18 +- ....dangling_indices.delete_dangling_index.go | 16 +- ....dangling_indices.import_dangling_index.go | 16 +- ....dangling_indices.list_dangling_indices.go | 14 +- esapi/api.delete.go | 18 +- esapi/api.delete_by_query.go | 16 +- esapi/api.delete_by_query_rethrottle.go | 16 +- esapi/api.delete_script.go | 16 +- esapi/api.exists.go | 18 +- esapi/api.exists_source.go | 18 +- esapi/api.explain.go | 18 +- esapi/api.features.get_features.go | 14 +- esapi/api.features.reset_features.go | 14 +- esapi/api.field_caps.go | 16 +- esapi/api.fleet.delete_secret.go | 16 +- esapi/api.fleet.get_secret.go | 16 +- esapi/api.fleet.global_checkpoints.go | 16 +- esapi/api.fleet.msearch.go | 16 +- esapi/api.fleet.post_secret.go | 14 +- esapi/api.fleet.search.go | 16 +- esapi/api.get.go | 18 +- esapi/api.get_script.go | 16 +- esapi/api.get_script_context.go | 14 +- esapi/api.get_script_languages.go | 14 +- esapi/api.get_source.go | 18 +- esapi/api.health_report.go | 16 +- esapi/api.index.go | 18 +- esapi/api.indices.add_block.go | 18 +- esapi/api.indices.analyze.go | 16 +- esapi/api.indices.cancel_migrate_reindex.go | 16 +- esapi/api.indices.clear_cache.go | 16 +- esapi/api.indices.clone.go | 18 +- esapi/api.indices.close.go | 16 +- esapi/api.indices.create.go | 16 +- esapi/api.indices.create_from.go | 18 +- esapi/api.indices.delete.go | 16 +- esapi/api.indices.delete_alias.go | 18 +- esapi/api.indices.delete_data_lifecycle.go | 16 +- esapi/api.indices.delete_index_template.go | 16 +- esapi/api.indices.delete_template.go | 16 +- esapi/api.indices.disk_usage.go | 16 +- esapi/api.indices.downsample.go | 18 +- esapi/api.indices.exists.go | 16 +- esapi/api.indices.exists_alias.go | 18 +- esapi/api.indices.exists_index_template.go | 16 +- esapi/api.indices.exists_template.go | 16 +- esapi/api.indices.explain_data_lifecycle.go | 16 +- esapi/api.indices.field_usage_stats.go | 16 +- esapi/api.indices.flush.go | 16 +- esapi/api.indices.forcemerge.go | 16 +- esapi/api.indices.get.go | 16 +- esapi/api.indices.get_alias.go | 18 +- esapi/api.indices.get_data_lifecycle.go | 16 +- esapi/api.indices.get_data_lifecycle_stats.go | 14 +- esapi/api.indices.get_field_mapping.go | 18 +- esapi/api.indices.get_index_template.go | 16 +- esapi/api.indices.get_mapping.go | 16 +- .../api.indices.get_migrate_reindex_status.go | 16 +- esapi/api.indices.get_settings.go | 18 +- esapi/api.indices.get_template.go | 16 +- esapi/api.indices.migrate_reindex.go | 14 +- esapi/api.indices.modify_data_stream.go | 14 +- esapi/api.indices.open.go | 16 +- esapi/api.indices.put_alias.go | 18 +- esapi/api.indices.put_data_lifecycle.go | 16 +- esapi/api.indices.put_index_template.go | 16 +- esapi/api.indices.put_mapping.go | 14 +- esapi/api.indices.put_settings.go | 16 +- esapi/api.indices.put_template.go | 28 +- esapi/api.indices.recovery.go | 16 +- esapi/api.indices.refresh.go | 16 +- esapi/api.indices.resolve_cluster.go | 16 +- esapi/api.indices.resolve_index.go | 16 +- esapi/api.indices.rollover.go | 18 +- esapi/api.indices.segments.go | 16 +- esapi/api.indices.shard_stores.go | 16 +- esapi/api.indices.shrink.go | 18 +- esapi/api.indices.simulate_index_template.go | 16 +- esapi/api.indices.simulate_template.go | 16 +- esapi/api.indices.split.go | 18 +- esapi/api.indices.stats.go | 18 +- esapi/api.indices.update_aliases.go | 14 +- esapi/api.indices.validate_query.go | 16 +- .../api.inference.chat_completion_unified.go | 16 +- esapi/api.inference.completion.go | 16 +- esapi/api.inference.delete.go | 18 +- esapi/api.inference.get.go | 18 +- esapi/api.inference.inference.go | 22 +- esapi/api.inference.put.go | 18 +- esapi/api.inference.put_alibabacloud.go | 246 ++++++++++++++++++ esapi/api.inference.put_amazonbedrock.go | 246 ++++++++++++++++++ esapi/api.inference.put_anthropic.go | 246 ++++++++++++++++++ esapi/api.inference.put_azureaistudio.go | 246 ++++++++++++++++++ esapi/api.inference.put_azureopenai.go | 246 ++++++++++++++++++ esapi/api.inference.put_cohere.go | 246 ++++++++++++++++++ esapi/api.inference.put_elasticsearch.go | 246 ++++++++++++++++++ esapi/api.inference.put_elser.go | 246 ++++++++++++++++++ esapi/api.inference.put_googleaistudio.go | 246 ++++++++++++++++++ esapi/api.inference.put_googlevertexai.go | 246 ++++++++++++++++++ esapi/api.inference.put_hugging_face.go | 246 ++++++++++++++++++ esapi/api.inference.put_jinaai.go | 246 ++++++++++++++++++ esapi/api.inference.put_mistral.go | 246 ++++++++++++++++++ esapi/api.inference.put_openai.go | 246 ++++++++++++++++++ esapi/api.inference.put_voyageai.go | 246 ++++++++++++++++++ esapi/api.inference.put_watsonx.go | 246 ++++++++++++++++++ esapi/api.inference.rerank.go | 16 +- esapi/api.inference.sparse_embedding.go | 16 +- esapi/api.inference.stream_completion.go | 16 +- esapi/api.inference.text_embedding.go | 16 +- esapi/api.inference.update.go | 18 +- esapi/api.info.go | 14 +- esapi/api.ingest.delete_geoip_database.go | 16 +- .../api.ingest.delete_ip_location_database.go | 16 +- esapi/api.ingest.delete_pipeline.go | 16 +- esapi/api.ingest.geo_ip_stats.go | 14 +- esapi/api.ingest.get_geoip_database.go | 16 +- esapi/api.ingest.get_ip_location_database.go | 16 +- esapi/api.ingest.get_pipeline.go | 16 +- esapi/api.ingest.processor_grok.go | 14 +- esapi/api.ingest.put_geoip_database.go | 16 +- esapi/api.ingest.put_ip_location_database.go | 16 +- esapi/api.ingest.put_pipeline.go | 16 +- esapi/api.ingest.simulate.go | 16 +- esapi/api.knn_search.go | 16 +- esapi/api.mget.go | 16 +- esapi/api.msearch.go | 16 +- esapi/api.msearch_template.go | 16 +- esapi/api.mtermvectors.go | 16 +- ...des.clear_repositories_metering_archive.go | 18 +- ...pi.nodes.get_repositories_metering_info.go | 16 +- esapi/api.nodes.hot_threads.go | 16 +- esapi/api.nodes.info.go | 18 +- esapi/api.nodes.reload_secure_settings.go | 16 +- esapi/api.nodes.stats.go | 20 +- esapi/api.nodes.usage.go | 18 +- esapi/api.ping.go | 14 +- esapi/api.profiling.stacktraces.go | 14 +- esapi/api.profiling.status.go | 14 +- esapi/api.profiling.topn_functions.go | 14 +- esapi/api.put_script.go | 18 +- esapi/api.query_rules.delete_rule.go | 18 +- esapi/api.query_rules.delete_ruleset.go | 16 +- esapi/api.query_rules.get_rule.go | 18 +- esapi/api.query_rules.get_ruleset.go | 16 +- esapi/api.query_rules.list_rulesets.go | 14 +- esapi/api.query_rules.put_rule.go | 18 +- esapi/api.query_rules.put_ruleset.go | 16 +- esapi/api.query_rules.test.go | 16 +- esapi/api.rank_eval.go | 16 +- esapi/api.reindex.go | 14 +- esapi/api.reindex_rethrottle.go | 16 +- esapi/api.render_search_template.go | 16 +- esapi/api.scripts_painless_execute.go | 14 +- esapi/api.scroll.go | 14 +- esapi/api.search.go | 16 +- esapi/api.search_application.delete.go | 16 +- ...application.delete_behavioral_analytics.go | 16 +- esapi/api.search_application.get.go | 16 +- ...ch_application.get_behavioral_analytics.go | 16 +- esapi/api.search_application.list.go | 14 +- ...ication.post_behavioral_analytics_event.go | 18 +- esapi/api.search_application.put.go | 16 +- ...ch_application.put_behavioral_analytics.go | 16 +- esapi/api.search_application.render_query.go | 16 +- esapi/api.search_application.search.go | 16 +- esapi/api.search_mvt.go | 24 +- esapi/api.search_shards.go | 16 +- esapi/api.search_template.go | 16 +- esapi/api.shutdown.delete_node.go | 16 +- esapi/api.shutdown.get_node.go | 16 +- esapi/api.shutdown.put_node.go | 16 +- esapi/api.simulate.ingest.go | 16 +- esapi/api.snapshot.cleanup_repository.go | 16 +- esapi/api.snapshot.clone.go | 20 +- esapi/api.snapshot.create.go | 18 +- esapi/api.snapshot.create_repository.go | 16 +- esapi/api.snapshot.delete.go | 18 +- esapi/api.snapshot.delete_repository.go | 16 +- esapi/api.snapshot.get.go | 18 +- esapi/api.snapshot.get_repository.go | 16 +- esapi/api.snapshot.repository_analyze.go | 16 +- ...pi.snapshot.repository_verify_integrity.go | 16 +- esapi/api.snapshot.restore.go | 18 +- esapi/api.snapshot.status.go | 18 +- esapi/api.snapshot.verify_repository.go | 16 +- esapi/api.synonyms.delete_synonym.go | 16 +- esapi/api.synonyms.delete_synonym_rule.go | 18 +- esapi/api.synonyms.get_synonym.go | 16 +- esapi/api.synonyms.get_synonym_rule.go | 18 +- esapi/api.synonyms.get_synonyms_sets.go | 14 +- esapi/api.synonyms.put_synonym.go | 16 +- esapi/api.synonyms.put_synonym_rule.go | 18 +- esapi/api.tasks.cancel.go | 16 +- esapi/api.tasks.get.go | 16 +- esapi/api.tasks.list.go | 14 +- esapi/api.terms_enum.go | 16 +- esapi/api.termvectors.go | 18 +- esapi/api.update.go | 18 +- esapi/api.update_by_query.go | 16 +- esapi/api.update_by_query_rethrottle.go | 16 +- esapi/api.xpack.async_search.delete.go | 16 +- esapi/api.xpack.async_search.get.go | 16 +- esapi/api.xpack.async_search.status.go | 16 +- esapi/api.xpack.async_search.submit.go | 16 +- ...k.autoscaling.delete_autoscaling_policy.go | 16 +- ...ck.autoscaling.get_autoscaling_capacity.go | 14 +- ...pack.autoscaling.get_autoscaling_policy.go | 16 +- ...pack.autoscaling.put_autoscaling_policy.go | 16 +- .../api.xpack.cat.ml_data_frame_analytics.go | 16 +- esapi/api.xpack.cat.ml_datafeeds.go | 16 +- esapi/api.xpack.cat.ml_jobs.go | 16 +- esapi/api.xpack.cat.ml_trained_models.go | 16 +- esapi/api.xpack.cat.transforms.go | 16 +- ...pi.xpack.ccr.delete_auto_follow_pattern.go | 16 +- esapi/api.xpack.ccr.follow.go | 16 +- esapi/api.xpack.ccr.follow_info.go | 16 +- esapi/api.xpack.ccr.follow_stats.go | 16 +- esapi/api.xpack.ccr.forget_follower.go | 16 +- .../api.xpack.ccr.get_auto_follow_pattern.go | 16 +- ...api.xpack.ccr.pause_auto_follow_pattern.go | 16 +- esapi/api.xpack.ccr.pause_follow.go | 16 +- .../api.xpack.ccr.put_auto_follow_pattern.go | 16 +- ...pi.xpack.ccr.resume_auto_follow_pattern.go | 16 +- esapi/api.xpack.ccr.resume_follow.go | 16 +- esapi/api.xpack.ccr.stats.go | 14 +- esapi/api.xpack.ccr.unfollow.go | 16 +- esapi/api.xpack.close_point_in_time.go | 14 +- esapi/api.xpack.enrich.delete_policy.go | 16 +- esapi/api.xpack.enrich.execute_policy.go | 16 +- esapi/api.xpack.enrich.get_policy.go | 16 +- esapi/api.xpack.enrich.put_policy.go | 16 +- esapi/api.xpack.enrich.stats.go | 14 +- esapi/api.xpack.eql.delete.go | 16 +- esapi/api.xpack.eql.get.go | 16 +- esapi/api.xpack.eql.get_status.go | 16 +- esapi/api.xpack.eql.search.go | 16 +- esapi/api.xpack.esql.async_query.go | 14 +- esapi/api.xpack.esql.async_query_delete.go | 16 +- esapi/api.xpack.esql.async_query_get.go | 16 +- esapi/api.xpack.esql.async_query_stop.go | 16 +- esapi/api.xpack.esql.query.go | 14 +- esapi/api.xpack.graph.explore.go | 16 +- esapi/api.xpack.ilm.delete_lifecycle.go | 16 +- esapi/api.xpack.ilm.explain_lifecycle.go | 16 +- esapi/api.xpack.ilm.get_lifecycle.go | 16 +- esapi/api.xpack.ilm.get_status.go | 14 +- esapi/api.xpack.ilm.migrate_to_data_tiers.go | 14 +- esapi/api.xpack.ilm.move_to_step.go | 16 +- esapi/api.xpack.ilm.put_lifecycle.go | 16 +- esapi/api.xpack.ilm.remove_policy.go | 16 +- esapi/api.xpack.ilm.retry.go | 16 +- esapi/api.xpack.ilm.start.go | 14 +- esapi/api.xpack.ilm.stop.go | 14 +- esapi/api.xpack.indices.create_data_stream.go | 16 +- esapi/api.xpack.indices.data_streams_stats.go | 16 +- esapi/api.xpack.indices.delete_data_stream.go | 16 +- esapi/api.xpack.indices.get_data_stream.go | 16 +- ...pi.xpack.indices.migrate_to_data_stream.go | 16 +- .../api.xpack.indices.promote_data_stream.go | 16 +- ...i.xpack.indices.reload_search_analyzers.go | 16 +- esapi/api.xpack.indices.unfreeze.go | 16 +- esapi/api.xpack.license.delete.go | 14 +- esapi/api.xpack.license.get.go | 14 +- esapi/api.xpack.license.get_basic_status.go | 14 +- esapi/api.xpack.license.get_trial_status.go | 14 +- esapi/api.xpack.license.post.go | 14 +- esapi/api.xpack.license.post_start_basic.go | 14 +- esapi/api.xpack.license.post_start_trial.go | 14 +- esapi/api.xpack.logstash.delete_pipeline.go | 16 +- esapi/api.xpack.logstash.get_pipeline.go | 16 +- esapi/api.xpack.logstash.put_pipeline.go | 16 +- esapi/api.xpack.migration.deprecations.go | 16 +- ...ck.migration.get_feature_upgrade_status.go | 14 +- ...pi.xpack.migration.post_feature_upgrade.go | 14 +- ...ml.clear_trained_model_deployment_cache.go | 16 +- esapi/api.xpack.ml.close_job.go | 16 +- esapi/api.xpack.ml.delete_calendar.go | 16 +- esapi/api.xpack.ml.delete_calendar_event.go | 18 +- esapi/api.xpack.ml.delete_calendar_job.go | 18 +- ...pi.xpack.ml.delete_data_frame_analytics.go | 16 +- esapi/api.xpack.ml.delete_datafeed.go | 16 +- esapi/api.xpack.ml.delete_expired_data.go | 16 +- esapi/api.xpack.ml.delete_filter.go | 16 +- esapi/api.xpack.ml.delete_forecast.go | 18 +- esapi/api.xpack.ml.delete_job.go | 16 +- esapi/api.xpack.ml.delete_model_snapshot.go | 18 +- esapi/api.xpack.ml.delete_trained_model.go | 16 +- ...api.xpack.ml.delete_trained_model_alias.go | 18 +- esapi/api.xpack.ml.estimate_model_memory.go | 14 +- esapi/api.xpack.ml.evaluate_data_frame.go | 14 +- ...i.xpack.ml.explain_data_frame_analytics.go | 16 +- esapi/api.xpack.ml.flush_job.go | 16 +- esapi/api.xpack.ml.forecast.go | 16 +- esapi/api.xpack.ml.get_buckets.go | 18 +- esapi/api.xpack.ml.get_calendar_events.go | 16 +- esapi/api.xpack.ml.get_calendars.go | 16 +- esapi/api.xpack.ml.get_categories.go | 18 +- .../api.xpack.ml.get_data_frame_analytics.go | 16 +- ...xpack.ml.get_data_frame_analytics_stats.go | 16 +- esapi/api.xpack.ml.get_datafeed_stats.go | 16 +- esapi/api.xpack.ml.get_datafeeds.go | 16 +- esapi/api.xpack.ml.get_filters.go | 16 +- esapi/api.xpack.ml.get_influencers.go | 16 +- esapi/api.xpack.ml.get_job_stats.go | 16 +- esapi/api.xpack.ml.get_jobs.go | 16 +- esapi/api.xpack.ml.get_memory_stats.go | 16 +- ...ack.ml.get_model_snapshot_upgrade_stats.go | 18 +- esapi/api.xpack.ml.get_model_snapshots.go | 18 +- esapi/api.xpack.ml.get_overall_buckets.go | 16 +- esapi/api.xpack.ml.get_records.go | 16 +- esapi/api.xpack.ml.get_trained_models.go | 16 +- .../api.xpack.ml.get_trained_models_stats.go | 16 +- esapi/api.xpack.ml.infer_trained_model.go | 16 +- esapi/api.xpack.ml.info.go | 14 +- esapi/api.xpack.ml.open_job.go | 16 +- esapi/api.xpack.ml.post_calendar_events.go | 16 +- esapi/api.xpack.ml.post_data.go | 16 +- ...i.xpack.ml.preview_data_frame_analytics.go | 16 +- esapi/api.xpack.ml.preview_datafeed.go | 16 +- esapi/api.xpack.ml.put_calendar.go | 16 +- esapi/api.xpack.ml.put_calendar_job.go | 18 +- .../api.xpack.ml.put_data_frame_analytics.go | 16 +- esapi/api.xpack.ml.put_datafeed.go | 16 +- esapi/api.xpack.ml.put_filter.go | 16 +- esapi/api.xpack.ml.put_job.go | 16 +- esapi/api.xpack.ml.put_trained_model.go | 16 +- esapi/api.xpack.ml.put_trained_model_alias.go | 18 +- ...ck.ml.put_trained_model_definition_part.go | 18 +- ...i.xpack.ml.put_trained_model_vocabulary.go | 16 +- esapi/api.xpack.ml.reset_job.go | 16 +- esapi/api.xpack.ml.revert_model_snapshot.go | 18 +- esapi/api.xpack.ml.set_upgrade_mode.go | 14 +- ...api.xpack.ml.start_data_frame_analytics.go | 16 +- esapi/api.xpack.ml.start_datafeed.go | 16 +- ...xpack.ml.start_trained_model_deployment.go | 16 +- .../api.xpack.ml.stop_data_frame_analytics.go | 16 +- esapi/api.xpack.ml.stop_datafeed.go | 16 +- ....xpack.ml.stop_trained_model_deployment.go | 16 +- ...pi.xpack.ml.update_data_frame_analytics.go | 16 +- esapi/api.xpack.ml.update_datafeed.go | 16 +- esapi/api.xpack.ml.update_filter.go | 16 +- esapi/api.xpack.ml.update_job.go | 16 +- esapi/api.xpack.ml.update_model_snapshot.go | 18 +- ...pack.ml.update_trained_model_deployment.go | 16 +- esapi/api.xpack.ml.upgrade_job_snapshot.go | 18 +- esapi/api.xpack.ml.validate.go | 14 +- esapi/api.xpack.ml.validate_detector.go | 14 +- esapi/api.xpack.monitoring.bulk.go | 16 +- esapi/api.xpack.open_point_in_time.go | 16 +- esapi/api.xpack.profiling.flamegraph.go | 14 +- esapi/api.xpack.rollup.delete_job.go | 16 +- esapi/api.xpack.rollup.get_jobs.go | 16 +- esapi/api.xpack.rollup.get_rollup_caps.go | 16 +- .../api.xpack.rollup.get_rollup_index_caps.go | 16 +- esapi/api.xpack.rollup.put_job.go | 16 +- esapi/api.xpack.rollup.rollup_search.go | 16 +- esapi/api.xpack.rollup.start_job.go | 16 +- esapi/api.xpack.rollup.stop_job.go | 16 +- ....xpack.searchable_snapshots.cache_stats.go | 16 +- ....xpack.searchable_snapshots.clear_cache.go | 16 +- esapi/api.xpack.searchable_snapshots.mount.go | 18 +- esapi/api.xpack.searchable_snapshots.stats.go | 16 +- ...pi.xpack.security.activate_user_profile.go | 14 +- esapi/api.xpack.security.authenticate.go | 14 +- esapi/api.xpack.security.bulk_delete_role.go | 14 +- esapi/api.xpack.security.bulk_put_role.go | 14 +- ...api.xpack.security.bulk_update_api_keys.go | 14 +- esapi/api.xpack.security.change_password.go | 16 +- .../api.xpack.security.clear_api_key_cache.go | 16 +- ....xpack.security.clear_cached_privileges.go | 16 +- .../api.xpack.security.clear_cached_realms.go | 16 +- .../api.xpack.security.clear_cached_roles.go | 16 +- ...ck.security.clear_cached_service_tokens.go | 20 +- esapi/api.xpack.security.create_api_key.go | 14 +- ...k.security.create_cross_cluster_api_key.go | 14 +- ...api.xpack.security.create_service_token.go | 20 +- esapi/api.xpack.security.delegate_pki.go | 14 +- esapi/api.xpack.security.delete_privileges.go | 18 +- esapi/api.xpack.security.delete_role.go | 16 +- .../api.xpack.security.delete_role_mapping.go | 16 +- ...api.xpack.security.delete_service_token.go | 20 +- esapi/api.xpack.security.delete_user.go | 16 +- esapi/api.xpack.security.disable_user.go | 16 +- ...api.xpack.security.disable_user_profile.go | 16 +- esapi/api.xpack.security.enable_user.go | 16 +- .../api.xpack.security.enable_user_profile.go | 16 +- esapi/api.xpack.security.enroll_kibana.go | 14 +- esapi/api.xpack.security.enroll_node.go | 14 +- esapi/api.xpack.security.get_api_key.go | 14 +- ...i.xpack.security.get_builtin_privileges.go | 14 +- esapi/api.xpack.security.get_privileges.go | 18 +- esapi/api.xpack.security.get_role.go | 16 +- esapi/api.xpack.security.get_role_mapping.go | 16 +- ...api.xpack.security.get_service_accounts.go | 18 +- ....xpack.security.get_service_credentials.go | 18 +- esapi/api.xpack.security.get_settings.go | 14 +- esapi/api.xpack.security.get_token.go | 14 +- esapi/api.xpack.security.get_user.go | 16 +- .../api.xpack.security.get_user_privileges.go | 14 +- esapi/api.xpack.security.get_user_profile.go | 16 +- esapi/api.xpack.security.grant_api_key.go | 14 +- esapi/api.xpack.security.has_privileges.go | 16 +- ...ck.security.has_privileges_user_profile.go | 14 +- .../api.xpack.security.invalidate_api_key.go | 14 +- esapi/api.xpack.security.invalidate_token.go | 14 +- esapi/api.xpack.security.oidc_authenticate.go | 14 +- esapi/api.xpack.security.oidc_logout.go | 14 +- ...ck.security.oidc_prepare_authentication.go | 14 +- esapi/api.xpack.security.put_privileges.go | 14 +- esapi/api.xpack.security.put_role.go | 16 +- esapi/api.xpack.security.put_role_mapping.go | 16 +- esapi/api.xpack.security.put_user.go | 16 +- esapi/api.xpack.security.query_api_keys.go | 14 +- esapi/api.xpack.security.query_role.go | 14 +- esapi/api.xpack.security.query_user.go | 14 +- esapi/api.xpack.security.saml_authenticate.go | 14 +- ...api.xpack.security.saml_complete_logout.go | 14 +- esapi/api.xpack.security.saml_invalidate.go | 14 +- esapi/api.xpack.security.saml_logout.go | 14 +- ...ck.security.saml_prepare_authentication.go | 14 +- ...security.saml_service_provider_metadata.go | 16 +- ...pi.xpack.security.suggest_user_profiles.go | 14 +- esapi/api.xpack.security.update_api_key.go | 16 +- ...k.security.update_cross_cluster_api_key.go | 16 +- esapi/api.xpack.security.update_settings.go | 14 +- ...xpack.security.update_user_profile_data.go | 16 +- esapi/api.xpack.slm.delete_lifecycle.go | 16 +- esapi/api.xpack.slm.execute_lifecycle.go | 16 +- esapi/api.xpack.slm.execute_retention.go | 14 +- esapi/api.xpack.slm.get_lifecycle.go | 16 +- esapi/api.xpack.slm.get_stats.go | 14 +- esapi/api.xpack.slm.get_status.go | 14 +- esapi/api.xpack.slm.put_lifecycle.go | 16 +- esapi/api.xpack.slm.start.go | 14 +- esapi/api.xpack.slm.stop.go | 14 +- esapi/api.xpack.sql.clear_cursor.go | 14 +- esapi/api.xpack.sql.delete_async.go | 16 +- esapi/api.xpack.sql.get_async.go | 16 +- esapi/api.xpack.sql.get_async_status.go | 16 +- esapi/api.xpack.sql.query.go | 14 +- esapi/api.xpack.sql.translate.go | 14 +- esapi/api.xpack.ssl.certificates.go | 14 +- ...ack.text_structure.find_field_structure.go | 18 +- ...k.text_structure.find_message_structure.go | 14 +- ...api.xpack.text_structure.find_structure.go | 14 +- ....xpack.text_structure.test_grok_pattern.go | 14 +- esapi/api.xpack.transform.delete_transform.go | 16 +- esapi/api.xpack.transform.get_node_stats.go | 14 +- esapi/api.xpack.transform.get_transform.go | 16 +- ...api.xpack.transform.get_transform_stats.go | 16 +- .../api.xpack.transform.preview_transform.go | 16 +- esapi/api.xpack.transform.put_transform.go | 16 +- esapi/api.xpack.transform.reset_transform.go | 16 +- ....xpack.transform.schedule_now_transform.go | 16 +- esapi/api.xpack.transform.start_transform.go | 16 +- esapi/api.xpack.transform.stop_transform.go | 16 +- esapi/api.xpack.transform.update_transform.go | 16 +- .../api.xpack.transform.upgrade_transforms.go | 14 +- esapi/api.xpack.watcher.ack_watch.go | 18 +- esapi/api.xpack.watcher.activate_watch.go | 16 +- esapi/api.xpack.watcher.deactivate_watch.go | 16 +- esapi/api.xpack.watcher.delete_watch.go | 16 +- esapi/api.xpack.watcher.execute_watch.go | 16 +- esapi/api.xpack.watcher.get_settings.go | 14 +- esapi/api.xpack.watcher.get_watch.go | 16 +- esapi/api.xpack.watcher.put_watch.go | 16 +- esapi/api.xpack.watcher.query_watches.go | 14 +- esapi/api.xpack.watcher.start.go | 14 +- esapi/api.xpack.watcher.stats.go | 16 +- esapi/api.xpack.watcher.stop.go | 14 +- esapi/api.xpack.watcher.update_settings.go | 14 +- esapi/api.xpack.xpack.info.go | 14 +- esapi/api.xpack.xpack.usage.go | 14 +- esapi/test/go.mod | 2 +- 550 files changed, 8192 insertions(+), 4214 deletions(-) create mode 100644 esapi/api.inference.put_alibabacloud.go create mode 100644 esapi/api.inference.put_amazonbedrock.go create mode 100644 esapi/api.inference.put_anthropic.go create mode 100644 esapi/api.inference.put_azureaistudio.go create mode 100644 esapi/api.inference.put_azureopenai.go create mode 100644 esapi/api.inference.put_cohere.go create mode 100644 esapi/api.inference.put_elasticsearch.go create mode 100644 esapi/api.inference.put_elser.go create mode 100644 esapi/api.inference.put_googleaistudio.go create mode 100644 esapi/api.inference.put_googlevertexai.go create mode 100644 esapi/api.inference.put_hugging_face.go create mode 100644 esapi/api.inference.put_jinaai.go create mode 100644 esapi/api.inference.put_mistral.go create mode 100644 esapi/api.inference.put_openai.go create mode 100644 esapi/api.inference.put_voyageai.go create mode 100644 esapi/api.inference.put_watsonx.go diff --git a/esapi/api._.go b/esapi/api._.go index 2d6c732ff7..298fb4cf37 100755 --- a/esapi/api._.go +++ b/esapi/api._.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.19.0 (4ac5dd1): DO NOT EDIT +// Code generated from specification version 8.19.0 (2af113d): DO NOT EDIT package esapi @@ -133,7 +133,23 @@ type API struct { InferenceDelete InferenceDelete InferenceGet InferenceGet InferenceInference InferenceInference + InferencePutAlibabacloud InferencePutAlibabacloud + InferencePutAmazonbedrock InferencePutAmazonbedrock + InferencePutAnthropic InferencePutAnthropic + InferencePutAzureaistudio InferencePutAzureaistudio + InferencePutAzureopenai InferencePutAzureopenai + InferencePutCohere InferencePutCohere + InferencePutElasticsearch InferencePutElasticsearch + InferencePutElser InferencePutElser + InferencePutGoogleaistudio InferencePutGoogleaistudio + InferencePutGooglevertexai InferencePutGooglevertexai + InferencePutHuggingFace InferencePutHuggingFace + InferencePutJinaai InferencePutJinaai + InferencePutMistral InferencePutMistral + InferencePutOpenai InferencePutOpenai InferencePut InferencePut + InferencePutVoyageai InferencePutVoyageai + InferencePutWatsonx InferencePutWatsonx InferenceRerank InferenceRerank InferenceSparseEmbedding InferenceSparseEmbedding InferenceStreamCompletion InferenceStreamCompletion @@ -754,7 +770,23 @@ func New(t Transport) *API { InferenceDelete: newInferenceDeleteFunc(t), InferenceGet: newInferenceGetFunc(t), InferenceInference: newInferenceInferenceFunc(t), + InferencePutAlibabacloud: newInferencePutAlibabacloudFunc(t), + InferencePutAmazonbedrock: newInferencePutAmazonbedrockFunc(t), + InferencePutAnthropic: newInferencePutAnthropicFunc(t), + InferencePutAzureaistudio: newInferencePutAzureaistudioFunc(t), + InferencePutAzureopenai: newInferencePutAzureopenaiFunc(t), + InferencePutCohere: newInferencePutCohereFunc(t), + InferencePutElasticsearch: newInferencePutElasticsearchFunc(t), + InferencePutElser: newInferencePutElserFunc(t), + InferencePutGoogleaistudio: newInferencePutGoogleaistudioFunc(t), + InferencePutGooglevertexai: newInferencePutGooglevertexaiFunc(t), + InferencePutHuggingFace: newInferencePutHuggingFaceFunc(t), + InferencePutJinaai: newInferencePutJinaaiFunc(t), + InferencePutMistral: newInferencePutMistralFunc(t), + InferencePutOpenai: newInferencePutOpenaiFunc(t), InferencePut: newInferencePutFunc(t), + InferencePutVoyageai: newInferencePutVoyageaiFunc(t), + InferencePutWatsonx: newInferencePutWatsonxFunc(t), InferenceRerank: newInferenceRerankFunc(t), InferenceSparseEmbedding: newInferenceSparseEmbeddingFunc(t), InferenceStreamCompletion: newInferenceStreamCompletionFunc(t), diff --git a/esapi/api.bulk.go b/esapi/api.bulk.go index c5602f1516..333d04415e 100644 --- a/esapi/api.bulk.go +++ b/esapi/api.bulk.go @@ -36,7 +36,7 @@ func newBulkFunc(t Transport) Bulk { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -79,7 +79,7 @@ type BulkRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -91,7 +91,7 @@ func (r BulkRequest) Do(providedCtx context.Context, transport Transport) (*Resp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "bulk") defer instrument.Close(ctx) } @@ -106,7 +106,7 @@ func (r BulkRequest) Do(providedCtx context.Context, transport Transport) (*Resp if r.Index != "" { path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } } @@ -185,7 +185,7 @@ func (r BulkRequest) Do(providedCtx context.Context, transport Transport) (*Resp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -219,18 +219,18 @@ func (r BulkRequest) Do(providedCtx context.Context, transport Transport) (*Resp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "bulk") if reader := instrument.RecordRequestBody(ctx, "bulk", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "bulk") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.capabilities.go b/esapi/api.capabilities.go index 8b2d99fb6d..7348195e02 100644 --- a/esapi/api.capabilities.go +++ b/esapi/api.capabilities.go @@ -34,7 +34,7 @@ func newCapabilitiesFunc(t Transport) Capabilities { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type CapabilitiesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r CapabilitiesRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "capabilities") defer instrument.Close(ctx) } @@ -133,7 +133,7 @@ func (r CapabilitiesRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -163,15 +163,15 @@ func (r CapabilitiesRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "capabilities") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "capabilities") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.aliases.go b/esapi/api.cat.aliases.go index b7450b7146..6a11e4a552 100644 --- a/esapi/api.cat.aliases.go +++ b/esapi/api.cat.aliases.go @@ -34,7 +34,7 @@ func newCatAliasesFunc(t Transport) CatAliases { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type CatAliasesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r CatAliasesRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.aliases") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r CatAliasesRequest) Do(providedCtx context.Context, transport Transport) if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -153,7 +153,7 @@ func (r CatAliasesRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -183,15 +183,15 @@ func (r CatAliasesRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.aliases") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.aliases") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.allocation.go b/esapi/api.cat.allocation.go index 8a7a696238..4b8fd52fbd 100644 --- a/esapi/api.cat.allocation.go +++ b/esapi/api.cat.allocation.go @@ -35,7 +35,7 @@ func newCatAllocationFunc(t Transport) CatAllocation { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type CatAllocationRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r CatAllocationRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.allocation") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r CatAllocationRequest) Do(providedCtx context.Context, transport Transpor if len(r.NodeID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } } @@ -159,7 +159,7 @@ func (r CatAllocationRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -189,15 +189,15 @@ func (r CatAllocationRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.allocation") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.allocation") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.component_templates.go b/esapi/api.cat.component_templates.go index 0acac59605..61cd4ea98d 100644 --- a/esapi/api.cat.component_templates.go +++ b/esapi/api.cat.component_templates.go @@ -35,7 +35,7 @@ func newCatComponentTemplatesFunc(t Transport) CatComponentTemplates { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type CatComponentTemplatesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r CatComponentTemplatesRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.component_templates") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r CatComponentTemplatesRequest) Do(providedCtx context.Context, transport if r.Name != "" { path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } } @@ -154,7 +154,7 @@ func (r CatComponentTemplatesRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -184,15 +184,15 @@ func (r CatComponentTemplatesRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.component_templates") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.component_templates") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.count.go b/esapi/api.cat.count.go index 8e1f8a6011..23ed83a945 100644 --- a/esapi/api.cat.count.go +++ b/esapi/api.cat.count.go @@ -34,7 +34,7 @@ func newCatCountFunc(t Transport) CatCount { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type CatCountRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r CatCountRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.count") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r CatCountRequest) Do(providedCtx context.Context, transport Transport) (* if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -143,7 +143,7 @@ func (r CatCountRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,15 +173,15 @@ func (r CatCountRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.count") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.count") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.fielddata.go b/esapi/api.cat.fielddata.go index 599aa5c7e7..7acf0f2b88 100644 --- a/esapi/api.cat.fielddata.go +++ b/esapi/api.cat.fielddata.go @@ -34,7 +34,7 @@ func newCatFielddataFunc(t Transport) CatFielddata { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type CatFielddataRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r CatFielddataRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.fielddata") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r CatFielddataRequest) Do(providedCtx context.Context, transport Transport if len(r.Fields) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Fields, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "fields", strings.Join(r.Fields, ",")) } } @@ -152,7 +152,7 @@ func (r CatFielddataRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -182,15 +182,15 @@ func (r CatFielddataRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.fielddata") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.fielddata") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.health.go b/esapi/api.cat.health.go index 0cd8731c31..763a7697ae 100644 --- a/esapi/api.cat.health.go +++ b/esapi/api.cat.health.go @@ -34,7 +34,7 @@ func newCatHealthFunc(t Transport) CatHealth { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type CatHealthRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r CatHealthRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.health") defer instrument.Close(ctx) } @@ -141,7 +141,7 @@ func (r CatHealthRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -171,15 +171,15 @@ func (r CatHealthRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.health") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.health") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.help.go b/esapi/api.cat.help.go index 657d8d44bd..f8ec95f831 100644 --- a/esapi/api.cat.help.go +++ b/esapi/api.cat.help.go @@ -33,7 +33,7 @@ func newCatHelpFunc(t Transport) CatHelp { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type CatHelpRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r CatHelpRequest) Do(providedCtx context.Context, transport Transport) (*R ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.help") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r CatHelpRequest) Do(providedCtx context.Context, transport Transport) (*R req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r CatHelpRequest) Do(providedCtx context.Context, transport Transport) (*R req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.help") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.help") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.indices.go b/esapi/api.cat.indices.go index 9fe0f2c544..bc11d00833 100644 --- a/esapi/api.cat.indices.go +++ b/esapi/api.cat.indices.go @@ -35,7 +35,7 @@ func newCatIndicesFunc(t Transport) CatIndices { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -75,7 +75,7 @@ type CatIndicesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -87,7 +87,7 @@ func (r CatIndicesRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.indices") defer instrument.Close(ctx) } @@ -106,7 +106,7 @@ func (r CatIndicesRequest) Do(providedCtx context.Context, transport Transport) if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -179,7 +179,7 @@ func (r CatIndicesRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -209,15 +209,15 @@ func (r CatIndicesRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.indices") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.indices") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.master.go b/esapi/api.cat.master.go index 9ae728ac60..c98c9a53ed 100644 --- a/esapi/api.cat.master.go +++ b/esapi/api.cat.master.go @@ -35,7 +35,7 @@ func newCatMasterFunc(t Transport) CatMaster { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type CatMasterRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r CatMasterRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.master") defer instrument.Close(ctx) } @@ -142,7 +142,7 @@ func (r CatMasterRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -172,15 +172,15 @@ func (r CatMasterRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.master") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.master") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.nodeattrs.go b/esapi/api.cat.nodeattrs.go index fe4091508e..a74d06c50b 100644 --- a/esapi/api.cat.nodeattrs.go +++ b/esapi/api.cat.nodeattrs.go @@ -35,7 +35,7 @@ func newCatNodeattrsFunc(t Transport) CatNodeattrs { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type CatNodeattrsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r CatNodeattrsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.nodeattrs") defer instrument.Close(ctx) } @@ -142,7 +142,7 @@ func (r CatNodeattrsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -172,15 +172,15 @@ func (r CatNodeattrsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.nodeattrs") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.nodeattrs") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.nodes.go b/esapi/api.cat.nodes.go index 57ebb924a3..cc2f802df5 100644 --- a/esapi/api.cat.nodes.go +++ b/esapi/api.cat.nodes.go @@ -35,7 +35,7 @@ func newCatNodesFunc(t Transport) CatNodes { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type CatNodesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r CatNodesRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.nodes") defer instrument.Close(ctx) } @@ -157,7 +157,7 @@ func (r CatNodesRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -187,15 +187,15 @@ func (r CatNodesRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.nodes") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.nodes") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.pending_tasks.go b/esapi/api.cat.pending_tasks.go index 8a0fa26f96..d35199fbf7 100644 --- a/esapi/api.cat.pending_tasks.go +++ b/esapi/api.cat.pending_tasks.go @@ -35,7 +35,7 @@ func newCatPendingTasksFunc(t Transport) CatPendingTasks { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type CatPendingTasksRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r CatPendingTasksRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.pending_tasks") defer instrument.Close(ctx) } @@ -147,7 +147,7 @@ func (r CatPendingTasksRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -177,15 +177,15 @@ func (r CatPendingTasksRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.pending_tasks") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.pending_tasks") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.plugins.go b/esapi/api.cat.plugins.go index 4f2c72cd6c..1a76785770 100644 --- a/esapi/api.cat.plugins.go +++ b/esapi/api.cat.plugins.go @@ -35,7 +35,7 @@ func newCatPluginsFunc(t Transport) CatPlugins { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type CatPluginsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r CatPluginsRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.plugins") defer instrument.Close(ctx) } @@ -147,7 +147,7 @@ func (r CatPluginsRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -177,15 +177,15 @@ func (r CatPluginsRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.plugins") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.plugins") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.recovery.go b/esapi/api.cat.recovery.go index 0c52ea1275..c54411ff03 100644 --- a/esapi/api.cat.recovery.go +++ b/esapi/api.cat.recovery.go @@ -34,7 +34,7 @@ func newCatRecoveryFunc(t Transport) CatRecovery { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type CatRecoveryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r CatRecoveryRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.recovery") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r CatRecoveryRequest) Do(providedCtx context.Context, transport Transport) if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -167,7 +167,7 @@ func (r CatRecoveryRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -197,15 +197,15 @@ func (r CatRecoveryRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.recovery") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.recovery") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.repositories.go b/esapi/api.cat.repositories.go index 68527ea5e8..2048c46ad1 100644 --- a/esapi/api.cat.repositories.go +++ b/esapi/api.cat.repositories.go @@ -35,7 +35,7 @@ func newCatRepositoriesFunc(t Transport) CatRepositories { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type CatRepositoriesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r CatRepositoriesRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.repositories") defer instrument.Close(ctx) } @@ -142,7 +142,7 @@ func (r CatRepositoriesRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -172,15 +172,15 @@ func (r CatRepositoriesRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.repositories") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.repositories") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.segments.go b/esapi/api.cat.segments.go index aa58444000..20f21094ac 100644 --- a/esapi/api.cat.segments.go +++ b/esapi/api.cat.segments.go @@ -35,7 +35,7 @@ func newCatSegmentsFunc(t Transport) CatSegments { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type CatSegmentsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r CatSegmentsRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.segments") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r CatSegmentsRequest) Do(providedCtx context.Context, transport Transport) if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -159,7 +159,7 @@ func (r CatSegmentsRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -189,15 +189,15 @@ func (r CatSegmentsRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.segments") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.segments") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.shards.go b/esapi/api.cat.shards.go index 35df82a4c2..20eddc80d7 100644 --- a/esapi/api.cat.shards.go +++ b/esapi/api.cat.shards.go @@ -35,7 +35,7 @@ func newCatShardsFunc(t Transport) CatShards { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type CatShardsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r CatShardsRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.shards") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r CatShardsRequest) Do(providedCtx context.Context, transport Transport) ( if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -159,7 +159,7 @@ func (r CatShardsRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -189,15 +189,15 @@ func (r CatShardsRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.shards") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.shards") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.snapshots.go b/esapi/api.cat.snapshots.go index 999822be00..5e8bd87169 100644 --- a/esapi/api.cat.snapshots.go +++ b/esapi/api.cat.snapshots.go @@ -35,7 +35,7 @@ func newCatSnapshotsFunc(t Transport) CatSnapshots { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type CatSnapshotsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r CatSnapshotsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.snapshots") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r CatSnapshotsRequest) Do(providedCtx context.Context, transport Transport if len(r.Repository) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Repository, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", strings.Join(r.Repository, ",")) } } @@ -159,7 +159,7 @@ func (r CatSnapshotsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -189,15 +189,15 @@ func (r CatSnapshotsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.snapshots") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.snapshots") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.tasks.go b/esapi/api.cat.tasks.go index eeaeaac481..e6227d1cae 100644 --- a/esapi/api.cat.tasks.go +++ b/esapi/api.cat.tasks.go @@ -35,7 +35,7 @@ func newCatTasksFunc(t Transport) CatTasks { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -75,7 +75,7 @@ type CatTasksRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -87,7 +87,7 @@ func (r CatTasksRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.tasks") defer instrument.Close(ctx) } @@ -169,7 +169,7 @@ func (r CatTasksRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -199,15 +199,15 @@ func (r CatTasksRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.tasks") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.tasks") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.templates.go b/esapi/api.cat.templates.go index d46e5f93be..3fc64f311b 100644 --- a/esapi/api.cat.templates.go +++ b/esapi/api.cat.templates.go @@ -35,7 +35,7 @@ func newCatTemplatesFunc(t Transport) CatTemplates { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type CatTemplatesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r CatTemplatesRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.templates") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r CatTemplatesRequest) Do(providedCtx context.Context, transport Transport if r.Name != "" { path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } } @@ -154,7 +154,7 @@ func (r CatTemplatesRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -184,15 +184,15 @@ func (r CatTemplatesRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.templates") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.templates") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cat.thread_pool.go b/esapi/api.cat.thread_pool.go index 2bb326a769..014a348171 100644 --- a/esapi/api.cat.thread_pool.go +++ b/esapi/api.cat.thread_pool.go @@ -35,7 +35,7 @@ func newCatThreadPoolFunc(t Transport) CatThreadPool { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type CatThreadPoolRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r CatThreadPoolRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.thread_pool") defer instrument.Close(ctx) } @@ -103,7 +103,7 @@ func (r CatThreadPoolRequest) Do(providedCtx context.Context, transport Transpor if len(r.ThreadPoolPatterns) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.ThreadPoolPatterns, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "thread_pool_patterns", strings.Join(r.ThreadPoolPatterns, ",")) } } @@ -160,7 +160,7 @@ func (r CatThreadPoolRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -190,15 +190,15 @@ func (r CatThreadPoolRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.thread_pool") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.thread_pool") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.clear_scroll.go b/esapi/api.clear_scroll.go index e7beb59fbe..4a4a87e72f 100644 --- a/esapi/api.clear_scroll.go +++ b/esapi/api.clear_scroll.go @@ -34,7 +34,7 @@ func newClearScrollFunc(t Transport) ClearScroll { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ClearScrollRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ClearScrollRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "clear_scroll") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r ClearScrollRequest) Do(providedCtx context.Context, transport Transport) if len(r.ScrollID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.ScrollID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "scroll_id", strings.Join(r.ScrollID, ",")) } } @@ -119,7 +119,7 @@ func (r ClearScrollRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ClearScrollRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "clear_scroll") if reader := instrument.RecordRequestBody(ctx, "clear_scroll", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "clear_scroll") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.allocation_explain.go b/esapi/api.cluster.allocation_explain.go index 3fb761b987..f170b0d6b6 100644 --- a/esapi/api.cluster.allocation_explain.go +++ b/esapi/api.cluster.allocation_explain.go @@ -36,7 +36,7 @@ func newClusterAllocationExplainFunc(t Transport) ClusterAllocationExplain { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type ClusterAllocationExplainRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r ClusterAllocationExplainRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.allocation_explain") defer instrument.Close(ctx) } @@ -125,7 +125,7 @@ func (r ClusterAllocationExplainRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,18 +159,18 @@ func (r ClusterAllocationExplainRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.allocation_explain") if reader := instrument.RecordRequestBody(ctx, "cluster.allocation_explain", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.allocation_explain") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.delete_component_template.go b/esapi/api.cluster.delete_component_template.go index 4b6cd9e56e..ee1020e5dd 100644 --- a/esapi/api.cluster.delete_component_template.go +++ b/esapi/api.cluster.delete_component_template.go @@ -34,7 +34,7 @@ func newClusterDeleteComponentTemplateFunc(t Transport) ClusterDeleteComponentTe } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type ClusterDeleteComponentTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r ClusterDeleteComponentTemplateRequest) Do(providedCtx context.Context, t ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.delete_component_template") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r ClusterDeleteComponentTemplateRequest) Do(providedCtx context.Context, t path.WriteString("_component_template") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -124,7 +124,7 @@ func (r ClusterDeleteComponentTemplateRequest) Do(providedCtx context.Context, t req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r ClusterDeleteComponentTemplateRequest) Do(providedCtx context.Context, t req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.delete_component_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.delete_component_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.delete_voting_config_exclusions.go b/esapi/api.cluster.delete_voting_config_exclusions.go index 7cef3f3ee7..4d2f60d7f5 100644 --- a/esapi/api.cluster.delete_voting_config_exclusions.go +++ b/esapi/api.cluster.delete_voting_config_exclusions.go @@ -35,7 +35,7 @@ func newClusterDeleteVotingConfigExclusionsFunc(t Transport) ClusterDeleteVoting } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ClusterDeleteVotingConfigExclusionsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ClusterDeleteVotingConfigExclusionsRequest) Do(providedCtx context.Conte ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.delete_voting_config_exclusions") defer instrument.Close(ctx) } @@ -117,7 +117,7 @@ func (r ClusterDeleteVotingConfigExclusionsRequest) Do(providedCtx context.Conte req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,15 +147,15 @@ func (r ClusterDeleteVotingConfigExclusionsRequest) Do(providedCtx context.Conte req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.delete_voting_config_exclusions") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.delete_voting_config_exclusions") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.exists_component_template.go b/esapi/api.cluster.exists_component_template.go index 374ba98259..4fa14d5d06 100644 --- a/esapi/api.cluster.exists_component_template.go +++ b/esapi/api.cluster.exists_component_template.go @@ -35,7 +35,7 @@ func newClusterExistsComponentTemplateFunc(t Transport) ClusterExistsComponentTe } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ClusterExistsComponentTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ClusterExistsComponentTemplateRequest) Do(providedCtx context.Context, t ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.exists_component_template") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ClusterExistsComponentTemplateRequest) Do(providedCtx context.Context, t path.WriteString("_component_template") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -125,7 +125,7 @@ func (r ClusterExistsComponentTemplateRequest) Do(providedCtx context.Context, t req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,15 +155,15 @@ func (r ClusterExistsComponentTemplateRequest) Do(providedCtx context.Context, t req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.exists_component_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.exists_component_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.get_component_template.go b/esapi/api.cluster.get_component_template.go index 03fedd6248..34792aeb83 100644 --- a/esapi/api.cluster.get_component_template.go +++ b/esapi/api.cluster.get_component_template.go @@ -35,7 +35,7 @@ func newClusterGetComponentTemplateFunc(t Transport) ClusterGetComponentTemplate } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type ClusterGetComponentTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r ClusterGetComponentTemplateRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.get_component_template") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r ClusterGetComponentTemplateRequest) Do(providedCtx context.Context, tran if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -132,7 +132,7 @@ func (r ClusterGetComponentTemplateRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,15 +162,15 @@ func (r ClusterGetComponentTemplateRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.get_component_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.get_component_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.get_settings.go b/esapi/api.cluster.get_settings.go index fdcc0f79b5..72b6d9dc34 100644 --- a/esapi/api.cluster.get_settings.go +++ b/esapi/api.cluster.get_settings.go @@ -35,7 +35,7 @@ func newClusterGetSettingsFunc(t Transport) ClusterGetSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ClusterGetSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ClusterGetSettingsRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.get_settings") defer instrument.Close(ctx) } @@ -127,7 +127,7 @@ func (r ClusterGetSettingsRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r ClusterGetSettingsRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.get_settings") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.get_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.health.go b/esapi/api.cluster.health.go index 2936457443..cb219c76f8 100644 --- a/esapi/api.cluster.health.go +++ b/esapi/api.cluster.health.go @@ -35,7 +35,7 @@ func newClusterHealthFunc(t Transport) ClusterHealth { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type ClusterHealthRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r ClusterHealthRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.health") defer instrument.Close(ctx) } @@ -105,7 +105,7 @@ func (r ClusterHealthRequest) Do(providedCtx context.Context, transport Transpor if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -174,7 +174,7 @@ func (r ClusterHealthRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -204,15 +204,15 @@ func (r ClusterHealthRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.health") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.health") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.info.go b/esapi/api.cluster.info.go index f26f66413d..fe46697e75 100644 --- a/esapi/api.cluster.info.go +++ b/esapi/api.cluster.info.go @@ -34,7 +34,7 @@ func newClusterInfoFunc(t Transport) ClusterInfo { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type ClusterInfoRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r ClusterInfoRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.info") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ClusterInfoRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("_info") path.WriteString("/") path.WriteString(strings.Join(r.Target, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "target", strings.Join(r.Target, ",")) } @@ -117,7 +117,7 @@ func (r ClusterInfoRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,15 +147,15 @@ func (r ClusterInfoRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.info") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.info") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.pending_tasks.go b/esapi/api.cluster.pending_tasks.go index a158c8fcf8..ed8cfe7f87 100644 --- a/esapi/api.cluster.pending_tasks.go +++ b/esapi/api.cluster.pending_tasks.go @@ -35,7 +35,7 @@ func newClusterPendingTasksFunc(t Transport) ClusterPendingTasks { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type ClusterPendingTasksRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r ClusterPendingTasksRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.pending_tasks") defer instrument.Close(ctx) } @@ -118,7 +118,7 @@ func (r ClusterPendingTasksRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r ClusterPendingTasksRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.pending_tasks") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.pending_tasks") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.post_voting_config_exclusions.go b/esapi/api.cluster.post_voting_config_exclusions.go index f5a81b4f40..429c9284be 100644 --- a/esapi/api.cluster.post_voting_config_exclusions.go +++ b/esapi/api.cluster.post_voting_config_exclusions.go @@ -34,7 +34,7 @@ func newClusterPostVotingConfigExclusionsFunc(t Transport) ClusterPostVotingConf } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type ClusterPostVotingConfigExclusionsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r ClusterPostVotingConfigExclusionsRequest) Do(providedCtx context.Context ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.post_voting_config_exclusions") defer instrument.Close(ctx) } @@ -126,7 +126,7 @@ func (r ClusterPostVotingConfigExclusionsRequest) Do(providedCtx context.Context req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r ClusterPostVotingConfigExclusionsRequest) Do(providedCtx context.Context req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.post_voting_config_exclusions") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.post_voting_config_exclusions") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.put_component_template.go b/esapi/api.cluster.put_component_template.go index 11b7a812ae..37b3887377 100644 --- a/esapi/api.cluster.put_component_template.go +++ b/esapi/api.cluster.put_component_template.go @@ -36,7 +36,7 @@ func newClusterPutComponentTemplateFunc(t Transport) ClusterPutComponentTemplate } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type ClusterPutComponentTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r ClusterPutComponentTemplateRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.put_component_template") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r ClusterPutComponentTemplateRequest) Do(providedCtx context.Context, tran path.WriteString("_component_template") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -133,7 +133,7 @@ func (r ClusterPutComponentTemplateRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,18 +167,18 @@ func (r ClusterPutComponentTemplateRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.put_component_template") if reader := instrument.RecordRequestBody(ctx, "cluster.put_component_template", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.put_component_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.put_settings.go b/esapi/api.cluster.put_settings.go index 012dfe476c..2a4b448b29 100644 --- a/esapi/api.cluster.put_settings.go +++ b/esapi/api.cluster.put_settings.go @@ -36,7 +36,7 @@ func newClusterPutSettingsFunc(t Transport) ClusterPutSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type ClusterPutSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r ClusterPutSettingsRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.put_settings") defer instrument.Close(ctx) } @@ -125,7 +125,7 @@ func (r ClusterPutSettingsRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,18 +159,18 @@ func (r ClusterPutSettingsRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.put_settings") if reader := instrument.RecordRequestBody(ctx, "cluster.put_settings", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.put_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.remote_info.go b/esapi/api.cluster.remote_info.go index 24a55050b7..9faa750448 100644 --- a/esapi/api.cluster.remote_info.go +++ b/esapi/api.cluster.remote_info.go @@ -33,7 +33,7 @@ func newClusterRemoteInfoFunc(t Transport) ClusterRemoteInfo { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type ClusterRemoteInfoRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r ClusterRemoteInfoRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.remote_info") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r ClusterRemoteInfoRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r ClusterRemoteInfoRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.remote_info") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.remote_info") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.reroute.go b/esapi/api.cluster.reroute.go index 19ddf65a80..1ebf18c0d0 100644 --- a/esapi/api.cluster.reroute.go +++ b/esapi/api.cluster.reroute.go @@ -36,7 +36,7 @@ func newClusterRerouteFunc(t Transport) ClusterReroute { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type ClusterRerouteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r ClusterRerouteRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.reroute") defer instrument.Close(ctx) } @@ -140,7 +140,7 @@ func (r ClusterRerouteRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -174,18 +174,18 @@ func (r ClusterRerouteRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.reroute") if reader := instrument.RecordRequestBody(ctx, "cluster.reroute", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.reroute") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.state.go b/esapi/api.cluster.state.go index 6b0cc2f1cc..eaf2031618 100644 --- a/esapi/api.cluster.state.go +++ b/esapi/api.cluster.state.go @@ -35,7 +35,7 @@ func newClusterStateFunc(t Transport) ClusterState { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -73,7 +73,7 @@ type ClusterStateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -85,7 +85,7 @@ func (r ClusterStateRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.state") defer instrument.Close(ctx) } @@ -104,14 +104,14 @@ func (r ClusterStateRequest) Do(providedCtx context.Context, transport Transport if len(r.Metric) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Metric, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "metric", strings.Join(r.Metric, ",")) } } if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -168,7 +168,7 @@ func (r ClusterStateRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -198,15 +198,15 @@ func (r ClusterStateRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.state") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.state") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.cluster.stats.go b/esapi/api.cluster.stats.go index ee7b96418f..8114a0be9c 100644 --- a/esapi/api.cluster.stats.go +++ b/esapi/api.cluster.stats.go @@ -35,7 +35,7 @@ func newClusterStatsFunc(t Transport) ClusterStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ClusterStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ClusterStatsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cluster.stats") defer instrument.Close(ctx) } @@ -127,7 +127,7 @@ func (r ClusterStatsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r ClusterStatsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cluster.stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cluster.stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.check_in.go b/esapi/api.connector.check_in.go index ddd667132a..e3c4cea3ef 100644 --- a/esapi/api.connector.check_in.go +++ b/esapi/api.connector.check_in.go @@ -33,7 +33,7 @@ func newConnectorCheckInFunc(t Transport) ConnectorCheckIn { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type ConnectorCheckInRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r ConnectorCheckInRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.check_in") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r ConnectorCheckInRequest) Do(providedCtx context.Context, transport Trans path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -116,7 +116,7 @@ func (r ConnectorCheckInRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r ConnectorCheckInRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.check_in") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.check_in") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.delete.go b/esapi/api.connector.delete.go index c94a4488c5..a3e4e01195 100644 --- a/esapi/api.connector.delete.go +++ b/esapi/api.connector.delete.go @@ -34,7 +34,7 @@ func newConnectorDeleteFunc(t Transport) ConnectorDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorDeleteRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.delete") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorDeleteRequest) Do(providedCtx context.Context, transport Transp path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } @@ -121,7 +121,7 @@ func (r ConnectorDeleteRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r ConnectorDeleteRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.get.go b/esapi/api.connector.get.go index 29220593d5..62774d482f 100644 --- a/esapi/api.connector.get.go +++ b/esapi/api.connector.get.go @@ -33,7 +33,7 @@ func newConnectorGetFunc(t Transport) ConnectorGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type ConnectorGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r ConnectorGetRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.get") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r ConnectorGetRequest) Do(providedCtx context.Context, transport Transport path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } @@ -114,7 +114,7 @@ func (r ConnectorGetRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r ConnectorGetRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.last_sync.go b/esapi/api.connector.last_sync.go index fcd96499a4..180a4fe18a 100644 --- a/esapi/api.connector.last_sync.go +++ b/esapi/api.connector.last_sync.go @@ -34,7 +34,7 @@ func newConnectorLastSyncFunc(t Transport) ConnectorLastSync { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorLastSyncRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorLastSyncRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.last_sync") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorLastSyncRequest) Do(providedCtx context.Context, transport Tran path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorLastSyncRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorLastSyncRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.last_sync") if reader := instrument.RecordRequestBody(ctx, "connector.last_sync", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.last_sync") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.list.go b/esapi/api.connector.list.go index 91bf9543b7..2f20ad8710 100644 --- a/esapi/api.connector.list.go +++ b/esapi/api.connector.list.go @@ -34,7 +34,7 @@ func newConnectorListFunc(t Transport) ConnectorList { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type ConnectorListRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r ConnectorListRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.list") defer instrument.Close(ctx) } @@ -138,7 +138,7 @@ func (r ConnectorListRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -168,15 +168,15 @@ func (r ConnectorListRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.list") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.list") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.post.go b/esapi/api.connector.post.go index 177b69f476..246fb71504 100644 --- a/esapi/api.connector.post.go +++ b/esapi/api.connector.post.go @@ -34,7 +34,7 @@ func newConnectorPostFunc(t Transport) ConnectorPost { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ConnectorPostRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ConnectorPostRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.post") defer instrument.Close(ctx) } @@ -109,7 +109,7 @@ func (r ConnectorPostRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -143,18 +143,18 @@ func (r ConnectorPostRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.post") if reader := instrument.RecordRequestBody(ctx, "connector.post", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.post") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.put.go b/esapi/api.connector.put.go index cb51336120..49fa0de77c 100644 --- a/esapi/api.connector.put.go +++ b/esapi/api.connector.put.go @@ -34,7 +34,7 @@ func newConnectorPutFunc(t Transport) ConnectorPut { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorPutRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorPutRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.put") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r ConnectorPutRequest) Do(providedCtx context.Context, transport Transport if r.ConnectorID != "" { path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } } @@ -119,7 +119,7 @@ func (r ConnectorPutRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorPutRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.put") if reader := instrument.RecordRequestBody(ctx, "connector.put", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.put") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.secret_delete.go b/esapi/api.connector.secret_delete.go index 6d146808e1..3d36df3bb6 100644 --- a/esapi/api.connector.secret_delete.go +++ b/esapi/api.connector.secret_delete.go @@ -33,7 +33,7 @@ func newConnectorSecretDeleteFunc(t Transport) ConnectorSecretDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type ConnectorSecretDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r ConnectorSecretDeleteRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.secret_delete") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r ConnectorSecretDeleteRequest) Do(providedCtx context.Context, transport path.WriteString("_secret") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -114,7 +114,7 @@ func (r ConnectorSecretDeleteRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r ConnectorSecretDeleteRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.secret_delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.secret_delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.secret_get.go b/esapi/api.connector.secret_get.go index b6bc8bb6f0..7f0109dda1 100644 --- a/esapi/api.connector.secret_get.go +++ b/esapi/api.connector.secret_get.go @@ -33,7 +33,7 @@ func newConnectorSecretGetFunc(t Transport) ConnectorSecretGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type ConnectorSecretGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r ConnectorSecretGetRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.secret_get") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r ConnectorSecretGetRequest) Do(providedCtx context.Context, transport Tra path.WriteString("_secret") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -114,7 +114,7 @@ func (r ConnectorSecretGetRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r ConnectorSecretGetRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.secret_get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.secret_get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.secret_post.go b/esapi/api.connector.secret_post.go index f6c2173740..4b9f72df06 100644 --- a/esapi/api.connector.secret_post.go +++ b/esapi/api.connector.secret_post.go @@ -34,7 +34,7 @@ func newConnectorSecretPostFunc(t Transport) ConnectorSecretPost { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type ConnectorSecretPostRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r ConnectorSecretPostRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.secret_post") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r ConnectorSecretPostRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r ConnectorSecretPostRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.secret_post") if reader := instrument.RecordRequestBody(ctx, "connector.secret_post", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.secret_post") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.secret_put.go b/esapi/api.connector.secret_put.go index f459405a8c..e9a332741b 100644 --- a/esapi/api.connector.secret_put.go +++ b/esapi/api.connector.secret_put.go @@ -34,7 +34,7 @@ func newConnectorSecretPutFunc(t Transport) ConnectorSecretPut { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ConnectorSecretPutRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ConnectorSecretPutRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.secret_put") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorSecretPutRequest) Do(providedCtx context.Context, transport Tra path.WriteString("_secret") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -117,7 +117,7 @@ func (r ConnectorSecretPutRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r ConnectorSecretPutRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.secret_put") if reader := instrument.RecordRequestBody(ctx, "connector.secret_put", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.secret_put") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_cancel.go b/esapi/api.connector.sync_job_cancel.go index 9fef3bda80..20df97e9e6 100644 --- a/esapi/api.connector.sync_job_cancel.go +++ b/esapi/api.connector.sync_job_cancel.go @@ -33,7 +33,7 @@ func newConnectorSyncJobCancelFunc(t Transport) ConnectorSyncJobCancel { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type ConnectorSyncJobCancelRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r ConnectorSyncJobCancelRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_cancel") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r ConnectorSyncJobCancelRequest) Do(providedCtx context.Context, transport path.WriteString("_sync_job") path.WriteString("/") path.WriteString(r.ConnectorSyncJobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_sync_job_id", r.ConnectorSyncJobID) } path.WriteString("/") @@ -118,7 +118,7 @@ func (r ConnectorSyncJobCancelRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r ConnectorSyncJobCancelRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.sync_job_cancel") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_cancel") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_check_in.go b/esapi/api.connector.sync_job_check_in.go index 55e00bc1c9..7963f4e68b 100644 --- a/esapi/api.connector.sync_job_check_in.go +++ b/esapi/api.connector.sync_job_check_in.go @@ -33,7 +33,7 @@ func newConnectorSyncJobCheckInFunc(t Transport) ConnectorSyncJobCheckIn { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type ConnectorSyncJobCheckInRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r ConnectorSyncJobCheckInRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_check_in") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r ConnectorSyncJobCheckInRequest) Do(providedCtx context.Context, transpor path.WriteString("_sync_job") path.WriteString("/") path.WriteString(r.ConnectorSyncJobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_sync_job_id", r.ConnectorSyncJobID) } path.WriteString("/") @@ -118,7 +118,7 @@ func (r ConnectorSyncJobCheckInRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r ConnectorSyncJobCheckInRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.sync_job_check_in") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_check_in") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_claim.go b/esapi/api.connector.sync_job_claim.go index cb1a403ae8..69ccd069d3 100644 --- a/esapi/api.connector.sync_job_claim.go +++ b/esapi/api.connector.sync_job_claim.go @@ -34,7 +34,7 @@ func newConnectorSyncJobClaimFunc(t Transport) ConnectorSyncJobClaim { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorSyncJobClaimRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorSyncJobClaimRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_claim") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r ConnectorSyncJobClaimRequest) Do(providedCtx context.Context, transport path.WriteString("_sync_job") path.WriteString("/") path.WriteString(r.ConnectorSyncJobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_sync_job_id", r.ConnectorSyncJobID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r ConnectorSyncJobClaimRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r ConnectorSyncJobClaimRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_delete.go b/esapi/api.connector.sync_job_delete.go index 586055e9e7..c0e0c8f16c 100644 --- a/esapi/api.connector.sync_job_delete.go +++ b/esapi/api.connector.sync_job_delete.go @@ -33,7 +33,7 @@ func newConnectorSyncJobDeleteFunc(t Transport) ConnectorSyncJobDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type ConnectorSyncJobDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r ConnectorSyncJobDeleteRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_delete") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r ConnectorSyncJobDeleteRequest) Do(providedCtx context.Context, transport path.WriteString("_sync_job") path.WriteString("/") path.WriteString(r.ConnectorSyncJobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_sync_job_id", r.ConnectorSyncJobID) } @@ -116,7 +116,7 @@ func (r ConnectorSyncJobDeleteRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r ConnectorSyncJobDeleteRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.sync_job_delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_error.go b/esapi/api.connector.sync_job_error.go index fee69a81d6..80cb3153c1 100644 --- a/esapi/api.connector.sync_job_error.go +++ b/esapi/api.connector.sync_job_error.go @@ -34,7 +34,7 @@ func newConnectorSyncJobErrorFunc(t Transport) ConnectorSyncJobError { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorSyncJobErrorRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorSyncJobErrorRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_error") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r ConnectorSyncJobErrorRequest) Do(providedCtx context.Context, transport path.WriteString("_sync_job") path.WriteString("/") path.WriteString(r.ConnectorSyncJobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_sync_job_id", r.ConnectorSyncJobID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r ConnectorSyncJobErrorRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r ConnectorSyncJobErrorRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.sync_job_error") if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_error", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_error") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_get.go b/esapi/api.connector.sync_job_get.go index 98cbc3fbf5..bc265375fe 100644 --- a/esapi/api.connector.sync_job_get.go +++ b/esapi/api.connector.sync_job_get.go @@ -33,7 +33,7 @@ func newConnectorSyncJobGetFunc(t Transport) ConnectorSyncJobGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type ConnectorSyncJobGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r ConnectorSyncJobGetRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_get") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r ConnectorSyncJobGetRequest) Do(providedCtx context.Context, transport Tr path.WriteString("_sync_job") path.WriteString("/") path.WriteString(r.ConnectorSyncJobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_sync_job_id", r.ConnectorSyncJobID) } @@ -116,7 +116,7 @@ func (r ConnectorSyncJobGetRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r ConnectorSyncJobGetRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.sync_job_get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_list.go b/esapi/api.connector.sync_job_list.go index a230311346..1b8f44baa5 100644 --- a/esapi/api.connector.sync_job_list.go +++ b/esapi/api.connector.sync_job_list.go @@ -34,7 +34,7 @@ func newConnectorSyncJobListFunc(t Transport) ConnectorSyncJobList { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type ConnectorSyncJobListRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r ConnectorSyncJobListRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_list") defer instrument.Close(ctx) } @@ -133,7 +133,7 @@ func (r ConnectorSyncJobListRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -163,15 +163,15 @@ func (r ConnectorSyncJobListRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.sync_job_list") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_list") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_post.go b/esapi/api.connector.sync_job_post.go index d792b68bcf..ca290d4443 100644 --- a/esapi/api.connector.sync_job_post.go +++ b/esapi/api.connector.sync_job_post.go @@ -34,7 +34,7 @@ func newConnectorSyncJobPostFunc(t Transport) ConnectorSyncJobPost { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ConnectorSyncJobPostRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ConnectorSyncJobPostRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_post") defer instrument.Close(ctx) } @@ -109,7 +109,7 @@ func (r ConnectorSyncJobPostRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -143,18 +143,18 @@ func (r ConnectorSyncJobPostRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.sync_job_post") if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_post", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_post") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.sync_job_update_stats.go b/esapi/api.connector.sync_job_update_stats.go index aa2bb8cb97..3f818adbf1 100644 --- a/esapi/api.connector.sync_job_update_stats.go +++ b/esapi/api.connector.sync_job_update_stats.go @@ -34,7 +34,7 @@ func newConnectorSyncJobUpdateStatsFunc(t Transport) ConnectorSyncJobUpdateStats } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorSyncJobUpdateStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorSyncJobUpdateStatsRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.sync_job_update_stats") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r ConnectorSyncJobUpdateStatsRequest) Do(providedCtx context.Context, tran path.WriteString("_sync_job") path.WriteString("/") path.WriteString(r.ConnectorSyncJobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_sync_job_id", r.ConnectorSyncJobID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r ConnectorSyncJobUpdateStatsRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r ConnectorSyncJobUpdateStatsRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.sync_job_update_stats") if reader := instrument.RecordRequestBody(ctx, "connector.sync_job_update_stats", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.sync_job_update_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_active_filtering.go b/esapi/api.connector.update_active_filtering.go index 0414d6a224..833d8bd053 100644 --- a/esapi/api.connector.update_active_filtering.go +++ b/esapi/api.connector.update_active_filtering.go @@ -33,7 +33,7 @@ func newConnectorUpdateActiveFilteringFunc(t Transport) ConnectorUpdateActiveFil } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type ConnectorUpdateActiveFilteringRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r ConnectorUpdateActiveFilteringRequest) Do(providedCtx context.Context, t ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_active_filtering") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r ConnectorUpdateActiveFilteringRequest) Do(providedCtx context.Context, t path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -118,7 +118,7 @@ func (r ConnectorUpdateActiveFilteringRequest) Do(providedCtx context.Context, t req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r ConnectorUpdateActiveFilteringRequest) Do(providedCtx context.Context, t req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_active_filtering") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_active_filtering") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_api_key_id.go b/esapi/api.connector.update_api_key_id.go index 2fe5741e14..8f134c5523 100644 --- a/esapi/api.connector.update_api_key_id.go +++ b/esapi/api.connector.update_api_key_id.go @@ -34,7 +34,7 @@ func newConnectorUpdateAPIKeyDocumentIDFunc(t Transport) ConnectorUpdateAPIKeyDo } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateAPIKeyDocumentIDRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateAPIKeyDocumentIDRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_api_key_id") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateAPIKeyDocumentIDRequest) Do(providedCtx context.Context, path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateAPIKeyDocumentIDRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateAPIKeyDocumentIDRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_api_key_id") if reader := instrument.RecordRequestBody(ctx, "connector.update_api_key_id", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_api_key_id") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_configuration.go b/esapi/api.connector.update_configuration.go index f3f87ca57c..f7d9b3ec2e 100644 --- a/esapi/api.connector.update_configuration.go +++ b/esapi/api.connector.update_configuration.go @@ -34,7 +34,7 @@ func newConnectorUpdateConfigurationFunc(t Transport) ConnectorUpdateConfigurati } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateConfigurationRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateConfigurationRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_configuration") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateConfigurationRequest) Do(providedCtx context.Context, tra path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateConfigurationRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateConfigurationRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_configuration") if reader := instrument.RecordRequestBody(ctx, "connector.update_configuration", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_configuration") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_error.go b/esapi/api.connector.update_error.go index 5c72fd1c9e..c5ea3eb8d8 100644 --- a/esapi/api.connector.update_error.go +++ b/esapi/api.connector.update_error.go @@ -34,7 +34,7 @@ func newConnectorUpdateErrorFunc(t Transport) ConnectorUpdateError { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateErrorRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateErrorRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_error") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateErrorRequest) Do(providedCtx context.Context, transport T path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateErrorRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateErrorRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_error") if reader := instrument.RecordRequestBody(ctx, "connector.update_error", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_error") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_features.go b/esapi/api.connector.update_features.go index be67727304..4a9df71ecf 100644 --- a/esapi/api.connector.update_features.go +++ b/esapi/api.connector.update_features.go @@ -34,7 +34,7 @@ func newConnectorUpdateFeaturesFunc(t Transport) ConnectorUpdateFeatures { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateFeaturesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateFeaturesRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_features") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateFeaturesRequest) Do(providedCtx context.Context, transpor path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateFeaturesRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateFeaturesRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_features") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_filtering.go b/esapi/api.connector.update_filtering.go index 2b4183d4bc..e06ecacd08 100644 --- a/esapi/api.connector.update_filtering.go +++ b/esapi/api.connector.update_filtering.go @@ -34,7 +34,7 @@ func newConnectorUpdateFilteringFunc(t Transport) ConnectorUpdateFiltering { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateFilteringRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateFilteringRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_filtering") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateFilteringRequest) Do(providedCtx context.Context, transpo path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateFilteringRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateFilteringRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_filtering") if reader := instrument.RecordRequestBody(ctx, "connector.update_filtering", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_filtering") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_filtering_validation.go b/esapi/api.connector.update_filtering_validation.go index 3955e435d7..b68914e3a8 100644 --- a/esapi/api.connector.update_filtering_validation.go +++ b/esapi/api.connector.update_filtering_validation.go @@ -34,7 +34,7 @@ func newConnectorUpdateFilteringValidationFunc(t Transport) ConnectorUpdateFilte } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateFilteringValidationRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateFilteringValidationRequest) Do(providedCtx context.Contex ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_filtering_validation") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateFilteringValidationRequest) Do(providedCtx context.Contex path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r ConnectorUpdateFilteringValidationRequest) Do(providedCtx context.Contex req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r ConnectorUpdateFilteringValidationRequest) Do(providedCtx context.Contex req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_filtering_validation") if reader := instrument.RecordRequestBody(ctx, "connector.update_filtering_validation", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_filtering_validation") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_index_name.go b/esapi/api.connector.update_index_name.go index 281e7a028e..2df06debc5 100644 --- a/esapi/api.connector.update_index_name.go +++ b/esapi/api.connector.update_index_name.go @@ -34,7 +34,7 @@ func newConnectorUpdateIndexNameFunc(t Transport) ConnectorUpdateIndexName { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateIndexNameRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateIndexNameRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_index_name") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateIndexNameRequest) Do(providedCtx context.Context, transpo path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateIndexNameRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateIndexNameRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_index_name") if reader := instrument.RecordRequestBody(ctx, "connector.update_index_name", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_index_name") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_name.go b/esapi/api.connector.update_name.go index 1f7ffcf9e2..0014a37e39 100644 --- a/esapi/api.connector.update_name.go +++ b/esapi/api.connector.update_name.go @@ -34,7 +34,7 @@ func newConnectorUpdateNameFunc(t Transport) ConnectorUpdateName { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateNameRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateNameRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_name") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateNameRequest) Do(providedCtx context.Context, transport Tr path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateNameRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateNameRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_name") if reader := instrument.RecordRequestBody(ctx, "connector.update_name", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_name") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_native.go b/esapi/api.connector.update_native.go index 4e2691594e..a3e3804cc4 100644 --- a/esapi/api.connector.update_native.go +++ b/esapi/api.connector.update_native.go @@ -34,7 +34,7 @@ func newConnectorUpdateNativeFunc(t Transport) ConnectorUpdateNative { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateNativeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateNativeRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_native") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateNativeRequest) Do(providedCtx context.Context, transport path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateNativeRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateNativeRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_native") if reader := instrument.RecordRequestBody(ctx, "connector.update_native", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_native") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_pipeline.go b/esapi/api.connector.update_pipeline.go index 7d0260ddc5..5e826a4d06 100644 --- a/esapi/api.connector.update_pipeline.go +++ b/esapi/api.connector.update_pipeline.go @@ -34,7 +34,7 @@ func newConnectorUpdatePipelineFunc(t Transport) ConnectorUpdatePipeline { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdatePipelineRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdatePipelineRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_pipeline") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdatePipelineRequest) Do(providedCtx context.Context, transpor path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdatePipelineRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdatePipelineRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_pipeline") if reader := instrument.RecordRequestBody(ctx, "connector.update_pipeline", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_pipeline") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_scheduling.go b/esapi/api.connector.update_scheduling.go index 3e59d51a37..840a390268 100644 --- a/esapi/api.connector.update_scheduling.go +++ b/esapi/api.connector.update_scheduling.go @@ -34,7 +34,7 @@ func newConnectorUpdateSchedulingFunc(t Transport) ConnectorUpdateScheduling { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateSchedulingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateSchedulingRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_scheduling") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateSchedulingRequest) Do(providedCtx context.Context, transp path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateSchedulingRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateSchedulingRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_scheduling") if reader := instrument.RecordRequestBody(ctx, "connector.update_scheduling", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_scheduling") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_service_type.go b/esapi/api.connector.update_service_type.go index 88bb509393..3a4f143f91 100644 --- a/esapi/api.connector.update_service_type.go +++ b/esapi/api.connector.update_service_type.go @@ -34,7 +34,7 @@ func newConnectorUpdateServiceDocumentTypeFunc(t Transport) ConnectorUpdateServi } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateServiceDocumentTypeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateServiceDocumentTypeRequest) Do(providedCtx context.Contex ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_service_type") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateServiceDocumentTypeRequest) Do(providedCtx context.Contex path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateServiceDocumentTypeRequest) Do(providedCtx context.Contex req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateServiceDocumentTypeRequest) Do(providedCtx context.Contex req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_service_type") if reader := instrument.RecordRequestBody(ctx, "connector.update_service_type", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_service_type") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.connector.update_status.go b/esapi/api.connector.update_status.go index fdcb037f7d..fb3e5e230e 100644 --- a/esapi/api.connector.update_status.go +++ b/esapi/api.connector.update_status.go @@ -34,7 +34,7 @@ func newConnectorUpdateStatusFunc(t Transport) ConnectorUpdateStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type ConnectorUpdateStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r ConnectorUpdateStatusRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "connector.update_status") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ConnectorUpdateStatusRequest) Do(providedCtx context.Context, transport path.WriteString("_connector") path.WriteString("/") path.WriteString(r.ConnectorID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "connector_id", r.ConnectorID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r ConnectorUpdateStatusRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r ConnectorUpdateStatusRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "connector.update_status") if reader := instrument.RecordRequestBody(ctx, "connector.update_status", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "connector.update_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.count.go b/esapi/api.count.go index 10b89f7402..c109e12465 100644 --- a/esapi/api.count.go +++ b/esapi/api.count.go @@ -35,7 +35,7 @@ func newCountFunc(t Transport) Count { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -79,7 +79,7 @@ type CountRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -91,7 +91,7 @@ func (r CountRequest) Do(providedCtx context.Context, transport Transport) (*Res ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "count") defer instrument.Close(ctx) } @@ -106,7 +106,7 @@ func (r CountRequest) Do(providedCtx context.Context, transport Transport) (*Res if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -189,7 +189,7 @@ func (r CountRequest) Do(providedCtx context.Context, transport Transport) (*Res req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -223,18 +223,18 @@ func (r CountRequest) Do(providedCtx context.Context, transport Transport) (*Res req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "count") if reader := instrument.RecordRequestBody(ctx, "count", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "count") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.create.go b/esapi/api.create.go index 0f7042d28e..c30190e89b 100644 --- a/esapi/api.create.go +++ b/esapi/api.create.go @@ -36,7 +36,7 @@ func newCreateFunc(t Transport) Create { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -77,7 +77,7 @@ type CreateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -89,7 +89,7 @@ func (r CreateRequest) Do(providedCtx context.Context, transport Transport) (*Re ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "create") defer instrument.Close(ctx) } @@ -103,14 +103,14 @@ func (r CreateRequest) Do(providedCtx context.Context, transport Transport) (*Re path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_create") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -166,7 +166,7 @@ func (r CreateRequest) Do(providedCtx context.Context, transport Transport) (*Re req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -200,18 +200,18 @@ func (r CreateRequest) Do(providedCtx context.Context, transport Transport) (*Re req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "create") if reader := instrument.RecordRequestBody(ctx, "create", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "create") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.dangling_indices.delete_dangling_index.go b/esapi/api.dangling_indices.delete_dangling_index.go index abdf451b10..1194167ba1 100644 --- a/esapi/api.dangling_indices.delete_dangling_index.go +++ b/esapi/api.dangling_indices.delete_dangling_index.go @@ -35,7 +35,7 @@ func newDanglingIndicesDeleteDanglingIndexFunc(t Transport) DanglingIndicesDelet } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type DanglingIndicesDeleteDanglingIndexRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r DanglingIndicesDeleteDanglingIndexRequest) Do(providedCtx context.Contex ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "dangling_indices.delete_dangling_index") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r DanglingIndicesDeleteDanglingIndexRequest) Do(providedCtx context.Contex path.WriteString("_dangling") path.WriteString("/") path.WriteString(r.IndexUUID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index_uuid", r.IndexUUID) } @@ -130,7 +130,7 @@ func (r DanglingIndicesDeleteDanglingIndexRequest) Do(providedCtx context.Contex req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,15 +160,15 @@ func (r DanglingIndicesDeleteDanglingIndexRequest) Do(providedCtx context.Contex req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "dangling_indices.delete_dangling_index") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "dangling_indices.delete_dangling_index") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.dangling_indices.import_dangling_index.go b/esapi/api.dangling_indices.import_dangling_index.go index 25e2c3dfd3..382b0ea756 100644 --- a/esapi/api.dangling_indices.import_dangling_index.go +++ b/esapi/api.dangling_indices.import_dangling_index.go @@ -35,7 +35,7 @@ func newDanglingIndicesImportDanglingIndexFunc(t Transport) DanglingIndicesImpor } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type DanglingIndicesImportDanglingIndexRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r DanglingIndicesImportDanglingIndexRequest) Do(providedCtx context.Contex ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "dangling_indices.import_dangling_index") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r DanglingIndicesImportDanglingIndexRequest) Do(providedCtx context.Contex path.WriteString("_dangling") path.WriteString("/") path.WriteString(r.IndexUUID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index_uuid", r.IndexUUID) } @@ -130,7 +130,7 @@ func (r DanglingIndicesImportDanglingIndexRequest) Do(providedCtx context.Contex req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,15 +160,15 @@ func (r DanglingIndicesImportDanglingIndexRequest) Do(providedCtx context.Contex req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "dangling_indices.import_dangling_index") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "dangling_indices.import_dangling_index") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.dangling_indices.list_dangling_indices.go b/esapi/api.dangling_indices.list_dangling_indices.go index 2f98258d56..965c2d892d 100644 --- a/esapi/api.dangling_indices.list_dangling_indices.go +++ b/esapi/api.dangling_indices.list_dangling_indices.go @@ -33,7 +33,7 @@ func newDanglingIndicesListDanglingIndicesFunc(t Transport) DanglingIndicesListD } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type DanglingIndicesListDanglingIndicesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r DanglingIndicesListDanglingIndicesRequest) Do(providedCtx context.Contex ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "dangling_indices.list_dangling_indices") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r DanglingIndicesListDanglingIndicesRequest) Do(providedCtx context.Contex req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r DanglingIndicesListDanglingIndicesRequest) Do(providedCtx context.Contex req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "dangling_indices.list_dangling_indices") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "dangling_indices.list_dangling_indices") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.delete.go b/esapi/api.delete.go index 7eb27674cb..58b84c8c9d 100644 --- a/esapi/api.delete.go +++ b/esapi/api.delete.go @@ -35,7 +35,7 @@ func newDeleteFunc(t Transport) Delete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type DeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r DeleteRequest) Do(providedCtx context.Context, transport Transport) (*Re ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "delete") defer instrument.Close(ctx) } @@ -98,14 +98,14 @@ func (r DeleteRequest) Do(providedCtx context.Context, transport Transport) (*Re path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_doc") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -161,7 +161,7 @@ func (r DeleteRequest) Do(providedCtx context.Context, transport Transport) (*Re req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -191,15 +191,15 @@ func (r DeleteRequest) Do(providedCtx context.Context, transport Transport) (*Re req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.delete_by_query.go b/esapi/api.delete_by_query.go index c45d893c5c..14bafdff6d 100644 --- a/esapi/api.delete_by_query.go +++ b/esapi/api.delete_by_query.go @@ -38,7 +38,7 @@ func newDeleteByQueryFunc(t Transport) DeleteByQuery { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -97,7 +97,7 @@ type DeleteByQueryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -109,7 +109,7 @@ func (r DeleteByQueryRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "delete_by_query") defer instrument.Close(ctx) } @@ -127,7 +127,7 @@ func (r DeleteByQueryRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -269,7 +269,7 @@ func (r DeleteByQueryRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -303,18 +303,18 @@ func (r DeleteByQueryRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "delete_by_query") if reader := instrument.RecordRequestBody(ctx, "delete_by_query", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "delete_by_query") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.delete_by_query_rethrottle.go b/esapi/api.delete_by_query_rethrottle.go index 33146d5047..0e35c5b2a8 100644 --- a/esapi/api.delete_by_query_rethrottle.go +++ b/esapi/api.delete_by_query_rethrottle.go @@ -34,7 +34,7 @@ func newDeleteByQueryRethrottleFunc(t Transport) DeleteByQueryRethrottle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type DeleteByQueryRethrottleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r DeleteByQueryRethrottleRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "delete_by_query_rethrottle") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r DeleteByQueryRethrottleRequest) Do(providedCtx context.Context, transpor path.WriteString("_delete_by_query") path.WriteString("/") path.WriteString(r.TaskID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_id", r.TaskID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r DeleteByQueryRethrottleRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r DeleteByQueryRethrottleRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "delete_by_query_rethrottle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "delete_by_query_rethrottle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.delete_script.go b/esapi/api.delete_script.go index 60543a1f79..fa1654db01 100644 --- a/esapi/api.delete_script.go +++ b/esapi/api.delete_script.go @@ -34,7 +34,7 @@ func newDeleteScriptFunc(t Transport) DeleteScript { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type DeleteScriptRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r DeleteScriptRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "delete_script") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r DeleteScriptRequest) Do(providedCtx context.Context, transport Transport path.WriteString("_scripts") path.WriteString("/") path.WriteString(r.ScriptID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ScriptID) } @@ -124,7 +124,7 @@ func (r DeleteScriptRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r DeleteScriptRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "delete_script") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "delete_script") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.exists.go b/esapi/api.exists.go index fa77d5286f..9877682122 100644 --- a/esapi/api.exists.go +++ b/esapi/api.exists.go @@ -34,7 +34,7 @@ func newExistsFunc(t Transport) Exists { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -73,7 +73,7 @@ type ExistsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -85,7 +85,7 @@ func (r ExistsRequest) Do(providedCtx context.Context, transport Transport) (*Re ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "exists") defer instrument.Close(ctx) } @@ -99,14 +99,14 @@ func (r ExistsRequest) Do(providedCtx context.Context, transport Transport) (*Re path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_doc") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -170,7 +170,7 @@ func (r ExistsRequest) Do(providedCtx context.Context, transport Transport) (*Re req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -200,15 +200,15 @@ func (r ExistsRequest) Do(providedCtx context.Context, transport Transport) (*Re req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "exists") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "exists") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.exists_source.go b/esapi/api.exists_source.go index 9282085dd2..7998f3ae73 100644 --- a/esapi/api.exists_source.go +++ b/esapi/api.exists_source.go @@ -34,7 +34,7 @@ func newExistsSourceFunc(t Transport) ExistsSource { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type ExistsSourceRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r ExistsSourceRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "exists_source") defer instrument.Close(ctx) } @@ -98,14 +98,14 @@ func (r ExistsSourceRequest) Do(providedCtx context.Context, transport Transport path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_source") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -165,7 +165,7 @@ func (r ExistsSourceRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -195,15 +195,15 @@ func (r ExistsSourceRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "exists_source") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "exists_source") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.explain.go b/esapi/api.explain.go index 2220bc0ef6..63a7655b1c 100644 --- a/esapi/api.explain.go +++ b/esapi/api.explain.go @@ -35,7 +35,7 @@ func newExplainFunc(t Transport) Explain { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -78,7 +78,7 @@ type ExplainRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -90,7 +90,7 @@ func (r ExplainRequest) Do(providedCtx context.Context, transport Transport) (*R ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "explain") defer instrument.Close(ctx) } @@ -104,14 +104,14 @@ func (r ExplainRequest) Do(providedCtx context.Context, transport Transport) (*R path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_explain") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -183,7 +183,7 @@ func (r ExplainRequest) Do(providedCtx context.Context, transport Transport) (*R req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -217,18 +217,18 @@ func (r ExplainRequest) Do(providedCtx context.Context, transport Transport) (*R req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "explain") if reader := instrument.RecordRequestBody(ctx, "explain", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "explain") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.features.get_features.go b/esapi/api.features.get_features.go index 5c1091c94d..72cedb40e7 100644 --- a/esapi/api.features.get_features.go +++ b/esapi/api.features.get_features.go @@ -34,7 +34,7 @@ func newFeaturesGetFeaturesFunc(t Transport) FeaturesGetFeatures { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type FeaturesGetFeaturesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r FeaturesGetFeaturesRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "features.get_features") defer instrument.Close(ctx) } @@ -111,7 +111,7 @@ func (r FeaturesGetFeaturesRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,15 +141,15 @@ func (r FeaturesGetFeaturesRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "features.get_features") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "features.get_features") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.features.reset_features.go b/esapi/api.features.reset_features.go index b1d2b5107d..40928d7248 100644 --- a/esapi/api.features.reset_features.go +++ b/esapi/api.features.reset_features.go @@ -34,7 +34,7 @@ func newFeaturesResetFeaturesFunc(t Transport) FeaturesResetFeatures { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type FeaturesResetFeaturesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r FeaturesResetFeaturesRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "features.reset_features") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r FeaturesResetFeaturesRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -143,15 +143,15 @@ func (r FeaturesResetFeaturesRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "features.reset_features") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "features.reset_features") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.field_caps.go b/esapi/api.field_caps.go index 268106873c..4f3391954e 100644 --- a/esapi/api.field_caps.go +++ b/esapi/api.field_caps.go @@ -35,7 +35,7 @@ func newFieldCapsFunc(t Transport) FieldCaps { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -73,7 +73,7 @@ type FieldCapsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -85,7 +85,7 @@ func (r FieldCapsRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "field_caps") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r FieldCapsRequest) Do(providedCtx context.Context, transport Transport) ( if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -159,7 +159,7 @@ func (r FieldCapsRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -193,18 +193,18 @@ func (r FieldCapsRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "field_caps") if reader := instrument.RecordRequestBody(ctx, "field_caps", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "field_caps") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.fleet.delete_secret.go b/esapi/api.fleet.delete_secret.go index 49aae9e3eb..bbe029d9f0 100644 --- a/esapi/api.fleet.delete_secret.go +++ b/esapi/api.fleet.delete_secret.go @@ -33,7 +33,7 @@ func newFleetDeleteSecretFunc(t Transport) FleetDeleteSecret { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type FleetDeleteSecretRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r FleetDeleteSecretRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "fleet.delete_secret") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r FleetDeleteSecretRequest) Do(providedCtx context.Context, transport Tran path.WriteString("secret") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -114,7 +114,7 @@ func (r FleetDeleteSecretRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r FleetDeleteSecretRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "fleet.delete_secret") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "fleet.delete_secret") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.fleet.get_secret.go b/esapi/api.fleet.get_secret.go index 91f2dfd450..8f92aa2bfc 100644 --- a/esapi/api.fleet.get_secret.go +++ b/esapi/api.fleet.get_secret.go @@ -33,7 +33,7 @@ func newFleetGetSecretFunc(t Transport) FleetGetSecret { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type FleetGetSecretRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r FleetGetSecretRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "fleet.get_secret") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r FleetGetSecretRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("secret") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -114,7 +114,7 @@ func (r FleetGetSecretRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r FleetGetSecretRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "fleet.get_secret") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "fleet.get_secret") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.fleet.global_checkpoints.go b/esapi/api.fleet.global_checkpoints.go index b706f470bb..1c5b9d756b 100644 --- a/esapi/api.fleet.global_checkpoints.go +++ b/esapi/api.fleet.global_checkpoints.go @@ -35,7 +35,7 @@ func newFleetGlobalCheckpointsFunc(t Transport) FleetGlobalCheckpoints { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type FleetGlobalCheckpointsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r FleetGlobalCheckpointsRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "fleet.global_checkpoints") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r FleetGlobalCheckpointsRequest) Do(providedCtx context.Context, transport path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -137,7 +137,7 @@ func (r FleetGlobalCheckpointsRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r FleetGlobalCheckpointsRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "fleet.global_checkpoints") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "fleet.global_checkpoints") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.fleet.msearch.go b/esapi/api.fleet.msearch.go index 3808782b5b..c4c6b003f0 100644 --- a/esapi/api.fleet.msearch.go +++ b/esapi/api.fleet.msearch.go @@ -34,7 +34,7 @@ func newFleetMsearchFunc(t Transport) FleetMsearch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type FleetMsearchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r FleetMsearchRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "fleet.msearch") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r FleetMsearchRequest) Do(providedCtx context.Context, transport Transport if r.Index != "" { path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } } @@ -119,7 +119,7 @@ func (r FleetMsearchRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r FleetMsearchRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "fleet.msearch") if reader := instrument.RecordRequestBody(ctx, "fleet.msearch", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "fleet.msearch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.fleet.post_secret.go b/esapi/api.fleet.post_secret.go index 9b83258808..b2e9eb01bc 100644 --- a/esapi/api.fleet.post_secret.go +++ b/esapi/api.fleet.post_secret.go @@ -34,7 +34,7 @@ func newFleetPostSecretFunc(t Transport) FleetPostSecret { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type FleetPostSecretRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r FleetPostSecretRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "fleet.post_secret") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r FleetPostSecretRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r FleetPostSecretRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "fleet.post_secret") if reader := instrument.RecordRequestBody(ctx, "fleet.post_secret", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "fleet.post_secret") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.fleet.search.go b/esapi/api.fleet.search.go index 4aa6e97479..0a13bd2166 100644 --- a/esapi/api.fleet.search.go +++ b/esapi/api.fleet.search.go @@ -36,7 +36,7 @@ func newFleetSearchFunc(t Transport) FleetSearch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type FleetSearchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r FleetSearchRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "fleet.search") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r FleetSearchRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -135,7 +135,7 @@ func (r FleetSearchRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -169,18 +169,18 @@ func (r FleetSearchRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "fleet.search") if reader := instrument.RecordRequestBody(ctx, "fleet.search", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "fleet.search") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.get.go b/esapi/api.get.go index 31670f6b27..29ffdd82a2 100644 --- a/esapi/api.get.go +++ b/esapi/api.get.go @@ -34,7 +34,7 @@ func newGetFunc(t Transport) Get { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type GetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r GetRequest) Do(providedCtx context.Context, transport Transport) (*Respo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "get") defer instrument.Close(ctx) } @@ -100,14 +100,14 @@ func (r GetRequest) Do(providedCtx context.Context, transport Transport) (*Respo path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_doc") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -175,7 +175,7 @@ func (r GetRequest) Do(providedCtx context.Context, transport Transport) (*Respo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -205,15 +205,15 @@ func (r GetRequest) Do(providedCtx context.Context, transport Transport) (*Respo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.get_script.go b/esapi/api.get_script.go index 44ab1e6fb5..386c8bf478 100644 --- a/esapi/api.get_script.go +++ b/esapi/api.get_script.go @@ -34,7 +34,7 @@ func newGetScriptFunc(t Transport) GetScript { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type GetScriptRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r GetScriptRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "get_script") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r GetScriptRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("_scripts") path.WriteString("/") path.WriteString(r.ScriptID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ScriptID) } @@ -119,7 +119,7 @@ func (r GetScriptRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -149,15 +149,15 @@ func (r GetScriptRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "get_script") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "get_script") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.get_script_context.go b/esapi/api.get_script_context.go index f46ce2ff77..6eef715450 100644 --- a/esapi/api.get_script_context.go +++ b/esapi/api.get_script_context.go @@ -33,7 +33,7 @@ func newGetScriptContextFunc(t Transport) GetScriptContext { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type GetScriptContextRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r GetScriptContextRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "get_script_context") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r GetScriptContextRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r GetScriptContextRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "get_script_context") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "get_script_context") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.get_script_languages.go b/esapi/api.get_script_languages.go index 03128fdfad..789604f8b7 100644 --- a/esapi/api.get_script_languages.go +++ b/esapi/api.get_script_languages.go @@ -33,7 +33,7 @@ func newGetScriptLanguagesFunc(t Transport) GetScriptLanguages { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type GetScriptLanguagesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r GetScriptLanguagesRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "get_script_languages") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r GetScriptLanguagesRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r GetScriptLanguagesRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "get_script_languages") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "get_script_languages") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.get_source.go b/esapi/api.get_source.go index ab0918b90e..40c88ea552 100644 --- a/esapi/api.get_source.go +++ b/esapi/api.get_source.go @@ -34,7 +34,7 @@ func newGetSourceFunc(t Transport) GetSource { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type GetSourceRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r GetSourceRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "get_source") defer instrument.Close(ctx) } @@ -98,14 +98,14 @@ func (r GetSourceRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_source") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -165,7 +165,7 @@ func (r GetSourceRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -195,15 +195,15 @@ func (r GetSourceRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "get_source") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "get_source") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.health_report.go b/esapi/api.health_report.go index e97b36424e..1bfa4039c1 100644 --- a/esapi/api.health_report.go +++ b/esapi/api.health_report.go @@ -35,7 +35,7 @@ func newHealthReportFunc(t Transport) HealthReport { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type HealthReportRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r HealthReportRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "health_report") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r HealthReportRequest) Do(providedCtx context.Context, transport Transport if r.Feature != "" { path.WriteString("/") path.WriteString(r.Feature) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "feature", r.Feature) } } @@ -132,7 +132,7 @@ func (r HealthReportRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,15 +162,15 @@ func (r HealthReportRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "health_report") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "health_report") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.index.go b/esapi/api.index.go index e8d7079a38..330620331d 100644 --- a/esapi/api.index.go +++ b/esapi/api.index.go @@ -36,7 +36,7 @@ func newIndexFunc(t Transport) Index { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -80,7 +80,7 @@ type IndexRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -92,7 +92,7 @@ func (r IndexRequest) Do(providedCtx context.Context, transport Transport) (*Res ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "index") defer instrument.Close(ctx) } @@ -110,7 +110,7 @@ func (r IndexRequest) Do(providedCtx context.Context, transport Transport) (*Res path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -118,7 +118,7 @@ func (r IndexRequest) Do(providedCtx context.Context, transport Transport) (*Res if r.DocumentID != "" { path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } } @@ -195,7 +195,7 @@ func (r IndexRequest) Do(providedCtx context.Context, transport Transport) (*Res req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -229,18 +229,18 @@ func (r IndexRequest) Do(providedCtx context.Context, transport Transport) (*Res req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "index") if reader := instrument.RecordRequestBody(ctx, "index", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "index") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.add_block.go b/esapi/api.indices.add_block.go index f9571084f6..c652f38529 100644 --- a/esapi/api.indices.add_block.go +++ b/esapi/api.indices.add_block.go @@ -36,7 +36,7 @@ func newIndicesAddBlockFunc(t Transport) IndicesAddBlock { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type IndicesAddBlockRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r IndicesAddBlockRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.add_block") defer instrument.Close(ctx) } @@ -101,14 +101,14 @@ func (r IndicesAddBlockRequest) Do(providedCtx context.Context, transport Transp path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") path.WriteString("_block") path.WriteString("/") path.WriteString(r.Block) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "block", r.Block) } @@ -152,7 +152,7 @@ func (r IndicesAddBlockRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -182,15 +182,15 @@ func (r IndicesAddBlockRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.add_block") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.add_block") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.analyze.go b/esapi/api.indices.analyze.go index 96944c7d3d..c0f05b4c7b 100644 --- a/esapi/api.indices.analyze.go +++ b/esapi/api.indices.analyze.go @@ -34,7 +34,7 @@ func newIndicesAnalyzeFunc(t Transport) IndicesAnalyze { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type IndicesAnalyzeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r IndicesAnalyzeRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.analyze") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r IndicesAnalyzeRequest) Do(providedCtx context.Context, transport Transpo if r.Index != "" { path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } } @@ -121,7 +121,7 @@ func (r IndicesAnalyzeRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r IndicesAnalyzeRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.analyze") if reader := instrument.RecordRequestBody(ctx, "indices.analyze", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.analyze") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.cancel_migrate_reindex.go b/esapi/api.indices.cancel_migrate_reindex.go index 7e8c8db1bb..ada9bc4c27 100644 --- a/esapi/api.indices.cancel_migrate_reindex.go +++ b/esapi/api.indices.cancel_migrate_reindex.go @@ -33,7 +33,7 @@ func newIndicesCancelMigrateReindexFunc(t Transport) IndicesCancelMigrateReindex } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type IndicesCancelMigrateReindexRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r IndicesCancelMigrateReindexRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.cancel_migrate_reindex") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r IndicesCancelMigrateReindexRequest) Do(providedCtx context.Context, tran path.WriteString("reindex") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -118,7 +118,7 @@ func (r IndicesCancelMigrateReindexRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r IndicesCancelMigrateReindexRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.cancel_migrate_reindex") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.cancel_migrate_reindex") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.clear_cache.go b/esapi/api.indices.clear_cache.go index c559c1b68d..18ffc357ba 100644 --- a/esapi/api.indices.clear_cache.go +++ b/esapi/api.indices.clear_cache.go @@ -34,7 +34,7 @@ func newIndicesClearCacheFunc(t Transport) IndicesClearCache { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesClearCacheRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesClearCacheRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.clear_cache") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r IndicesClearCacheRequest) Do(providedCtx context.Context, transport Tran if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -157,7 +157,7 @@ func (r IndicesClearCacheRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -187,15 +187,15 @@ func (r IndicesClearCacheRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.clear_cache") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.clear_cache") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.clone.go b/esapi/api.indices.clone.go index 68a001f732..f413847210 100644 --- a/esapi/api.indices.clone.go +++ b/esapi/api.indices.clone.go @@ -35,7 +35,7 @@ func newIndicesCloneFunc(t Transport) IndicesClone { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesCloneRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesCloneRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.clone") defer instrument.Close(ctx) } @@ -96,14 +96,14 @@ func (r IndicesCloneRequest) Do(providedCtx context.Context, transport Transport path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_clone") path.WriteString("/") path.WriteString(r.Target) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "target", r.Target) } @@ -139,7 +139,7 @@ func (r IndicesCloneRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r IndicesCloneRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.clone") if reader := instrument.RecordRequestBody(ctx, "indices.clone", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.clone") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.close.go b/esapi/api.indices.close.go index 1a8e27dca9..86ca5bd662 100644 --- a/esapi/api.indices.close.go +++ b/esapi/api.indices.close.go @@ -36,7 +36,7 @@ func newIndicesCloseFunc(t Transport) IndicesClose { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesCloseRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesCloseRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.close") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r IndicesCloseRequest) Do(providedCtx context.Context, transport Transport path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -150,7 +150,7 @@ func (r IndicesCloseRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -180,15 +180,15 @@ func (r IndicesCloseRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.close") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.close") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.create.go b/esapi/api.indices.create.go index 01cd739371..a723dea9c7 100644 --- a/esapi/api.indices.create.go +++ b/esapi/api.indices.create.go @@ -35,7 +35,7 @@ func newIndicesCreateFunc(t Transport) IndicesCreate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type IndicesCreateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r IndicesCreateRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.create") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r IndicesCreateRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } @@ -130,7 +130,7 @@ func (r IndicesCreateRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -164,18 +164,18 @@ func (r IndicesCreateRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.create") if reader := instrument.RecordRequestBody(ctx, "indices.create", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.create") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.create_from.go b/esapi/api.indices.create_from.go index 608ab77b4a..e8de1791e4 100644 --- a/esapi/api.indices.create_from.go +++ b/esapi/api.indices.create_from.go @@ -34,7 +34,7 @@ func newIndicesCreateFromFunc(t Transport) IndicesCreateFrom { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type IndicesCreateFromRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r IndicesCreateFromRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.create_from") defer instrument.Close(ctx) } @@ -94,12 +94,12 @@ func (r IndicesCreateFromRequest) Do(providedCtx context.Context, transport Tran path.WriteString("_create_from") path.WriteString("/") path.WriteString(r.Source) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "source", r.Source) } path.WriteString("/") path.WriteString(r.Dest) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "dest", r.Dest) } @@ -123,7 +123,7 @@ func (r IndicesCreateFromRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,18 +157,18 @@ func (r IndicesCreateFromRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.create_from") if reader := instrument.RecordRequestBody(ctx, "indices.create_from", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.create_from") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.delete.go b/esapi/api.indices.delete.go index 3348c0cfc6..969f22d2b9 100644 --- a/esapi/api.indices.delete.go +++ b/esapi/api.indices.delete.go @@ -36,7 +36,7 @@ func newIndicesDeleteFunc(t Transport) IndicesDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesDeleteRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.delete") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r IndicesDeleteRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } @@ -143,7 +143,7 @@ func (r IndicesDeleteRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,15 +173,15 @@ func (r IndicesDeleteRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.delete_alias.go b/esapi/api.indices.delete_alias.go index cba224eca1..4091a42bf2 100644 --- a/esapi/api.indices.delete_alias.go +++ b/esapi/api.indices.delete_alias.go @@ -35,7 +35,7 @@ func newIndicesDeleteAliasFunc(t Transport) IndicesDeleteAlias { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type IndicesDeleteAliasRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r IndicesDeleteAliasRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.delete_alias") defer instrument.Close(ctx) } @@ -100,14 +100,14 @@ func (r IndicesDeleteAliasRequest) Do(providedCtx context.Context, transport Tra path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") path.WriteString("_aliases") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } @@ -139,7 +139,7 @@ func (r IndicesDeleteAliasRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -169,15 +169,15 @@ func (r IndicesDeleteAliasRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.delete_alias") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.delete_alias") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.delete_data_lifecycle.go b/esapi/api.indices.delete_data_lifecycle.go index 2286373707..0f25e33b8f 100644 --- a/esapi/api.indices.delete_data_lifecycle.go +++ b/esapi/api.indices.delete_data_lifecycle.go @@ -35,7 +35,7 @@ func newIndicesDeleteDataLifecycleFunc(t Transport) IndicesDeleteDataLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type IndicesDeleteDataLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r IndicesDeleteDataLifecycleRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.delete_data_lifecycle") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r IndicesDeleteDataLifecycleRequest) Do(providedCtx context.Context, trans path.WriteString("_data_stream") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } path.WriteString("/") @@ -136,7 +136,7 @@ func (r IndicesDeleteDataLifecycleRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r IndicesDeleteDataLifecycleRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.delete_data_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.delete_data_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.delete_index_template.go b/esapi/api.indices.delete_index_template.go index 69d17e752b..20696c7186 100644 --- a/esapi/api.indices.delete_index_template.go +++ b/esapi/api.indices.delete_index_template.go @@ -34,7 +34,7 @@ func newIndicesDeleteIndexTemplateFunc(t Transport) IndicesDeleteIndexTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type IndicesDeleteIndexTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r IndicesDeleteIndexTemplateRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.delete_index_template") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r IndicesDeleteIndexTemplateRequest) Do(providedCtx context.Context, trans path.WriteString("_index_template") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -124,7 +124,7 @@ func (r IndicesDeleteIndexTemplateRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r IndicesDeleteIndexTemplateRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.delete_index_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.delete_index_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.delete_template.go b/esapi/api.indices.delete_template.go index d06926af50..e93f8d068a 100644 --- a/esapi/api.indices.delete_template.go +++ b/esapi/api.indices.delete_template.go @@ -34,7 +34,7 @@ func newIndicesDeleteTemplateFunc(t Transport) IndicesDeleteTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type IndicesDeleteTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r IndicesDeleteTemplateRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.delete_template") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r IndicesDeleteTemplateRequest) Do(providedCtx context.Context, transport path.WriteString("_template") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -124,7 +124,7 @@ func (r IndicesDeleteTemplateRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r IndicesDeleteTemplateRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.delete_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.delete_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.disk_usage.go b/esapi/api.indices.disk_usage.go index a6db2592e2..7541995793 100644 --- a/esapi/api.indices.disk_usage.go +++ b/esapi/api.indices.disk_usage.go @@ -34,7 +34,7 @@ func newIndicesDiskUsageFunc(t Transport) IndicesDiskUsage { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesDiskUsageRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesDiskUsageRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.disk_usage") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r IndicesDiskUsageRequest) Do(providedCtx context.Context, transport Trans path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -141,7 +141,7 @@ func (r IndicesDiskUsageRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -171,15 +171,15 @@ func (r IndicesDiskUsageRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.disk_usage") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.disk_usage") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.downsample.go b/esapi/api.indices.downsample.go index 886de01a27..1aabee5e20 100644 --- a/esapi/api.indices.downsample.go +++ b/esapi/api.indices.downsample.go @@ -34,7 +34,7 @@ func newIndicesDownsampleFunc(t Transport) IndicesDownsample { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type IndicesDownsampleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r IndicesDownsampleRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.downsample") defer instrument.Close(ctx) } @@ -93,14 +93,14 @@ func (r IndicesDownsampleRequest) Do(providedCtx context.Context, transport Tran path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_downsample") path.WriteString("/") path.WriteString(r.TargetIndex) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "target_index", r.TargetIndex) } @@ -124,7 +124,7 @@ func (r IndicesDownsampleRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,18 +158,18 @@ func (r IndicesDownsampleRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.downsample") if reader := instrument.RecordRequestBody(ctx, "indices.downsample", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.downsample") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.exists.go b/esapi/api.indices.exists.go index 19cfe1882b..8382243de2 100644 --- a/esapi/api.indices.exists.go +++ b/esapi/api.indices.exists.go @@ -35,7 +35,7 @@ func newIndicesExistsFunc(t Transport) IndicesExists { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesExistsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesExistsRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.exists") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r IndicesExistsRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } @@ -147,7 +147,7 @@ func (r IndicesExistsRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -177,15 +177,15 @@ func (r IndicesExistsRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.exists") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.exists") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.exists_alias.go b/esapi/api.indices.exists_alias.go index 9e0e6591a0..1a24e140d2 100644 --- a/esapi/api.indices.exists_alias.go +++ b/esapi/api.indices.exists_alias.go @@ -35,7 +35,7 @@ func newIndicesExistsAliasFunc(t Transport) IndicesExistsAlias { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesExistsAliasRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesExistsAliasRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.exists_alias") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r IndicesExistsAliasRequest) Do(providedCtx context.Context, transport Tra if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -108,7 +108,7 @@ func (r IndicesExistsAliasRequest) Do(providedCtx context.Context, transport Tra path.WriteString("_alias") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } @@ -148,7 +148,7 @@ func (r IndicesExistsAliasRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -178,15 +178,15 @@ func (r IndicesExistsAliasRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.exists_alias") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.exists_alias") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.exists_index_template.go b/esapi/api.indices.exists_index_template.go index 0fdd9af834..6652280733 100644 --- a/esapi/api.indices.exists_index_template.go +++ b/esapi/api.indices.exists_index_template.go @@ -35,7 +35,7 @@ func newIndicesExistsIndexTemplateFunc(t Transport) IndicesExistsIndexTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type IndicesExistsIndexTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r IndicesExistsIndexTemplateRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.exists_index_template") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r IndicesExistsIndexTemplateRequest) Do(providedCtx context.Context, trans path.WriteString("_index_template") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -130,7 +130,7 @@ func (r IndicesExistsIndexTemplateRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,15 +160,15 @@ func (r IndicesExistsIndexTemplateRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.exists_index_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.exists_index_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.exists_template.go b/esapi/api.indices.exists_template.go index 285c6f8a01..5f0a146fd6 100644 --- a/esapi/api.indices.exists_template.go +++ b/esapi/api.indices.exists_template.go @@ -36,7 +36,7 @@ func newIndicesExistsTemplateFunc(t Transport) IndicesExistsTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type IndicesExistsTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r IndicesExistsTemplateRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.exists_template") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r IndicesExistsTemplateRequest) Do(providedCtx context.Context, transport path.WriteString("_template") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } @@ -135,7 +135,7 @@ func (r IndicesExistsTemplateRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -165,15 +165,15 @@ func (r IndicesExistsTemplateRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.exists_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.exists_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.explain_data_lifecycle.go b/esapi/api.indices.explain_data_lifecycle.go index a9a6a6f602..fb0002c70a 100644 --- a/esapi/api.indices.explain_data_lifecycle.go +++ b/esapi/api.indices.explain_data_lifecycle.go @@ -35,7 +35,7 @@ func newIndicesExplainDataLifecycleFunc(t Transport) IndicesExplainDataLifecycle } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type IndicesExplainDataLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r IndicesExplainDataLifecycleRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.explain_data_lifecycle") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r IndicesExplainDataLifecycleRequest) Do(providedCtx context.Context, tran path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -127,7 +127,7 @@ func (r IndicesExplainDataLifecycleRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r IndicesExplainDataLifecycleRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.explain_data_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.explain_data_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.field_usage_stats.go b/esapi/api.indices.field_usage_stats.go index 2254cbb057..9e29e6e7e0 100644 --- a/esapi/api.indices.field_usage_stats.go +++ b/esapi/api.indices.field_usage_stats.go @@ -34,7 +34,7 @@ func newIndicesFieldUsageStatsFunc(t Transport) IndicesFieldUsageStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type IndicesFieldUsageStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r IndicesFieldUsageStatsRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.field_usage_stats") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r IndicesFieldUsageStatsRequest) Do(providedCtx context.Context, transport path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -136,7 +136,7 @@ func (r IndicesFieldUsageStatsRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r IndicesFieldUsageStatsRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.field_usage_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.field_usage_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.flush.go b/esapi/api.indices.flush.go index a62302d449..cf35f6df63 100644 --- a/esapi/api.indices.flush.go +++ b/esapi/api.indices.flush.go @@ -34,7 +34,7 @@ func newIndicesFlushFunc(t Transport) IndicesFlush { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type IndicesFlushRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r IndicesFlushRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.flush") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r IndicesFlushRequest) Do(providedCtx context.Context, transport Transport if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -141,7 +141,7 @@ func (r IndicesFlushRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -171,15 +171,15 @@ func (r IndicesFlushRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.flush") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.flush") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.forcemerge.go b/esapi/api.indices.forcemerge.go index c58476b6a7..6bd9115e44 100644 --- a/esapi/api.indices.forcemerge.go +++ b/esapi/api.indices.forcemerge.go @@ -34,7 +34,7 @@ func newIndicesForcemergeFunc(t Transport) IndicesForcemerge { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesForcemergeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesForcemergeRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.forcemerge") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r IndicesForcemergeRequest) Do(providedCtx context.Context, transport Tran if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -151,7 +151,7 @@ func (r IndicesForcemergeRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -181,15 +181,15 @@ func (r IndicesForcemergeRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.forcemerge") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.forcemerge") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get.go b/esapi/api.indices.get.go index d28bbcf520..004d2f0624 100644 --- a/esapi/api.indices.get.go +++ b/esapi/api.indices.get.go @@ -36,7 +36,7 @@ func newIndicesGetFunc(t Transport) IndicesGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type IndicesGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r IndicesGetRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r IndicesGetRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } @@ -158,7 +158,7 @@ func (r IndicesGetRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -188,15 +188,15 @@ func (r IndicesGetRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_alias.go b/esapi/api.indices.get_alias.go index 4fd1f1dcb1..ba3c70ad01 100644 --- a/esapi/api.indices.get_alias.go +++ b/esapi/api.indices.get_alias.go @@ -34,7 +34,7 @@ func newIndicesGetAliasFunc(t Transport) IndicesGetAlias { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type IndicesGetAliasRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r IndicesGetAliasRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_alias") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r IndicesGetAliasRequest) Do(providedCtx context.Context, transport Transp if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -104,7 +104,7 @@ func (r IndicesGetAliasRequest) Do(providedCtx context.Context, transport Transp if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -145,7 +145,7 @@ func (r IndicesGetAliasRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -175,15 +175,15 @@ func (r IndicesGetAliasRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_alias") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_alias") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_data_lifecycle.go b/esapi/api.indices.get_data_lifecycle.go index 95810fc2f1..1d712ef265 100644 --- a/esapi/api.indices.get_data_lifecycle.go +++ b/esapi/api.indices.get_data_lifecycle.go @@ -36,7 +36,7 @@ func newIndicesGetDataLifecycleFunc(t Transport) IndicesGetDataLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type IndicesGetDataLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r IndicesGetDataLifecycleRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_data_lifecycle") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r IndicesGetDataLifecycleRequest) Do(providedCtx context.Context, transpor path.WriteString("_data_stream") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } path.WriteString("/") @@ -137,7 +137,7 @@ func (r IndicesGetDataLifecycleRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r IndicesGetDataLifecycleRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_data_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_data_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_data_lifecycle_stats.go b/esapi/api.indices.get_data_lifecycle_stats.go index a9c8a5c84e..970fd7bfd3 100644 --- a/esapi/api.indices.get_data_lifecycle_stats.go +++ b/esapi/api.indices.get_data_lifecycle_stats.go @@ -33,7 +33,7 @@ func newIndicesGetDataLifecycleStatsFunc(t Transport) IndicesGetDataLifecycleSta } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type IndicesGetDataLifecycleStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r IndicesGetDataLifecycleStatsRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_data_lifecycle_stats") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r IndicesGetDataLifecycleStatsRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r IndicesGetDataLifecycleStatsRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_data_lifecycle_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_data_lifecycle_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_field_mapping.go b/esapi/api.indices.get_field_mapping.go index ce80ec9e00..e1f9b6e61d 100644 --- a/esapi/api.indices.get_field_mapping.go +++ b/esapi/api.indices.get_field_mapping.go @@ -35,7 +35,7 @@ func newIndicesGetFieldMappingFunc(t Transport) IndicesGetFieldMapping { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesGetFieldMappingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesGetFieldMappingRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_field_mapping") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r IndicesGetFieldMappingRequest) Do(providedCtx context.Context, transport if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -111,7 +111,7 @@ func (r IndicesGetFieldMappingRequest) Do(providedCtx context.Context, transport path.WriteString("field") path.WriteString("/") path.WriteString(strings.Join(r.Fields, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "fields", strings.Join(r.Fields, ",")) } @@ -155,7 +155,7 @@ func (r IndicesGetFieldMappingRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -185,15 +185,15 @@ func (r IndicesGetFieldMappingRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_field_mapping") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_field_mapping") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_index_template.go b/esapi/api.indices.get_index_template.go index 19625e8be1..0bdf2348fa 100644 --- a/esapi/api.indices.get_index_template.go +++ b/esapi/api.indices.get_index_template.go @@ -35,7 +35,7 @@ func newIndicesGetIndexTemplateFunc(t Transport) IndicesGetIndexTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type IndicesGetIndexTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r IndicesGetIndexTemplateRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_index_template") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r IndicesGetIndexTemplateRequest) Do(providedCtx context.Context, transpor if r.Name != "" { path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } } @@ -137,7 +137,7 @@ func (r IndicesGetIndexTemplateRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r IndicesGetIndexTemplateRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_index_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_index_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_mapping.go b/esapi/api.indices.get_mapping.go index a9c8f3280c..e1fb24b05a 100644 --- a/esapi/api.indices.get_mapping.go +++ b/esapi/api.indices.get_mapping.go @@ -35,7 +35,7 @@ func newIndicesGetMappingFunc(t Transport) IndicesGetMapping { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type IndicesGetMappingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r IndicesGetMappingRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_mapping") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r IndicesGetMappingRequest) Do(providedCtx context.Context, transport Tran if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -142,7 +142,7 @@ func (r IndicesGetMappingRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -172,15 +172,15 @@ func (r IndicesGetMappingRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_mapping") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_mapping") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_migrate_reindex_status.go b/esapi/api.indices.get_migrate_reindex_status.go index 6d1ca59ae4..20918e0225 100644 --- a/esapi/api.indices.get_migrate_reindex_status.go +++ b/esapi/api.indices.get_migrate_reindex_status.go @@ -33,7 +33,7 @@ func newIndicesGetMigrateReindexStatusFunc(t Transport) IndicesGetMigrateReindex } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type IndicesGetMigrateReindexStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r IndicesGetMigrateReindexStatusRequest) Do(providedCtx context.Context, t ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_migrate_reindex_status") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r IndicesGetMigrateReindexStatusRequest) Do(providedCtx context.Context, t path.WriteString("reindex") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -118,7 +118,7 @@ func (r IndicesGetMigrateReindexStatusRequest) Do(providedCtx context.Context, t req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r IndicesGetMigrateReindexStatusRequest) Do(providedCtx context.Context, t req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_migrate_reindex_status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_migrate_reindex_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_settings.go b/esapi/api.indices.get_settings.go index d998716544..35ba5c6abd 100644 --- a/esapi/api.indices.get_settings.go +++ b/esapi/api.indices.get_settings.go @@ -35,7 +35,7 @@ func newIndicesGetSettingsFunc(t Transport) IndicesGetSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type IndicesGetSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r IndicesGetSettingsRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_settings") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r IndicesGetSettingsRequest) Do(providedCtx context.Context, transport Tra if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -108,7 +108,7 @@ func (r IndicesGetSettingsRequest) Do(providedCtx context.Context, transport Tra if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -161,7 +161,7 @@ func (r IndicesGetSettingsRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -191,15 +191,15 @@ func (r IndicesGetSettingsRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_settings") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.get_template.go b/esapi/api.indices.get_template.go index 49b08bd061..8140e8cf2a 100644 --- a/esapi/api.indices.get_template.go +++ b/esapi/api.indices.get_template.go @@ -35,7 +35,7 @@ func newIndicesGetTemplateFunc(t Transport) IndicesGetTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type IndicesGetTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r IndicesGetTemplateRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_template") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r IndicesGetTemplateRequest) Do(providedCtx context.Context, transport Tra if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -132,7 +132,7 @@ func (r IndicesGetTemplateRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,15 +162,15 @@ func (r IndicesGetTemplateRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_template") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.migrate_reindex.go b/esapi/api.indices.migrate_reindex.go index 1e9b58b87b..404e0a6220 100644 --- a/esapi/api.indices.migrate_reindex.go +++ b/esapi/api.indices.migrate_reindex.go @@ -34,7 +34,7 @@ func newIndicesMigrateReindexFunc(t Transport) IndicesMigrateReindex { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type IndicesMigrateReindexRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r IndicesMigrateReindexRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.migrate_reindex") defer instrument.Close(ctx) } @@ -109,7 +109,7 @@ func (r IndicesMigrateReindexRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -143,18 +143,18 @@ func (r IndicesMigrateReindexRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.migrate_reindex") if reader := instrument.RecordRequestBody(ctx, "indices.migrate_reindex", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.migrate_reindex") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.modify_data_stream.go b/esapi/api.indices.modify_data_stream.go index 58e7411f00..b84e2606ac 100644 --- a/esapi/api.indices.modify_data_stream.go +++ b/esapi/api.indices.modify_data_stream.go @@ -34,7 +34,7 @@ func newIndicesModifyDataStreamFunc(t Transport) IndicesModifyDataStream { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type IndicesModifyDataStreamRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r IndicesModifyDataStreamRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.modify_data_stream") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r IndicesModifyDataStreamRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r IndicesModifyDataStreamRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.modify_data_stream") if reader := instrument.RecordRequestBody(ctx, "indices.modify_data_stream", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.modify_data_stream") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.open.go b/esapi/api.indices.open.go index 66aa7ff21c..8cc0a389f3 100644 --- a/esapi/api.indices.open.go +++ b/esapi/api.indices.open.go @@ -36,7 +36,7 @@ func newIndicesOpenFunc(t Transport) IndicesOpen { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesOpenRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesOpenRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.open") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r IndicesOpenRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -150,7 +150,7 @@ func (r IndicesOpenRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -180,15 +180,15 @@ func (r IndicesOpenRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.open") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.open") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.put_alias.go b/esapi/api.indices.put_alias.go index 43f9ec5a27..2fb7b8ead0 100644 --- a/esapi/api.indices.put_alias.go +++ b/esapi/api.indices.put_alias.go @@ -36,7 +36,7 @@ func newIndicesPutAliasFunc(t Transport) IndicesPutAlias { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesPutAliasRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesPutAliasRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.put_alias") defer instrument.Close(ctx) } @@ -100,14 +100,14 @@ func (r IndicesPutAliasRequest) Do(providedCtx context.Context, transport Transp path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") path.WriteString("_aliases") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -139,7 +139,7 @@ func (r IndicesPutAliasRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r IndicesPutAliasRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.put_alias") if reader := instrument.RecordRequestBody(ctx, "indices.put_alias", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.put_alias") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.put_data_lifecycle.go b/esapi/api.indices.put_data_lifecycle.go index 997a907e7b..074b6f261c 100644 --- a/esapi/api.indices.put_data_lifecycle.go +++ b/esapi/api.indices.put_data_lifecycle.go @@ -36,7 +36,7 @@ func newIndicesPutDataLifecycleFunc(t Transport) IndicesPutDataLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesPutDataLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesPutDataLifecycleRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.put_data_lifecycle") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r IndicesPutDataLifecycleRequest) Do(providedCtx context.Context, transpor path.WriteString("_data_stream") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } path.WriteString("/") @@ -139,7 +139,7 @@ func (r IndicesPutDataLifecycleRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r IndicesPutDataLifecycleRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.put_data_lifecycle") if reader := instrument.RecordRequestBody(ctx, "indices.put_data_lifecycle", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.put_data_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.put_index_template.go b/esapi/api.indices.put_index_template.go index a4038af5b4..6cdc28848a 100644 --- a/esapi/api.indices.put_index_template.go +++ b/esapi/api.indices.put_index_template.go @@ -36,7 +36,7 @@ func newIndicesPutIndexTemplateFunc(t Transport) IndicesPutIndexTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesPutIndexTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesPutIndexTemplateRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.put_index_template") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r IndicesPutIndexTemplateRequest) Do(providedCtx context.Context, transpor path.WriteString("_index_template") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -133,7 +133,7 @@ func (r IndicesPutIndexTemplateRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,18 +167,18 @@ func (r IndicesPutIndexTemplateRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.put_index_template") if reader := instrument.RecordRequestBody(ctx, "indices.put_index_template", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.put_index_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.put_mapping.go b/esapi/api.indices.put_mapping.go index 26a524ca70..a282aed7a9 100644 --- a/esapi/api.indices.put_mapping.go +++ b/esapi/api.indices.put_mapping.go @@ -36,7 +36,7 @@ func newIndicesPutMappingFunc(t Transport) IndicesPutMapping { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type IndicesPutMappingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r IndicesPutMappingRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.put_mapping") defer instrument.Close(ctx) } @@ -146,7 +146,7 @@ func (r IndicesPutMappingRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -180,18 +180,18 @@ func (r IndicesPutMappingRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.put_mapping") if reader := instrument.RecordRequestBody(ctx, "indices.put_mapping", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.put_mapping") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.put_settings.go b/esapi/api.indices.put_settings.go index 5ee774e7da..03c49ffec5 100644 --- a/esapi/api.indices.put_settings.go +++ b/esapi/api.indices.put_settings.go @@ -36,7 +36,7 @@ func newIndicesPutSettingsFunc(t Transport) IndicesPutSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type IndicesPutSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r IndicesPutSettingsRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.put_settings") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r IndicesPutSettingsRequest) Do(providedCtx context.Context, transport Tra if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -160,7 +160,7 @@ func (r IndicesPutSettingsRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -194,18 +194,18 @@ func (r IndicesPutSettingsRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.put_settings") if reader := instrument.RecordRequestBody(ctx, "indices.put_settings", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.put_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.put_template.go b/esapi/api.indices.put_template.go index 27dc9af249..d46fa6299e 100644 --- a/esapi/api.indices.put_template.go +++ b/esapi/api.indices.put_template.go @@ -36,7 +36,7 @@ func newIndicesPutTemplateFunc(t Transport) IndicesPutTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -56,6 +56,7 @@ type IndicesPutTemplateRequest struct { Name string + Cause string Create *bool MasterTimeout time.Duration Order *int @@ -69,7 +70,7 @@ type IndicesPutTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +82,7 @@ func (r IndicesPutTemplateRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.put_template") defer instrument.Close(ctx) } @@ -97,12 +98,16 @@ func (r IndicesPutTemplateRequest) Do(providedCtx context.Context, transport Tra path.WriteString("_template") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } params = make(map[string]string) + if r.Cause != "" { + params["cause"] = r.Cause + } + if r.Create != nil { params["create"] = strconv.FormatBool(*r.Create) } @@ -133,7 +138,7 @@ func (r IndicesPutTemplateRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,18 +172,18 @@ func (r IndicesPutTemplateRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.put_template") if reader := instrument.RecordRequestBody(ctx, "indices.put_template", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.put_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -200,6 +205,13 @@ func (f IndicesPutTemplate) WithContext(v context.Context) func(*IndicesPutTempl } } +// WithCause - user defined reason for creating/updating the index template. +func (f IndicesPutTemplate) WithCause(v string) func(*IndicesPutTemplateRequest) { + return func(r *IndicesPutTemplateRequest) { + r.Cause = v + } +} + // WithCreate - whether the index template should only be added if new or can also replace an existing one. func (f IndicesPutTemplate) WithCreate(v bool) func(*IndicesPutTemplateRequest) { return func(r *IndicesPutTemplateRequest) { diff --git a/esapi/api.indices.recovery.go b/esapi/api.indices.recovery.go index 6320220c1c..79c472b780 100644 --- a/esapi/api.indices.recovery.go +++ b/esapi/api.indices.recovery.go @@ -34,7 +34,7 @@ func newIndicesRecoveryFunc(t Transport) IndicesRecovery { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type IndicesRecoveryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r IndicesRecoveryRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.recovery") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r IndicesRecoveryRequest) Do(providedCtx context.Context, transport Transp if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -126,7 +126,7 @@ func (r IndicesRecoveryRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r IndicesRecoveryRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.recovery") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.recovery") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.refresh.go b/esapi/api.indices.refresh.go index 0fcadbe2a2..62e17aa7c9 100644 --- a/esapi/api.indices.refresh.go +++ b/esapi/api.indices.refresh.go @@ -34,7 +34,7 @@ func newIndicesRefreshFunc(t Transport) IndicesRefresh { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type IndicesRefreshRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r IndicesRefreshRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.refresh") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r IndicesRefreshRequest) Do(providedCtx context.Context, transport Transpo if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -131,7 +131,7 @@ func (r IndicesRefreshRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -161,15 +161,15 @@ func (r IndicesRefreshRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.refresh") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.refresh") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.resolve_cluster.go b/esapi/api.indices.resolve_cluster.go index 2f2dde2270..9ef51d4dcc 100644 --- a/esapi/api.indices.resolve_cluster.go +++ b/esapi/api.indices.resolve_cluster.go @@ -35,7 +35,7 @@ func newIndicesResolveClusterFunc(t Transport) IndicesResolveCluster { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type IndicesResolveClusterRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r IndicesResolveClusterRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.resolve_cluster") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r IndicesResolveClusterRequest) Do(providedCtx context.Context, transport if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -144,7 +144,7 @@ func (r IndicesResolveClusterRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -174,15 +174,15 @@ func (r IndicesResolveClusterRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.resolve_cluster") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.resolve_cluster") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.resolve_index.go b/esapi/api.indices.resolve_index.go index 75e9c6266a..5f429451f4 100644 --- a/esapi/api.indices.resolve_index.go +++ b/esapi/api.indices.resolve_index.go @@ -35,7 +35,7 @@ func newIndicesResolveIndexFunc(t Transport) IndicesResolveIndex { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type IndicesResolveIndexRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r IndicesResolveIndexRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.resolve_index") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r IndicesResolveIndexRequest) Do(providedCtx context.Context, transport Tr path.WriteString("index") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } @@ -136,7 +136,7 @@ func (r IndicesResolveIndexRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r IndicesResolveIndexRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.resolve_index") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.resolve_index") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.rollover.go b/esapi/api.indices.rollover.go index 1177a4145a..0fe0767a07 100644 --- a/esapi/api.indices.rollover.go +++ b/esapi/api.indices.rollover.go @@ -36,7 +36,7 @@ func newIndicesRolloverFunc(t Transport) IndicesRollover { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -73,7 +73,7 @@ type IndicesRolloverRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -85,7 +85,7 @@ func (r IndicesRolloverRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.rollover") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r IndicesRolloverRequest) Do(providedCtx context.Context, transport Transp path.WriteString("http://") path.WriteString("/") path.WriteString(r.Alias) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "alias", r.Alias) } path.WriteString("/") @@ -107,7 +107,7 @@ func (r IndicesRolloverRequest) Do(providedCtx context.Context, transport Transp if r.NewIndex != "" { path.WriteString("/") path.WriteString(r.NewIndex) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "new_index", r.NewIndex) } } @@ -152,7 +152,7 @@ func (r IndicesRolloverRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -186,18 +186,18 @@ func (r IndicesRolloverRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.rollover") if reader := instrument.RecordRequestBody(ctx, "indices.rollover", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.rollover") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.segments.go b/esapi/api.indices.segments.go index 7a5a744b08..f37fadea2a 100644 --- a/esapi/api.indices.segments.go +++ b/esapi/api.indices.segments.go @@ -34,7 +34,7 @@ func newIndicesSegmentsFunc(t Transport) IndicesSegments { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type IndicesSegmentsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r IndicesSegmentsRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.segments") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r IndicesSegmentsRequest) Do(providedCtx context.Context, transport Transp if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -136,7 +136,7 @@ func (r IndicesSegmentsRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r IndicesSegmentsRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.segments") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.segments") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.shard_stores.go b/esapi/api.indices.shard_stores.go index 116c0fa660..885905a0f4 100644 --- a/esapi/api.indices.shard_stores.go +++ b/esapi/api.indices.shard_stores.go @@ -34,7 +34,7 @@ func newIndicesShardStoresFunc(t Transport) IndicesShardStores { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type IndicesShardStoresRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r IndicesShardStoresRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.shard_stores") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r IndicesShardStoresRequest) Do(providedCtx context.Context, transport Tra if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -136,7 +136,7 @@ func (r IndicesShardStoresRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r IndicesShardStoresRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.shard_stores") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.shard_stores") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.shrink.go b/esapi/api.indices.shrink.go index 235719deb2..e327cd513f 100644 --- a/esapi/api.indices.shrink.go +++ b/esapi/api.indices.shrink.go @@ -35,7 +35,7 @@ func newIndicesShrinkFunc(t Transport) IndicesShrink { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesShrinkRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesShrinkRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.shrink") defer instrument.Close(ctx) } @@ -96,14 +96,14 @@ func (r IndicesShrinkRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_shrink") path.WriteString("/") path.WriteString(r.Target) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "target", r.Target) } @@ -139,7 +139,7 @@ func (r IndicesShrinkRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r IndicesShrinkRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.shrink") if reader := instrument.RecordRequestBody(ctx, "indices.shrink", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.shrink") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.simulate_index_template.go b/esapi/api.indices.simulate_index_template.go index 88e95e6225..6f99f6f673 100644 --- a/esapi/api.indices.simulate_index_template.go +++ b/esapi/api.indices.simulate_index_template.go @@ -36,7 +36,7 @@ func newIndicesSimulateIndexTemplateFunc(t Transport) IndicesSimulateIndexTempla } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesSimulateIndexTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesSimulateIndexTemplateRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.simulate_index_template") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r IndicesSimulateIndexTemplateRequest) Do(providedCtx context.Context, tra path.WriteString("_simulate_index") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -140,7 +140,7 @@ func (r IndicesSimulateIndexTemplateRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -174,18 +174,18 @@ func (r IndicesSimulateIndexTemplateRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.simulate_index_template") if reader := instrument.RecordRequestBody(ctx, "indices.simulate_index_template", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.simulate_index_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.simulate_template.go b/esapi/api.indices.simulate_template.go index 16a44cf05b..076db7279f 100644 --- a/esapi/api.indices.simulate_template.go +++ b/esapi/api.indices.simulate_template.go @@ -36,7 +36,7 @@ func newIndicesSimulateTemplateFunc(t Transport) IndicesSimulateTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesSimulateTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesSimulateTemplateRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.simulate_template") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r IndicesSimulateTemplateRequest) Do(providedCtx context.Context, transpor if r.Name != "" { path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } } @@ -142,7 +142,7 @@ func (r IndicesSimulateTemplateRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -176,18 +176,18 @@ func (r IndicesSimulateTemplateRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.simulate_template") if reader := instrument.RecordRequestBody(ctx, "indices.simulate_template", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.simulate_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.split.go b/esapi/api.indices.split.go index d75a0c65c0..c536719139 100644 --- a/esapi/api.indices.split.go +++ b/esapi/api.indices.split.go @@ -35,7 +35,7 @@ func newIndicesSplitFunc(t Transport) IndicesSplit { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type IndicesSplitRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r IndicesSplitRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.split") defer instrument.Close(ctx) } @@ -96,14 +96,14 @@ func (r IndicesSplitRequest) Do(providedCtx context.Context, transport Transport path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_split") path.WriteString("/") path.WriteString(r.Target) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "target", r.Target) } @@ -139,7 +139,7 @@ func (r IndicesSplitRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r IndicesSplitRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.split") if reader := instrument.RecordRequestBody(ctx, "indices.split", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.split") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.stats.go b/esapi/api.indices.stats.go index b29baf5019..06836df0cb 100644 --- a/esapi/api.indices.stats.go +++ b/esapi/api.indices.stats.go @@ -34,7 +34,7 @@ func newIndicesStatsFunc(t Transport) IndicesStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -73,7 +73,7 @@ type IndicesStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -85,7 +85,7 @@ func (r IndicesStatsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.stats") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r IndicesStatsRequest) Do(providedCtx context.Context, transport Transport if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -109,7 +109,7 @@ func (r IndicesStatsRequest) Do(providedCtx context.Context, transport Transport if len(r.Metric) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Metric, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "metric", strings.Join(r.Metric, ",")) } } @@ -170,7 +170,7 @@ func (r IndicesStatsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -200,15 +200,15 @@ func (r IndicesStatsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.update_aliases.go b/esapi/api.indices.update_aliases.go index 3ebc36038c..a23a51d0cb 100644 --- a/esapi/api.indices.update_aliases.go +++ b/esapi/api.indices.update_aliases.go @@ -35,7 +35,7 @@ func newIndicesUpdateAliasesFunc(t Transport) IndicesUpdateAliases { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type IndicesUpdateAliasesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r IndicesUpdateAliasesRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.update_aliases") defer instrument.Close(ctx) } @@ -119,7 +119,7 @@ func (r IndicesUpdateAliasesRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r IndicesUpdateAliasesRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.update_aliases") if reader := instrument.RecordRequestBody(ctx, "indices.update_aliases", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.update_aliases") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.indices.validate_query.go b/esapi/api.indices.validate_query.go index 5a33386509..a20543cf95 100644 --- a/esapi/api.indices.validate_query.go +++ b/esapi/api.indices.validate_query.go @@ -35,7 +35,7 @@ func newIndicesValidateQueryFunc(t Transport) IndicesValidateQuery { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -77,7 +77,7 @@ type IndicesValidateQueryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -89,7 +89,7 @@ func (r IndicesValidateQueryRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.validate_query") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r IndicesValidateQueryRequest) Do(providedCtx context.Context, transport T if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -181,7 +181,7 @@ func (r IndicesValidateQueryRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -215,18 +215,18 @@ func (r IndicesValidateQueryRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.validate_query") if reader := instrument.RecordRequestBody(ctx, "indices.validate_query", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.validate_query") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.chat_completion_unified.go b/esapi/api.inference.chat_completion_unified.go index c10049bda8..9fa83b7f38 100644 --- a/esapi/api.inference.chat_completion_unified.go +++ b/esapi/api.inference.chat_completion_unified.go @@ -34,7 +34,7 @@ func newInferenceChatCompletionUnifiedFunc(t Transport) InferenceChatCompletionU } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type InferenceChatCompletionUnifiedRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r InferenceChatCompletionUnifiedRequest) Do(providedCtx context.Context, t ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.chat_completion_unified") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r InferenceChatCompletionUnifiedRequest) Do(providedCtx context.Context, t path.WriteString("chat_completion") path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r InferenceChatCompletionUnifiedRequest) Do(providedCtx context.Context, t req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r InferenceChatCompletionUnifiedRequest) Do(providedCtx context.Context, t req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.chat_completion_unified") if reader := instrument.RecordRequestBody(ctx, "inference.chat_completion_unified", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.chat_completion_unified") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.completion.go b/esapi/api.inference.completion.go index 3ee3c69b91..c086197228 100644 --- a/esapi/api.inference.completion.go +++ b/esapi/api.inference.completion.go @@ -34,7 +34,7 @@ func newInferenceCompletionFunc(t Transport) InferenceCompletion { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type InferenceCompletionRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r InferenceCompletionRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.completion") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r InferenceCompletionRequest) Do(providedCtx context.Context, transport Tr path.WriteString("completion") path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } @@ -117,7 +117,7 @@ func (r InferenceCompletionRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r InferenceCompletionRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.completion") if reader := instrument.RecordRequestBody(ctx, "inference.completion", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.completion") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.delete.go b/esapi/api.inference.delete.go index 04f7bd9456..300f6a5bde 100644 --- a/esapi/api.inference.delete.go +++ b/esapi/api.inference.delete.go @@ -34,7 +34,7 @@ func newInferenceDeleteFunc(t Transport) InferenceDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type InferenceDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r InferenceDeleteRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.delete") defer instrument.Close(ctx) } @@ -94,13 +94,13 @@ func (r InferenceDeleteRequest) Do(providedCtx context.Context, transport Transp if r.TaskType != "" { path.WriteString("/") path.WriteString(r.TaskType) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_type", r.TaskType) } } path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } @@ -132,7 +132,7 @@ func (r InferenceDeleteRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,15 +162,15 @@ func (r InferenceDeleteRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.get.go b/esapi/api.inference.get.go index a0dad0077a..1b7aaa2cc9 100644 --- a/esapi/api.inference.get.go +++ b/esapi/api.inference.get.go @@ -33,7 +33,7 @@ func newInferenceGetFunc(t Transport) InferenceGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type InferenceGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r InferenceGetRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.get") defer instrument.Close(ctx) } @@ -90,14 +90,14 @@ func (r InferenceGetRequest) Do(providedCtx context.Context, transport Transport if r.TaskType != "" { path.WriteString("/") path.WriteString(r.TaskType) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_type", r.TaskType) } } if r.InferenceID != "" { path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } } @@ -122,7 +122,7 @@ func (r InferenceGetRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r InferenceGetRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.inference.go b/esapi/api.inference.inference.go index 311a47ade7..707134599d 100644 --- a/esapi/api.inference.inference.go +++ b/esapi/api.inference.inference.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. // -// Code generated from specification version 8.16.0: DO NOT EDIT +// Code generated from specification version 8.19.0: DO NOT EDIT package esapi @@ -34,7 +34,7 @@ func newInferenceInferenceFunc(t Transport) InferenceInference { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -45,8 +45,6 @@ func newInferenceInferenceFunc(t Transport) InferenceInference { // InferenceInference perform inference // -// This API is experimental. -// // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html. type InferenceInference func(inference_id string, o ...func(*InferenceInferenceRequest)) (*Response, error) @@ -66,7 +64,7 @@ type InferenceInferenceRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +76,7 @@ func (r InferenceInferenceRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.inference") defer instrument.Close(ctx) } @@ -95,13 +93,13 @@ func (r InferenceInferenceRequest) Do(providedCtx context.Context, transport Tra if r.TaskType != "" { path.WriteString("/") path.WriteString(r.TaskType) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_type", r.TaskType) } } path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } @@ -125,7 +123,7 @@ func (r InferenceInferenceRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,18 +157,18 @@ func (r InferenceInferenceRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.inference") if reader := instrument.RecordRequestBody(ctx, "inference.inference", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.inference") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.put.go b/esapi/api.inference.put.go index 508b29cabc..09e69dcd2c 100644 --- a/esapi/api.inference.put.go +++ b/esapi/api.inference.put.go @@ -34,7 +34,7 @@ func newInferencePutFunc(t Transport) InferencePut { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type InferencePutRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r InferencePutRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.put") defer instrument.Close(ctx) } @@ -93,13 +93,13 @@ func (r InferencePutRequest) Do(providedCtx context.Context, transport Transport if r.TaskType != "" { path.WriteString("/") path.WriteString(r.TaskType) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_type", r.TaskType) } } path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } @@ -123,7 +123,7 @@ func (r InferencePutRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,18 +157,18 @@ func (r InferencePutRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.put") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.put_alibabacloud.go b/esapi/api.inference.put_alibabacloud.go new file mode 100644 index 0000000000..96da0eb610 --- /dev/null +++ b/esapi/api.inference.put_alibabacloud.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutAlibabacloudFunc(t Transport) InferencePutAlibabacloud { + return func(alibabacloud_inference_id string, task_type string, o ...func(*InferencePutAlibabacloudRequest)) (*Response, error) { + var r = InferencePutAlibabacloudRequest{AlibabacloudInferenceID: alibabacloud_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutAlibabacloud configure an AlibabaCloud AI Search inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-alibabacloud-ai-search.html. +type InferencePutAlibabacloud func(alibabacloud_inference_id string, task_type string, o ...func(*InferencePutAlibabacloudRequest)) (*Response, error) + +// InferencePutAlibabacloudRequest configures the Inference Put Alibabacloud API request. +type InferencePutAlibabacloudRequest struct { + Body io.Reader + + AlibabacloudInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutAlibabacloudRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_alibabacloud") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.AlibabacloudInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.AlibabacloudInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "alibabacloud_inference_id", r.AlibabacloudInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_alibabacloud") + if reader := instrument.RecordRequestBody(ctx, "inference.put_alibabacloud", 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_alibabacloud") + } + 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 InferencePutAlibabacloud) WithContext(v context.Context) func(*InferencePutAlibabacloudRequest) { + return func(r *InferencePutAlibabacloudRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutAlibabacloud) WithBody(v io.Reader) func(*InferencePutAlibabacloudRequest) { + return func(r *InferencePutAlibabacloudRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutAlibabacloud) WithPretty() func(*InferencePutAlibabacloudRequest) { + return func(r *InferencePutAlibabacloudRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutAlibabacloud) WithHuman() func(*InferencePutAlibabacloudRequest) { + return func(r *InferencePutAlibabacloudRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutAlibabacloud) WithErrorTrace() func(*InferencePutAlibabacloudRequest) { + return func(r *InferencePutAlibabacloudRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutAlibabacloud) WithFilterPath(v ...string) func(*InferencePutAlibabacloudRequest) { + return func(r *InferencePutAlibabacloudRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutAlibabacloud) WithHeader(h map[string]string) func(*InferencePutAlibabacloudRequest) { + return func(r *InferencePutAlibabacloudRequest) { + 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 InferencePutAlibabacloud) WithOpaqueID(s string) func(*InferencePutAlibabacloudRequest) { + return func(r *InferencePutAlibabacloudRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_amazonbedrock.go b/esapi/api.inference.put_amazonbedrock.go new file mode 100644 index 0000000000..2afc45c149 --- /dev/null +++ b/esapi/api.inference.put_amazonbedrock.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutAmazonbedrockFunc(t Transport) InferencePutAmazonbedrock { + return func(amazonbedrock_inference_id string, task_type string, o ...func(*InferencePutAmazonbedrockRequest)) (*Response, error) { + var r = InferencePutAmazonbedrockRequest{AmazonbedrockInferenceID: amazonbedrock_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutAmazonbedrock configure an Amazon Bedrock inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-amazon-bedrock.html. +type InferencePutAmazonbedrock func(amazonbedrock_inference_id string, task_type string, o ...func(*InferencePutAmazonbedrockRequest)) (*Response, error) + +// InferencePutAmazonbedrockRequest configures the Inference Put Amazonbedrock API request. +type InferencePutAmazonbedrockRequest struct { + Body io.Reader + + AmazonbedrockInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutAmazonbedrockRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_amazonbedrock") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.AmazonbedrockInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.AmazonbedrockInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "amazonbedrock_inference_id", r.AmazonbedrockInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_amazonbedrock") + if reader := instrument.RecordRequestBody(ctx, "inference.put_amazonbedrock", 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_amazonbedrock") + } + 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 InferencePutAmazonbedrock) WithContext(v context.Context) func(*InferencePutAmazonbedrockRequest) { + return func(r *InferencePutAmazonbedrockRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutAmazonbedrock) WithBody(v io.Reader) func(*InferencePutAmazonbedrockRequest) { + return func(r *InferencePutAmazonbedrockRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutAmazonbedrock) WithPretty() func(*InferencePutAmazonbedrockRequest) { + return func(r *InferencePutAmazonbedrockRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutAmazonbedrock) WithHuman() func(*InferencePutAmazonbedrockRequest) { + return func(r *InferencePutAmazonbedrockRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutAmazonbedrock) WithErrorTrace() func(*InferencePutAmazonbedrockRequest) { + return func(r *InferencePutAmazonbedrockRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutAmazonbedrock) WithFilterPath(v ...string) func(*InferencePutAmazonbedrockRequest) { + return func(r *InferencePutAmazonbedrockRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutAmazonbedrock) WithHeader(h map[string]string) func(*InferencePutAmazonbedrockRequest) { + return func(r *InferencePutAmazonbedrockRequest) { + 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 InferencePutAmazonbedrock) WithOpaqueID(s string) func(*InferencePutAmazonbedrockRequest) { + return func(r *InferencePutAmazonbedrockRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_anthropic.go b/esapi/api.inference.put_anthropic.go new file mode 100644 index 0000000000..da1017b988 --- /dev/null +++ b/esapi/api.inference.put_anthropic.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutAnthropicFunc(t Transport) InferencePutAnthropic { + return func(anthropic_inference_id string, task_type string, o ...func(*InferencePutAnthropicRequest)) (*Response, error) { + var r = InferencePutAnthropicRequest{AnthropicInferenceID: anthropic_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutAnthropic configure an Anthropic inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-anthropic.html. +type InferencePutAnthropic func(anthropic_inference_id string, task_type string, o ...func(*InferencePutAnthropicRequest)) (*Response, error) + +// InferencePutAnthropicRequest configures the Inference Put Anthropic API request. +type InferencePutAnthropicRequest struct { + Body io.Reader + + AnthropicInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutAnthropicRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_anthropic") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.AnthropicInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.AnthropicInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "anthropic_inference_id", r.AnthropicInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_anthropic") + if reader := instrument.RecordRequestBody(ctx, "inference.put_anthropic", 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_anthropic") + } + 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 InferencePutAnthropic) WithContext(v context.Context) func(*InferencePutAnthropicRequest) { + return func(r *InferencePutAnthropicRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutAnthropic) WithBody(v io.Reader) func(*InferencePutAnthropicRequest) { + return func(r *InferencePutAnthropicRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutAnthropic) WithPretty() func(*InferencePutAnthropicRequest) { + return func(r *InferencePutAnthropicRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutAnthropic) WithHuman() func(*InferencePutAnthropicRequest) { + return func(r *InferencePutAnthropicRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutAnthropic) WithErrorTrace() func(*InferencePutAnthropicRequest) { + return func(r *InferencePutAnthropicRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutAnthropic) WithFilterPath(v ...string) func(*InferencePutAnthropicRequest) { + return func(r *InferencePutAnthropicRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutAnthropic) WithHeader(h map[string]string) func(*InferencePutAnthropicRequest) { + return func(r *InferencePutAnthropicRequest) { + 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 InferencePutAnthropic) WithOpaqueID(s string) func(*InferencePutAnthropicRequest) { + return func(r *InferencePutAnthropicRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_azureaistudio.go b/esapi/api.inference.put_azureaistudio.go new file mode 100644 index 0000000000..af79caef5e --- /dev/null +++ b/esapi/api.inference.put_azureaistudio.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutAzureaistudioFunc(t Transport) InferencePutAzureaistudio { + return func(azureaistudio_inference_id string, task_type string, o ...func(*InferencePutAzureaistudioRequest)) (*Response, error) { + var r = InferencePutAzureaistudioRequest{AzureaistudioInferenceID: azureaistudio_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutAzureaistudio configure an Azure AI Studio inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-azure-ai-studio.html. +type InferencePutAzureaistudio func(azureaistudio_inference_id string, task_type string, o ...func(*InferencePutAzureaistudioRequest)) (*Response, error) + +// InferencePutAzureaistudioRequest configures the Inference Put Azureaistudio API request. +type InferencePutAzureaistudioRequest struct { + Body io.Reader + + AzureaistudioInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutAzureaistudioRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_azureaistudio") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.AzureaistudioInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.AzureaistudioInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "azureaistudio_inference_id", r.AzureaistudioInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_azureaistudio") + if reader := instrument.RecordRequestBody(ctx, "inference.put_azureaistudio", 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_azureaistudio") + } + 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 InferencePutAzureaistudio) WithContext(v context.Context) func(*InferencePutAzureaistudioRequest) { + return func(r *InferencePutAzureaistudioRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutAzureaistudio) WithBody(v io.Reader) func(*InferencePutAzureaistudioRequest) { + return func(r *InferencePutAzureaistudioRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutAzureaistudio) WithPretty() func(*InferencePutAzureaistudioRequest) { + return func(r *InferencePutAzureaistudioRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutAzureaistudio) WithHuman() func(*InferencePutAzureaistudioRequest) { + return func(r *InferencePutAzureaistudioRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutAzureaistudio) WithErrorTrace() func(*InferencePutAzureaistudioRequest) { + return func(r *InferencePutAzureaistudioRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutAzureaistudio) WithFilterPath(v ...string) func(*InferencePutAzureaistudioRequest) { + return func(r *InferencePutAzureaistudioRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutAzureaistudio) WithHeader(h map[string]string) func(*InferencePutAzureaistudioRequest) { + return func(r *InferencePutAzureaistudioRequest) { + 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 InferencePutAzureaistudio) WithOpaqueID(s string) func(*InferencePutAzureaistudioRequest) { + return func(r *InferencePutAzureaistudioRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_azureopenai.go b/esapi/api.inference.put_azureopenai.go new file mode 100644 index 0000000000..a8839970f4 --- /dev/null +++ b/esapi/api.inference.put_azureopenai.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutAzureopenaiFunc(t Transport) InferencePutAzureopenai { + return func(azureopenai_inference_id string, task_type string, o ...func(*InferencePutAzureopenaiRequest)) (*Response, error) { + var r = InferencePutAzureopenaiRequest{AzureopenaiInferenceID: azureopenai_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutAzureopenai configure an Azure OpenAI inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-azure-openai.html. +type InferencePutAzureopenai func(azureopenai_inference_id string, task_type string, o ...func(*InferencePutAzureopenaiRequest)) (*Response, error) + +// InferencePutAzureopenaiRequest configures the Inference Put Azureopenai API request. +type InferencePutAzureopenaiRequest struct { + Body io.Reader + + AzureopenaiInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutAzureopenaiRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_azureopenai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.AzureopenaiInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.AzureopenaiInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "azureopenai_inference_id", r.AzureopenaiInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_azureopenai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_azureopenai", 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_azureopenai") + } + 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 InferencePutAzureopenai) WithContext(v context.Context) func(*InferencePutAzureopenaiRequest) { + return func(r *InferencePutAzureopenaiRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutAzureopenai) WithBody(v io.Reader) func(*InferencePutAzureopenaiRequest) { + return func(r *InferencePutAzureopenaiRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutAzureopenai) WithPretty() func(*InferencePutAzureopenaiRequest) { + return func(r *InferencePutAzureopenaiRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutAzureopenai) WithHuman() func(*InferencePutAzureopenaiRequest) { + return func(r *InferencePutAzureopenaiRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutAzureopenai) WithErrorTrace() func(*InferencePutAzureopenaiRequest) { + return func(r *InferencePutAzureopenaiRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutAzureopenai) WithFilterPath(v ...string) func(*InferencePutAzureopenaiRequest) { + return func(r *InferencePutAzureopenaiRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutAzureopenai) WithHeader(h map[string]string) func(*InferencePutAzureopenaiRequest) { + return func(r *InferencePutAzureopenaiRequest) { + 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 InferencePutAzureopenai) WithOpaqueID(s string) func(*InferencePutAzureopenaiRequest) { + return func(r *InferencePutAzureopenaiRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_cohere.go b/esapi/api.inference.put_cohere.go new file mode 100644 index 0000000000..2d4e6d01bd --- /dev/null +++ b/esapi/api.inference.put_cohere.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutCohereFunc(t Transport) InferencePutCohere { + return func(cohere_inference_id string, task_type string, o ...func(*InferencePutCohereRequest)) (*Response, error) { + var r = InferencePutCohereRequest{CohereInferenceID: cohere_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutCohere configure a Cohere inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-cohere.html. +type InferencePutCohere func(cohere_inference_id string, task_type string, o ...func(*InferencePutCohereRequest)) (*Response, error) + +// InferencePutCohereRequest configures the Inference Put Cohere API request. +type InferencePutCohereRequest struct { + Body io.Reader + + CohereInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutCohereRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_cohere") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.CohereInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.CohereInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "cohere_inference_id", r.CohereInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_cohere") + if reader := instrument.RecordRequestBody(ctx, "inference.put_cohere", 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_cohere") + } + 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 InferencePutCohere) WithContext(v context.Context) func(*InferencePutCohereRequest) { + return func(r *InferencePutCohereRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutCohere) WithBody(v io.Reader) func(*InferencePutCohereRequest) { + return func(r *InferencePutCohereRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutCohere) WithPretty() func(*InferencePutCohereRequest) { + return func(r *InferencePutCohereRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutCohere) WithHuman() func(*InferencePutCohereRequest) { + return func(r *InferencePutCohereRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutCohere) WithErrorTrace() func(*InferencePutCohereRequest) { + return func(r *InferencePutCohereRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutCohere) WithFilterPath(v ...string) func(*InferencePutCohereRequest) { + return func(r *InferencePutCohereRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutCohere) WithHeader(h map[string]string) func(*InferencePutCohereRequest) { + return func(r *InferencePutCohereRequest) { + 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 InferencePutCohere) WithOpaqueID(s string) func(*InferencePutCohereRequest) { + return func(r *InferencePutCohereRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_elasticsearch.go b/esapi/api.inference.put_elasticsearch.go new file mode 100644 index 0000000000..53d360de27 --- /dev/null +++ b/esapi/api.inference.put_elasticsearch.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutElasticsearchFunc(t Transport) InferencePutElasticsearch { + return func(elasticsearch_inference_id string, task_type string, o ...func(*InferencePutElasticsearchRequest)) (*Response, error) { + var r = InferencePutElasticsearchRequest{ElasticsearchInferenceID: elasticsearch_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutElasticsearch configure an Elasticsearch inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elasticsearch.html. +type InferencePutElasticsearch func(elasticsearch_inference_id string, task_type string, o ...func(*InferencePutElasticsearchRequest)) (*Response, error) + +// InferencePutElasticsearchRequest configures the Inference Put Elasticsearch API request. +type InferencePutElasticsearchRequest struct { + Body io.Reader + + ElasticsearchInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutElasticsearchRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_elasticsearch") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.ElasticsearchInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.ElasticsearchInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "elasticsearch_inference_id", r.ElasticsearchInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_elasticsearch") + if reader := instrument.RecordRequestBody(ctx, "inference.put_elasticsearch", 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_elasticsearch") + } + 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 InferencePutElasticsearch) WithContext(v context.Context) func(*InferencePutElasticsearchRequest) { + return func(r *InferencePutElasticsearchRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutElasticsearch) WithBody(v io.Reader) func(*InferencePutElasticsearchRequest) { + return func(r *InferencePutElasticsearchRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutElasticsearch) WithPretty() func(*InferencePutElasticsearchRequest) { + return func(r *InferencePutElasticsearchRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutElasticsearch) WithHuman() func(*InferencePutElasticsearchRequest) { + return func(r *InferencePutElasticsearchRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutElasticsearch) WithErrorTrace() func(*InferencePutElasticsearchRequest) { + return func(r *InferencePutElasticsearchRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutElasticsearch) WithFilterPath(v ...string) func(*InferencePutElasticsearchRequest) { + return func(r *InferencePutElasticsearchRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutElasticsearch) WithHeader(h map[string]string) func(*InferencePutElasticsearchRequest) { + return func(r *InferencePutElasticsearchRequest) { + 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 InferencePutElasticsearch) WithOpaqueID(s string) func(*InferencePutElasticsearchRequest) { + return func(r *InferencePutElasticsearchRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_elser.go b/esapi/api.inference.put_elser.go new file mode 100644 index 0000000000..25214eecad --- /dev/null +++ b/esapi/api.inference.put_elser.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutElserFunc(t Transport) InferencePutElser { + return func(elser_inference_id string, task_type string, o ...func(*InferencePutElserRequest)) (*Response, error) { + var r = InferencePutElserRequest{ElserInferenceID: elser_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutElser configure an ELSER inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elser.html. +type InferencePutElser func(elser_inference_id string, task_type string, o ...func(*InferencePutElserRequest)) (*Response, error) + +// InferencePutElserRequest configures the Inference Put Elser API request. +type InferencePutElserRequest struct { + Body io.Reader + + ElserInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutElserRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_elser") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.ElserInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.ElserInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "elser_inference_id", r.ElserInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_elser") + if reader := instrument.RecordRequestBody(ctx, "inference.put_elser", 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_elser") + } + 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 InferencePutElser) WithContext(v context.Context) func(*InferencePutElserRequest) { + return func(r *InferencePutElserRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutElser) WithBody(v io.Reader) func(*InferencePutElserRequest) { + return func(r *InferencePutElserRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutElser) WithPretty() func(*InferencePutElserRequest) { + return func(r *InferencePutElserRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutElser) WithHuman() func(*InferencePutElserRequest) { + return func(r *InferencePutElserRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutElser) WithErrorTrace() func(*InferencePutElserRequest) { + return func(r *InferencePutElserRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutElser) WithFilterPath(v ...string) func(*InferencePutElserRequest) { + return func(r *InferencePutElserRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutElser) WithHeader(h map[string]string) func(*InferencePutElserRequest) { + return func(r *InferencePutElserRequest) { + 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 InferencePutElser) WithOpaqueID(s string) func(*InferencePutElserRequest) { + return func(r *InferencePutElserRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_googleaistudio.go b/esapi/api.inference.put_googleaistudio.go new file mode 100644 index 0000000000..c0de76bf2b --- /dev/null +++ b/esapi/api.inference.put_googleaistudio.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutGoogleaistudioFunc(t Transport) InferencePutGoogleaistudio { + return func(googleaistudio_inference_id string, task_type string, o ...func(*InferencePutGoogleaistudioRequest)) (*Response, error) { + var r = InferencePutGoogleaistudioRequest{GoogleaistudioInferenceID: googleaistudio_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutGoogleaistudio configure a Google AI Studio inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-google-ai-studio.html. +type InferencePutGoogleaistudio func(googleaistudio_inference_id string, task_type string, o ...func(*InferencePutGoogleaistudioRequest)) (*Response, error) + +// InferencePutGoogleaistudioRequest configures the Inference Put Googleaistudio API request. +type InferencePutGoogleaistudioRequest struct { + Body io.Reader + + GoogleaistudioInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutGoogleaistudioRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_googleaistudio") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.GoogleaistudioInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.GoogleaistudioInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "googleaistudio_inference_id", r.GoogleaistudioInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_googleaistudio") + if reader := instrument.RecordRequestBody(ctx, "inference.put_googleaistudio", 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_googleaistudio") + } + 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 InferencePutGoogleaistudio) WithContext(v context.Context) func(*InferencePutGoogleaistudioRequest) { + return func(r *InferencePutGoogleaistudioRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutGoogleaistudio) WithBody(v io.Reader) func(*InferencePutGoogleaistudioRequest) { + return func(r *InferencePutGoogleaistudioRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutGoogleaistudio) WithPretty() func(*InferencePutGoogleaistudioRequest) { + return func(r *InferencePutGoogleaistudioRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutGoogleaistudio) WithHuman() func(*InferencePutGoogleaistudioRequest) { + return func(r *InferencePutGoogleaistudioRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutGoogleaistudio) WithErrorTrace() func(*InferencePutGoogleaistudioRequest) { + return func(r *InferencePutGoogleaistudioRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutGoogleaistudio) WithFilterPath(v ...string) func(*InferencePutGoogleaistudioRequest) { + return func(r *InferencePutGoogleaistudioRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutGoogleaistudio) WithHeader(h map[string]string) func(*InferencePutGoogleaistudioRequest) { + return func(r *InferencePutGoogleaistudioRequest) { + 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 InferencePutGoogleaistudio) WithOpaqueID(s string) func(*InferencePutGoogleaistudioRequest) { + return func(r *InferencePutGoogleaistudioRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_googlevertexai.go b/esapi/api.inference.put_googlevertexai.go new file mode 100644 index 0000000000..cd1c4546b2 --- /dev/null +++ b/esapi/api.inference.put_googlevertexai.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutGooglevertexaiFunc(t Transport) InferencePutGooglevertexai { + return func(googlevertexai_inference_id string, task_type string, o ...func(*InferencePutGooglevertexaiRequest)) (*Response, error) { + var r = InferencePutGooglevertexaiRequest{GooglevertexaiInferenceID: googlevertexai_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutGooglevertexai configure a Google Vertex AI inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-google-vertex-ai.html. +type InferencePutGooglevertexai func(googlevertexai_inference_id string, task_type string, o ...func(*InferencePutGooglevertexaiRequest)) (*Response, error) + +// InferencePutGooglevertexaiRequest configures the Inference Put Googlevertexai API request. +type InferencePutGooglevertexaiRequest struct { + Body io.Reader + + GooglevertexaiInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutGooglevertexaiRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_googlevertexai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.GooglevertexaiInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.GooglevertexaiInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "googlevertexai_inference_id", r.GooglevertexaiInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_googlevertexai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_googlevertexai", 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_googlevertexai") + } + 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 InferencePutGooglevertexai) WithContext(v context.Context) func(*InferencePutGooglevertexaiRequest) { + return func(r *InferencePutGooglevertexaiRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutGooglevertexai) WithBody(v io.Reader) func(*InferencePutGooglevertexaiRequest) { + return func(r *InferencePutGooglevertexaiRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutGooglevertexai) WithPretty() func(*InferencePutGooglevertexaiRequest) { + return func(r *InferencePutGooglevertexaiRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutGooglevertexai) WithHuman() func(*InferencePutGooglevertexaiRequest) { + return func(r *InferencePutGooglevertexaiRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutGooglevertexai) WithErrorTrace() func(*InferencePutGooglevertexaiRequest) { + return func(r *InferencePutGooglevertexaiRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutGooglevertexai) WithFilterPath(v ...string) func(*InferencePutGooglevertexaiRequest) { + return func(r *InferencePutGooglevertexaiRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutGooglevertexai) WithHeader(h map[string]string) func(*InferencePutGooglevertexaiRequest) { + return func(r *InferencePutGooglevertexaiRequest) { + 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 InferencePutGooglevertexai) WithOpaqueID(s string) func(*InferencePutGooglevertexaiRequest) { + return func(r *InferencePutGooglevertexaiRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_hugging_face.go b/esapi/api.inference.put_hugging_face.go new file mode 100644 index 0000000000..33d3b36eb1 --- /dev/null +++ b/esapi/api.inference.put_hugging_face.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutHuggingFaceFunc(t Transport) InferencePutHuggingFace { + return func(huggingface_inference_id string, task_type string, o ...func(*InferencePutHuggingFaceRequest)) (*Response, error) { + var r = InferencePutHuggingFaceRequest{HuggingfaceInferenceID: huggingface_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutHuggingFace configure a HuggingFace inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-hugging-face.html. +type InferencePutHuggingFace func(huggingface_inference_id string, task_type string, o ...func(*InferencePutHuggingFaceRequest)) (*Response, error) + +// InferencePutHuggingFaceRequest configures the Inference Put Hugging Face API request. +type InferencePutHuggingFaceRequest struct { + Body io.Reader + + HuggingfaceInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutHuggingFaceRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_hugging_face") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.HuggingfaceInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.HuggingfaceInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "huggingface_inference_id", r.HuggingfaceInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_hugging_face") + if reader := instrument.RecordRequestBody(ctx, "inference.put_hugging_face", 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_hugging_face") + } + 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 InferencePutHuggingFace) WithContext(v context.Context) func(*InferencePutHuggingFaceRequest) { + return func(r *InferencePutHuggingFaceRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutHuggingFace) WithBody(v io.Reader) func(*InferencePutHuggingFaceRequest) { + return func(r *InferencePutHuggingFaceRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutHuggingFace) WithPretty() func(*InferencePutHuggingFaceRequest) { + return func(r *InferencePutHuggingFaceRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutHuggingFace) WithHuman() func(*InferencePutHuggingFaceRequest) { + return func(r *InferencePutHuggingFaceRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutHuggingFace) WithErrorTrace() func(*InferencePutHuggingFaceRequest) { + return func(r *InferencePutHuggingFaceRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutHuggingFace) WithFilterPath(v ...string) func(*InferencePutHuggingFaceRequest) { + return func(r *InferencePutHuggingFaceRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutHuggingFace) WithHeader(h map[string]string) func(*InferencePutHuggingFaceRequest) { + return func(r *InferencePutHuggingFaceRequest) { + 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 InferencePutHuggingFace) WithOpaqueID(s string) func(*InferencePutHuggingFaceRequest) { + return func(r *InferencePutHuggingFaceRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_jinaai.go b/esapi/api.inference.put_jinaai.go new file mode 100644 index 0000000000..83dc86a4f2 --- /dev/null +++ b/esapi/api.inference.put_jinaai.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutJinaaiFunc(t Transport) InferencePutJinaai { + return func(jinaai_inference_id string, task_type string, o ...func(*InferencePutJinaaiRequest)) (*Response, error) { + var r = InferencePutJinaaiRequest{JinaaiInferenceID: jinaai_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutJinaai configure a JinaAI inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-jinaai.html. +type InferencePutJinaai func(jinaai_inference_id string, task_type string, o ...func(*InferencePutJinaaiRequest)) (*Response, error) + +// InferencePutJinaaiRequest configures the Inference Put Jinaai API request. +type InferencePutJinaaiRequest struct { + Body io.Reader + + JinaaiInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutJinaaiRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_jinaai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.JinaaiInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.JinaaiInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "jinaai_inference_id", r.JinaaiInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_jinaai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_jinaai", 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_jinaai") + } + 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 InferencePutJinaai) WithContext(v context.Context) func(*InferencePutJinaaiRequest) { + return func(r *InferencePutJinaaiRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutJinaai) WithBody(v io.Reader) func(*InferencePutJinaaiRequest) { + return func(r *InferencePutJinaaiRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutJinaai) WithPretty() func(*InferencePutJinaaiRequest) { + return func(r *InferencePutJinaaiRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutJinaai) WithHuman() func(*InferencePutJinaaiRequest) { + return func(r *InferencePutJinaaiRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutJinaai) WithErrorTrace() func(*InferencePutJinaaiRequest) { + return func(r *InferencePutJinaaiRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutJinaai) WithFilterPath(v ...string) func(*InferencePutJinaaiRequest) { + return func(r *InferencePutJinaaiRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutJinaai) WithHeader(h map[string]string) func(*InferencePutJinaaiRequest) { + return func(r *InferencePutJinaaiRequest) { + 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 InferencePutJinaai) WithOpaqueID(s string) func(*InferencePutJinaaiRequest) { + return func(r *InferencePutJinaaiRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_mistral.go b/esapi/api.inference.put_mistral.go new file mode 100644 index 0000000000..cf32bd3998 --- /dev/null +++ b/esapi/api.inference.put_mistral.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutMistralFunc(t Transport) InferencePutMistral { + return func(mistral_inference_id string, task_type string, o ...func(*InferencePutMistralRequest)) (*Response, error) { + var r = InferencePutMistralRequest{MistralInferenceID: mistral_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutMistral configure a Mistral inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-mistral.html. +type InferencePutMistral func(mistral_inference_id string, task_type string, o ...func(*InferencePutMistralRequest)) (*Response, error) + +// InferencePutMistralRequest configures the Inference Put Mistral API request. +type InferencePutMistralRequest struct { + Body io.Reader + + MistralInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutMistralRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_mistral") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.MistralInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.MistralInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "mistral_inference_id", r.MistralInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_mistral") + if reader := instrument.RecordRequestBody(ctx, "inference.put_mistral", 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_mistral") + } + 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 InferencePutMistral) WithContext(v context.Context) func(*InferencePutMistralRequest) { + return func(r *InferencePutMistralRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutMistral) WithBody(v io.Reader) func(*InferencePutMistralRequest) { + return func(r *InferencePutMistralRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutMistral) WithPretty() func(*InferencePutMistralRequest) { + return func(r *InferencePutMistralRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutMistral) WithHuman() func(*InferencePutMistralRequest) { + return func(r *InferencePutMistralRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutMistral) WithErrorTrace() func(*InferencePutMistralRequest) { + return func(r *InferencePutMistralRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutMistral) WithFilterPath(v ...string) func(*InferencePutMistralRequest) { + return func(r *InferencePutMistralRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutMistral) WithHeader(h map[string]string) func(*InferencePutMistralRequest) { + return func(r *InferencePutMistralRequest) { + 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 InferencePutMistral) WithOpaqueID(s string) func(*InferencePutMistralRequest) { + return func(r *InferencePutMistralRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_openai.go b/esapi/api.inference.put_openai.go new file mode 100644 index 0000000000..900372b803 --- /dev/null +++ b/esapi/api.inference.put_openai.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutOpenaiFunc(t Transport) InferencePutOpenai { + return func(openai_inference_id string, task_type string, o ...func(*InferencePutOpenaiRequest)) (*Response, error) { + var r = InferencePutOpenaiRequest{OpenaiInferenceID: openai_inference_id, TaskType: task_type} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutOpenai configure an OpenAI inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-openai.html. +type InferencePutOpenai func(openai_inference_id string, task_type string, o ...func(*InferencePutOpenaiRequest)) (*Response, error) + +// InferencePutOpenaiRequest configures the Inference Put Openai API request. +type InferencePutOpenaiRequest struct { + Body io.Reader + + OpenaiInferenceID string + TaskType string + + Pretty bool + Human bool + ErrorTrace bool + FilterPath []string + + Header http.Header + + ctx context.Context + + Instrument Instrumentation +} + +// Do executes the request and returns response or error. +func (r InferencePutOpenaiRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_openai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.OpenaiInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.OpenaiInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "openai_inference_id", r.OpenaiInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_openai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_openai", 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_openai") + } + 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 InferencePutOpenai) WithContext(v context.Context) func(*InferencePutOpenaiRequest) { + return func(r *InferencePutOpenaiRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutOpenai) WithBody(v io.Reader) func(*InferencePutOpenaiRequest) { + return func(r *InferencePutOpenaiRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutOpenai) WithPretty() func(*InferencePutOpenaiRequest) { + return func(r *InferencePutOpenaiRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutOpenai) WithHuman() func(*InferencePutOpenaiRequest) { + return func(r *InferencePutOpenaiRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutOpenai) WithErrorTrace() func(*InferencePutOpenaiRequest) { + return func(r *InferencePutOpenaiRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutOpenai) WithFilterPath(v ...string) func(*InferencePutOpenaiRequest) { + return func(r *InferencePutOpenaiRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutOpenai) WithHeader(h map[string]string) func(*InferencePutOpenaiRequest) { + return func(r *InferencePutOpenaiRequest) { + 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 InferencePutOpenai) WithOpaqueID(s string) func(*InferencePutOpenaiRequest) { + return func(r *InferencePutOpenaiRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_voyageai.go b/esapi/api.inference.put_voyageai.go new file mode 100644 index 0000000000..e26cdacdc7 --- /dev/null +++ b/esapi/api.inference.put_voyageai.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutVoyageaiFunc(t Transport) InferencePutVoyageai { + return func(task_type string, voyageai_inference_id string, o ...func(*InferencePutVoyageaiRequest)) (*Response, error) { + var r = InferencePutVoyageaiRequest{TaskType: task_type, VoyageaiInferenceID: voyageai_inference_id} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutVoyageai configure a VoyageAI inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html. +type InferencePutVoyageai func(task_type string, voyageai_inference_id string, o ...func(*InferencePutVoyageaiRequest)) (*Response, error) + +// InferencePutVoyageaiRequest configures the Inference Put Voyageai API request. +type InferencePutVoyageaiRequest struct { + Body io.Reader + + TaskType string + VoyageaiInferenceID 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 InferencePutVoyageaiRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_voyageai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.VoyageaiInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.VoyageaiInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "voyageai_inference_id", r.VoyageaiInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_voyageai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_voyageai", 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_voyageai") + } + 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 InferencePutVoyageai) WithContext(v context.Context) func(*InferencePutVoyageaiRequest) { + return func(r *InferencePutVoyageaiRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutVoyageai) WithBody(v io.Reader) func(*InferencePutVoyageaiRequest) { + return func(r *InferencePutVoyageaiRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutVoyageai) WithPretty() func(*InferencePutVoyageaiRequest) { + return func(r *InferencePutVoyageaiRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutVoyageai) WithHuman() func(*InferencePutVoyageaiRequest) { + return func(r *InferencePutVoyageaiRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutVoyageai) WithErrorTrace() func(*InferencePutVoyageaiRequest) { + return func(r *InferencePutVoyageaiRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutVoyageai) WithFilterPath(v ...string) func(*InferencePutVoyageaiRequest) { + return func(r *InferencePutVoyageaiRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutVoyageai) WithHeader(h map[string]string) func(*InferencePutVoyageaiRequest) { + return func(r *InferencePutVoyageaiRequest) { + 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 InferencePutVoyageai) WithOpaqueID(s string) func(*InferencePutVoyageaiRequest) { + return func(r *InferencePutVoyageaiRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.put_watsonx.go b/esapi/api.inference.put_watsonx.go new file mode 100644 index 0000000000..302d9c62e7 --- /dev/null +++ b/esapi/api.inference.put_watsonx.go @@ -0,0 +1,246 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 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.19.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutWatsonxFunc(t Transport) InferencePutWatsonx { + return func(task_type string, watsonx_inference_id string, o ...func(*InferencePutWatsonxRequest)) (*Response, error) { + var r = InferencePutWatsonxRequest{TaskType: task_type, WatsonxInferenceID: watsonx_inference_id} + for _, f := range o { + f(&r) + } + + if transport, ok := t.(Instrumented); ok { + r.Instrument = transport.InstrumentationEnabled() + } + + return r.Do(r.ctx, t) + } +} + +// ----- API Definition ------------------------------------------------------- + +// InferencePutWatsonx configure a Watsonx inference endpoint +// +// See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-watsonx-ai.html. +type InferencePutWatsonx func(task_type string, watsonx_inference_id string, o ...func(*InferencePutWatsonxRequest)) (*Response, error) + +// InferencePutWatsonxRequest configures the Inference Put Watsonx API request. +type InferencePutWatsonxRequest struct { + Body io.Reader + + TaskType string + WatsonxInferenceID 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 InferencePutWatsonxRequest) Do(providedCtx context.Context, transport Transport) (*Response, error) { + var ( + method string + path strings.Builder + params map[string]string + ctx context.Context + ) + + if instrument, ok := r.Instrument.(Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_watsonx") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.WatsonxInferenceID)) + path.WriteString("http://") + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + path.WriteString(r.TaskType) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "task_type", r.TaskType) + } + path.WriteString("/") + path.WriteString(r.WatsonxInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "watsonx_inference_id", r.WatsonxInferenceID) + } + + params = make(map[string]string) + + if r.Pretty { + params["pretty"] = "true" + } + + if r.Human { + params["human"] = "true" + } + + if r.ErrorTrace { + params["error_trace"] = "true" + } + + if len(r.FilterPath) > 0 { + params["filter_path"] = strings.Join(r.FilterPath, ",") + } + + req, err := newRequest(method, path.String(), r.Body) + if err != nil { + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if len(params) > 0 { + q := req.URL.Query() + for k, v := range params { + q.Set(k, v) + } + req.URL.RawQuery = q.Encode() + } + + if len(r.Header) > 0 { + if len(req.Header) == 0 { + req.Header = r.Header + } else { + for k, vv := range r.Header { + for _, v := range vv { + req.Header.Add(k, v) + } + } + } + } + + if r.Body != nil && req.Header.Get(headerContentType) == "" { + req.Header[headerContentType] = headerContentTypeJSON + } + + if ctx != nil { + req = req.WithContext(ctx) + } + + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_watsonx") + if reader := instrument.RecordRequestBody(ctx, "inference.put_watsonx", 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_watsonx") + } + 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 InferencePutWatsonx) WithContext(v context.Context) func(*InferencePutWatsonxRequest) { + return func(r *InferencePutWatsonxRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutWatsonx) WithBody(v io.Reader) func(*InferencePutWatsonxRequest) { + return func(r *InferencePutWatsonxRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutWatsonx) WithPretty() func(*InferencePutWatsonxRequest) { + return func(r *InferencePutWatsonxRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutWatsonx) WithHuman() func(*InferencePutWatsonxRequest) { + return func(r *InferencePutWatsonxRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutWatsonx) WithErrorTrace() func(*InferencePutWatsonxRequest) { + return func(r *InferencePutWatsonxRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutWatsonx) WithFilterPath(v ...string) func(*InferencePutWatsonxRequest) { + return func(r *InferencePutWatsonxRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutWatsonx) WithHeader(h map[string]string) func(*InferencePutWatsonxRequest) { + return func(r *InferencePutWatsonxRequest) { + 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 InferencePutWatsonx) WithOpaqueID(s string) func(*InferencePutWatsonxRequest) { + return func(r *InferencePutWatsonxRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.inference.rerank.go b/esapi/api.inference.rerank.go index 70157d8281..16465b18d4 100644 --- a/esapi/api.inference.rerank.go +++ b/esapi/api.inference.rerank.go @@ -34,7 +34,7 @@ func newInferenceRerankFunc(t Transport) InferenceRerank { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type InferenceRerankRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r InferenceRerankRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.rerank") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r InferenceRerankRequest) Do(providedCtx context.Context, transport Transp path.WriteString("rerank") path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } @@ -117,7 +117,7 @@ func (r InferenceRerankRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r InferenceRerankRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.rerank") if reader := instrument.RecordRequestBody(ctx, "inference.rerank", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.rerank") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.sparse_embedding.go b/esapi/api.inference.sparse_embedding.go index 2aea40440d..5f2eaf059e 100644 --- a/esapi/api.inference.sparse_embedding.go +++ b/esapi/api.inference.sparse_embedding.go @@ -34,7 +34,7 @@ func newInferenceSparseEmbeddingFunc(t Transport) InferenceSparseEmbedding { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type InferenceSparseEmbeddingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r InferenceSparseEmbeddingRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.sparse_embedding") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r InferenceSparseEmbeddingRequest) Do(providedCtx context.Context, transpo path.WriteString("sparse_embedding") path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } @@ -117,7 +117,7 @@ func (r InferenceSparseEmbeddingRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r InferenceSparseEmbeddingRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.sparse_embedding") if reader := instrument.RecordRequestBody(ctx, "inference.sparse_embedding", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.sparse_embedding") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.stream_completion.go b/esapi/api.inference.stream_completion.go index 167e35b416..1fc9797f4c 100644 --- a/esapi/api.inference.stream_completion.go +++ b/esapi/api.inference.stream_completion.go @@ -34,7 +34,7 @@ func newInferenceStreamCompletionFunc(t Transport) InferenceStreamCompletion { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type InferenceStreamCompletionRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r InferenceStreamCompletionRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.stream_completion") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r InferenceStreamCompletionRequest) Do(providedCtx context.Context, transp path.WriteString("completion") path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r InferenceStreamCompletionRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r InferenceStreamCompletionRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.stream_completion") if reader := instrument.RecordRequestBody(ctx, "inference.stream_completion", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.stream_completion") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.text_embedding.go b/esapi/api.inference.text_embedding.go index 733f1054fb..188c96a978 100644 --- a/esapi/api.inference.text_embedding.go +++ b/esapi/api.inference.text_embedding.go @@ -34,7 +34,7 @@ func newInferenceTextEmbeddingFunc(t Transport) InferenceTextEmbedding { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type InferenceTextEmbeddingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r InferenceTextEmbeddingRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.text_embedding") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r InferenceTextEmbeddingRequest) Do(providedCtx context.Context, transport path.WriteString("text_embedding") path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } @@ -117,7 +117,7 @@ func (r InferenceTextEmbeddingRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r InferenceTextEmbeddingRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.text_embedding") if reader := instrument.RecordRequestBody(ctx, "inference.text_embedding", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.text_embedding") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.inference.update.go b/esapi/api.inference.update.go index a84d5ddb8b..82b6ca12e8 100644 --- a/esapi/api.inference.update.go +++ b/esapi/api.inference.update.go @@ -34,7 +34,7 @@ func newInferenceUpdateFunc(t Transport) InferenceUpdate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type InferenceUpdateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r InferenceUpdateRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "inference.update") defer instrument.Close(ctx) } @@ -93,13 +93,13 @@ func (r InferenceUpdateRequest) Do(providedCtx context.Context, transport Transp if r.TaskType != "" { path.WriteString("/") path.WriteString(r.TaskType) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_type", r.TaskType) } } path.WriteString("/") path.WriteString(r.InferenceID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "inference_id", r.InferenceID) } path.WriteString("/") @@ -125,7 +125,7 @@ func (r InferenceUpdateRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,18 +159,18 @@ func (r InferenceUpdateRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "inference.update") if reader := instrument.RecordRequestBody(ctx, "inference.update", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "inference.update") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.info.go b/esapi/api.info.go index 41663f456a..4d616da1ff 100644 --- a/esapi/api.info.go +++ b/esapi/api.info.go @@ -33,7 +33,7 @@ func newInfoFunc(t Transport) Info { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type InfoRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r InfoRequest) Do(providedCtx context.Context, transport Transport) (*Resp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "info") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r InfoRequest) Do(providedCtx context.Context, transport Transport) (*Resp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r InfoRequest) Do(providedCtx context.Context, transport Transport) (*Resp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "info") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "info") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.delete_geoip_database.go b/esapi/api.ingest.delete_geoip_database.go index 5ce0b663d4..cee652e0b5 100644 --- a/esapi/api.ingest.delete_geoip_database.go +++ b/esapi/api.ingest.delete_geoip_database.go @@ -34,7 +34,7 @@ func newIngestDeleteGeoipDatabaseFunc(t Transport) IngestDeleteGeoipDatabase { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type IngestDeleteGeoipDatabaseRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r IngestDeleteGeoipDatabaseRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.delete_geoip_database") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r IngestDeleteGeoipDatabaseRequest) Do(providedCtx context.Context, transp path.WriteString("database") path.WriteString("/") path.WriteString(strings.Join(r.DocumentID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", strings.Join(r.DocumentID, ",")) } @@ -121,7 +121,7 @@ func (r IngestDeleteGeoipDatabaseRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r IngestDeleteGeoipDatabaseRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.delete_ip_location_database.go b/esapi/api.ingest.delete_ip_location_database.go index 2f782f3c1b..655472bc1a 100644 --- a/esapi/api.ingest.delete_ip_location_database.go +++ b/esapi/api.ingest.delete_ip_location_database.go @@ -34,7 +34,7 @@ func newIngestDeleteIPLocationDatabaseFunc(t Transport) IngestDeleteIPLocationDa } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type IngestDeleteIPLocationDatabaseRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r IngestDeleteIPLocationDatabaseRequest) Do(providedCtx context.Context, t ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.delete_ip_location_database") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r IngestDeleteIPLocationDatabaseRequest) Do(providedCtx context.Context, t path.WriteString("database") path.WriteString("/") path.WriteString(strings.Join(r.DocumentID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", strings.Join(r.DocumentID, ",")) } @@ -121,7 +121,7 @@ func (r IngestDeleteIPLocationDatabaseRequest) Do(providedCtx context.Context, t req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r IngestDeleteIPLocationDatabaseRequest) Do(providedCtx context.Context, t req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.delete_ip_location_database") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.delete_ip_location_database") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.delete_pipeline.go b/esapi/api.ingest.delete_pipeline.go index 0bf27c21ff..8c452c24eb 100644 --- a/esapi/api.ingest.delete_pipeline.go +++ b/esapi/api.ingest.delete_pipeline.go @@ -34,7 +34,7 @@ func newIngestDeletePipelineFunc(t Transport) IngestDeletePipeline { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type IngestDeletePipelineRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r IngestDeletePipelineRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.delete_pipeline") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r IngestDeletePipelineRequest) Do(providedCtx context.Context, transport T path.WriteString("pipeline") path.WriteString("/") path.WriteString(r.PipelineID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.PipelineID) } @@ -126,7 +126,7 @@ func (r IngestDeletePipelineRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r IngestDeletePipelineRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.delete_pipeline") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.delete_pipeline") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.geo_ip_stats.go b/esapi/api.ingest.geo_ip_stats.go index b8206d27b4..dc485f8310 100644 --- a/esapi/api.ingest.geo_ip_stats.go +++ b/esapi/api.ingest.geo_ip_stats.go @@ -33,7 +33,7 @@ func newIngestGeoIPStatsFunc(t Transport) IngestGeoIPStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type IngestGeoIPStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r IngestGeoIPStatsRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.geo_ip_stats") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r IngestGeoIPStatsRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r IngestGeoIPStatsRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.geo_ip_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.geo_ip_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.get_geoip_database.go b/esapi/api.ingest.get_geoip_database.go index baa67ee765..3ce6498ea2 100644 --- a/esapi/api.ingest.get_geoip_database.go +++ b/esapi/api.ingest.get_geoip_database.go @@ -33,7 +33,7 @@ func newIngestGetGeoipDatabaseFunc(t Transport) IngestGetGeoipDatabase { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type IngestGetGeoipDatabaseRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r IngestGetGeoipDatabaseRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.get_geoip_database") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r IngestGetGeoipDatabaseRequest) Do(providedCtx context.Context, transport if len(r.DocumentID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.DocumentID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", strings.Join(r.DocumentID, ",")) } } @@ -118,7 +118,7 @@ func (r IngestGetGeoipDatabaseRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r IngestGetGeoipDatabaseRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.get_ip_location_database.go b/esapi/api.ingest.get_ip_location_database.go index ebd0a4905a..63f2544f0f 100644 --- a/esapi/api.ingest.get_ip_location_database.go +++ b/esapi/api.ingest.get_ip_location_database.go @@ -33,7 +33,7 @@ func newIngestGetIPLocationDatabaseFunc(t Transport) IngestGetIPLocationDatabase } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type IngestGetIPLocationDatabaseRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r IngestGetIPLocationDatabaseRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.get_ip_location_database") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r IngestGetIPLocationDatabaseRequest) Do(providedCtx context.Context, tran if len(r.DocumentID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.DocumentID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", strings.Join(r.DocumentID, ",")) } } @@ -118,7 +118,7 @@ func (r IngestGetIPLocationDatabaseRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r IngestGetIPLocationDatabaseRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.get_ip_location_database") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.get_ip_location_database") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.get_pipeline.go b/esapi/api.ingest.get_pipeline.go index bd65b24846..d995ec5249 100644 --- a/esapi/api.ingest.get_pipeline.go +++ b/esapi/api.ingest.get_pipeline.go @@ -35,7 +35,7 @@ func newIngestGetPipelineFunc(t Transport) IngestGetPipeline { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type IngestGetPipelineRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r IngestGetPipelineRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.get_pipeline") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r IngestGetPipelineRequest) Do(providedCtx context.Context, transport Tran if r.PipelineID != "" { path.WriteString("/") path.WriteString(r.PipelineID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.PipelineID) } } @@ -129,7 +129,7 @@ func (r IngestGetPipelineRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,15 +159,15 @@ func (r IngestGetPipelineRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.get_pipeline") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.get_pipeline") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.processor_grok.go b/esapi/api.ingest.processor_grok.go index 7ac94fd19f..dd03bfc4ef 100644 --- a/esapi/api.ingest.processor_grok.go +++ b/esapi/api.ingest.processor_grok.go @@ -33,7 +33,7 @@ func newIngestProcessorGrokFunc(t Transport) IngestProcessorGrok { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type IngestProcessorGrokRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r IngestProcessorGrokRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.processor_grok") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r IngestProcessorGrokRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r IngestProcessorGrokRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.processor_grok") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.processor_grok") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.put_geoip_database.go b/esapi/api.ingest.put_geoip_database.go index e19cea97db..0d27ea7145 100644 --- a/esapi/api.ingest.put_geoip_database.go +++ b/esapi/api.ingest.put_geoip_database.go @@ -34,7 +34,7 @@ func newIngestPutGeoipDatabaseFunc(t Transport) IngestPutGeoipDatabase { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type IngestPutGeoipDatabaseRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r IngestPutGeoipDatabaseRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.put_geoip_database") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r IngestPutGeoipDatabaseRequest) Do(providedCtx context.Context, transport path.WriteString("database") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -119,7 +119,7 @@ func (r IngestPutGeoipDatabaseRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r IngestPutGeoipDatabaseRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.put_ip_location_database.go b/esapi/api.ingest.put_ip_location_database.go index a5c06c2d54..97944120ae 100644 --- a/esapi/api.ingest.put_ip_location_database.go +++ b/esapi/api.ingest.put_ip_location_database.go @@ -34,7 +34,7 @@ func newIngestPutIPLocationDatabaseFunc(t Transport) IngestPutIPLocationDatabase } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type IngestPutIPLocationDatabaseRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r IngestPutIPLocationDatabaseRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.put_ip_location_database") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r IngestPutIPLocationDatabaseRequest) Do(providedCtx context.Context, tran path.WriteString("database") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -119,7 +119,7 @@ func (r IngestPutIPLocationDatabaseRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r IngestPutIPLocationDatabaseRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.put_ip_location_database") if reader := instrument.RecordRequestBody(ctx, "ingest.put_ip_location_database", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.put_ip_location_database") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.put_pipeline.go b/esapi/api.ingest.put_pipeline.go index 24f23afec6..27c57347f0 100644 --- a/esapi/api.ingest.put_pipeline.go +++ b/esapi/api.ingest.put_pipeline.go @@ -36,7 +36,7 @@ func newIngestPutPipelineFunc(t Transport) IngestPutPipeline { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IngestPutPipelineRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IngestPutPipelineRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.put_pipeline") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r IngestPutPipelineRequest) Do(providedCtx context.Context, transport Tran path.WriteString("pipeline") path.WriteString("/") path.WriteString(r.PipelineID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.PipelineID) } @@ -135,7 +135,7 @@ func (r IngestPutPipelineRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -169,18 +169,18 @@ func (r IngestPutPipelineRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.put_pipeline") if reader := instrument.RecordRequestBody(ctx, "ingest.put_pipeline", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.put_pipeline") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ingest.simulate.go b/esapi/api.ingest.simulate.go index 9ba378880b..c19b08ca05 100644 --- a/esapi/api.ingest.simulate.go +++ b/esapi/api.ingest.simulate.go @@ -35,7 +35,7 @@ func newIngestSimulateFunc(t Transport) IngestSimulate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type IngestSimulateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r IngestSimulateRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ingest.simulate") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r IngestSimulateRequest) Do(providedCtx context.Context, transport Transpo if r.PipelineID != "" { path.WriteString("/") path.WriteString(r.PipelineID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.PipelineID) } } @@ -128,7 +128,7 @@ func (r IngestSimulateRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,18 +162,18 @@ func (r IngestSimulateRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ingest.simulate") if reader := instrument.RecordRequestBody(ctx, "ingest.simulate", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ingest.simulate") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.knn_search.go b/esapi/api.knn_search.go index af6bdbd139..e92ad553ac 100644 --- a/esapi/api.knn_search.go +++ b/esapi/api.knn_search.go @@ -35,7 +35,7 @@ func newKnnSearchFunc(t Transport) KnnSearch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type KnnSearchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r KnnSearchRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "knn_search") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r KnnSearchRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -128,7 +128,7 @@ func (r KnnSearchRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,18 +162,18 @@ func (r KnnSearchRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "knn_search") if reader := instrument.RecordRequestBody(ctx, "knn_search", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "knn_search") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.mget.go b/esapi/api.mget.go index c6e775e8ba..e4097627d7 100644 --- a/esapi/api.mget.go +++ b/esapi/api.mget.go @@ -35,7 +35,7 @@ func newMgetFunc(t Transport) Mget { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type MgetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r MgetRequest) Do(providedCtx context.Context, transport Transport) (*Resp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "mget") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r MgetRequest) Do(providedCtx context.Context, transport Transport) (*Resp if r.Index != "" { path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } } @@ -164,7 +164,7 @@ func (r MgetRequest) Do(providedCtx context.Context, transport Transport) (*Resp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -198,18 +198,18 @@ func (r MgetRequest) Do(providedCtx context.Context, transport Transport) (*Resp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "mget") if reader := instrument.RecordRequestBody(ctx, "mget", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "mget") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.msearch.go b/esapi/api.msearch.go index 3b8ed9d8d9..d72c77f62c 100644 --- a/esapi/api.msearch.go +++ b/esapi/api.msearch.go @@ -35,7 +35,7 @@ func newMsearchFunc(t Transport) Msearch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type MsearchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r MsearchRequest) Do(providedCtx context.Context, transport Transport) (*R ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "msearch") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MsearchRequest) Do(providedCtx context.Context, transport Transport) (*R if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -154,7 +154,7 @@ func (r MsearchRequest) Do(providedCtx context.Context, transport Transport) (*R req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -188,18 +188,18 @@ func (r MsearchRequest) Do(providedCtx context.Context, transport Transport) (*R req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "msearch") if reader := instrument.RecordRequestBody(ctx, "msearch", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "msearch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.msearch_template.go b/esapi/api.msearch_template.go index 85df797625..cd55167184 100644 --- a/esapi/api.msearch_template.go +++ b/esapi/api.msearch_template.go @@ -35,7 +35,7 @@ func newMsearchTemplateFunc(t Transport) MsearchTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type MsearchTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r MsearchTemplateRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "msearch_template") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r MsearchTemplateRequest) Do(providedCtx context.Context, transport Transp if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -146,7 +146,7 @@ func (r MsearchTemplateRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -180,18 +180,18 @@ func (r MsearchTemplateRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "msearch_template") if reader := instrument.RecordRequestBody(ctx, "msearch_template", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "msearch_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.mtermvectors.go b/esapi/api.mtermvectors.go index 8187aba2fb..320b259196 100644 --- a/esapi/api.mtermvectors.go +++ b/esapi/api.mtermvectors.go @@ -35,7 +35,7 @@ func newMtermvectorsFunc(t Transport) Mtermvectors { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -77,7 +77,7 @@ type MtermvectorsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -89,7 +89,7 @@ func (r MtermvectorsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "mtermvectors") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r MtermvectorsRequest) Do(providedCtx context.Context, transport Transport if r.Index != "" { path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } } @@ -179,7 +179,7 @@ func (r MtermvectorsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -213,18 +213,18 @@ func (r MtermvectorsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "mtermvectors") if reader := instrument.RecordRequestBody(ctx, "mtermvectors", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "mtermvectors") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.nodes.clear_repositories_metering_archive.go b/esapi/api.nodes.clear_repositories_metering_archive.go index e15483ac9d..8c46288def 100644 --- a/esapi/api.nodes.clear_repositories_metering_archive.go +++ b/esapi/api.nodes.clear_repositories_metering_archive.go @@ -35,7 +35,7 @@ func newNodesClearRepositoriesMeteringArchiveFunc(t Transport) NodesClearReposit } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type NodesClearRepositoriesMeteringArchiveRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r NodesClearRepositoriesMeteringArchiveRequest) Do(providedCtx context.Con ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "nodes.clear_repositories_metering_archive") defer instrument.Close(ctx) } @@ -100,14 +100,14 @@ func (r NodesClearRepositoriesMeteringArchiveRequest) Do(providedCtx context.Con path.WriteString("_nodes") path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } path.WriteString("/") path.WriteString("_repositories_metering") path.WriteString("/") path.WriteString(strconv.Itoa(*r.MaxArchiveVersion)) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "max_archive_version", strconv.Itoa(*r.MaxArchiveVersion)) } @@ -131,7 +131,7 @@ func (r NodesClearRepositoriesMeteringArchiveRequest) Do(providedCtx context.Con req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -161,15 +161,15 @@ func (r NodesClearRepositoriesMeteringArchiveRequest) Do(providedCtx context.Con req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "nodes.clear_repositories_metering_archive") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "nodes.clear_repositories_metering_archive") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.nodes.get_repositories_metering_info.go b/esapi/api.nodes.get_repositories_metering_info.go index bb2dc12748..e6007898ce 100644 --- a/esapi/api.nodes.get_repositories_metering_info.go +++ b/esapi/api.nodes.get_repositories_metering_info.go @@ -34,7 +34,7 @@ func newNodesGetRepositoriesMeteringInfoFunc(t Transport) NodesGetRepositoriesMe } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type NodesGetRepositoriesMeteringInfoRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r NodesGetRepositoriesMeteringInfoRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "nodes.get_repositories_metering_info") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r NodesGetRepositoriesMeteringInfoRequest) Do(providedCtx context.Context, path.WriteString("_nodes") path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r NodesGetRepositoriesMeteringInfoRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r NodesGetRepositoriesMeteringInfoRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "nodes.get_repositories_metering_info") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "nodes.get_repositories_metering_info") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.nodes.hot_threads.go b/esapi/api.nodes.hot_threads.go index 596e6cfc3b..aacc45a96e 100644 --- a/esapi/api.nodes.hot_threads.go +++ b/esapi/api.nodes.hot_threads.go @@ -35,7 +35,7 @@ func newNodesHotThreadsFunc(t Transport) NodesHotThreads { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type NodesHotThreadsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r NodesHotThreadsRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "nodes.hot_threads") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r NodesHotThreadsRequest) Do(providedCtx context.Context, transport Transp if len(r.NodeID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } } @@ -154,7 +154,7 @@ func (r NodesHotThreadsRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -184,15 +184,15 @@ func (r NodesHotThreadsRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "nodes.hot_threads") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "nodes.hot_threads") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.nodes.info.go b/esapi/api.nodes.info.go index 5aeb97b39f..0a4e8a9061 100644 --- a/esapi/api.nodes.info.go +++ b/esapi/api.nodes.info.go @@ -35,7 +35,7 @@ func newNodesInfoFunc(t Transport) NodesInfo { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type NodesInfoRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r NodesInfoRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "nodes.info") defer instrument.Close(ctx) } @@ -95,14 +95,14 @@ func (r NodesInfoRequest) Do(providedCtx context.Context, transport Transport) ( if len(r.NodeID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } } if len(r.Metric) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Metric, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "metric", strings.Join(r.Metric, ",")) } } @@ -135,7 +135,7 @@ func (r NodesInfoRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -165,15 +165,15 @@ func (r NodesInfoRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "nodes.info") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "nodes.info") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.nodes.reload_secure_settings.go b/esapi/api.nodes.reload_secure_settings.go index 4d6e0bd8e9..ec53e0a532 100644 --- a/esapi/api.nodes.reload_secure_settings.go +++ b/esapi/api.nodes.reload_secure_settings.go @@ -35,7 +35,7 @@ func newNodesReloadSecureSettingsFunc(t Transport) NodesReloadSecureSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type NodesReloadSecureSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r NodesReloadSecureSettingsRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "nodes.reload_secure_settings") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r NodesReloadSecureSettingsRequest) Do(providedCtx context.Context, transp if len(r.NodeID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } } @@ -126,7 +126,7 @@ func (r NodesReloadSecureSettingsRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,18 +160,18 @@ func (r NodesReloadSecureSettingsRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "nodes.reload_secure_settings") if reader := instrument.RecordRequestBody(ctx, "nodes.reload_secure_settings", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "nodes.reload_secure_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.nodes.stats.go b/esapi/api.nodes.stats.go index 1e89e1297e..10f7fdbfe6 100644 --- a/esapi/api.nodes.stats.go +++ b/esapi/api.nodes.stats.go @@ -35,7 +35,7 @@ func newNodesStatsFunc(t Transport) NodesStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type NodesStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r NodesStatsRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "nodes.stats") defer instrument.Close(ctx) } @@ -103,7 +103,7 @@ func (r NodesStatsRequest) Do(providedCtx context.Context, transport Transport) if len(r.NodeID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } } @@ -112,14 +112,14 @@ func (r NodesStatsRequest) Do(providedCtx context.Context, transport Transport) if len(r.Metric) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Metric, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "metric", strings.Join(r.Metric, ",")) } } if len(r.IndexMetric) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.IndexMetric, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index_metric", strings.Join(r.IndexMetric, ",")) } } @@ -180,7 +180,7 @@ func (r NodesStatsRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -210,15 +210,15 @@ func (r NodesStatsRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "nodes.stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "nodes.stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.nodes.usage.go b/esapi/api.nodes.usage.go index 79be833421..3bc2e76f08 100644 --- a/esapi/api.nodes.usage.go +++ b/esapi/api.nodes.usage.go @@ -34,7 +34,7 @@ func newNodesUsageFunc(t Transport) NodesUsage { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type NodesUsageRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r NodesUsageRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "nodes.usage") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r NodesUsageRequest) Do(providedCtx context.Context, transport Transport) if len(r.NodeID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } } @@ -102,7 +102,7 @@ func (r NodesUsageRequest) Do(providedCtx context.Context, transport Transport) if len(r.Metric) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Metric, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "metric", strings.Join(r.Metric, ",")) } } @@ -131,7 +131,7 @@ func (r NodesUsageRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -161,15 +161,15 @@ func (r NodesUsageRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "nodes.usage") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "nodes.usage") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.ping.go b/esapi/api.ping.go index bbcbd55e5c..f0b7d3177b 100644 --- a/esapi/api.ping.go +++ b/esapi/api.ping.go @@ -33,7 +33,7 @@ func newPingFunc(t Transport) Ping { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type PingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r PingRequest) Do(providedCtx context.Context, transport Transport) (*Resp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ping") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r PingRequest) Do(providedCtx context.Context, transport Transport) (*Resp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r PingRequest) Do(providedCtx context.Context, transport Transport) (*Resp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ping") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ping") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.profiling.stacktraces.go b/esapi/api.profiling.stacktraces.go index 7c415df114..d97305eb53 100644 --- a/esapi/api.profiling.stacktraces.go +++ b/esapi/api.profiling.stacktraces.go @@ -34,7 +34,7 @@ func newProfilingStacktracesFunc(t Transport) ProfilingStacktraces { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type ProfilingStacktracesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r ProfilingStacktracesRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "profiling.stacktraces") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r ProfilingStacktracesRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r ProfilingStacktracesRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "profiling.stacktraces") if reader := instrument.RecordRequestBody(ctx, "profiling.stacktraces", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "profiling.stacktraces") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.profiling.status.go b/esapi/api.profiling.status.go index 83e41a706f..4898a7154b 100644 --- a/esapi/api.profiling.status.go +++ b/esapi/api.profiling.status.go @@ -35,7 +35,7 @@ func newProfilingStatusFunc(t Transport) ProfilingStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type ProfilingStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r ProfilingStatusRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "profiling.status") defer instrument.Close(ctx) } @@ -122,7 +122,7 @@ func (r ProfilingStatusRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r ProfilingStatusRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "profiling.status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "profiling.status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.profiling.topn_functions.go b/esapi/api.profiling.topn_functions.go index 8a98d40700..4727026f36 100644 --- a/esapi/api.profiling.topn_functions.go +++ b/esapi/api.profiling.topn_functions.go @@ -34,7 +34,7 @@ func newProfilingTopnFunctionsFunc(t Transport) ProfilingTopnFunctions { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type ProfilingTopnFunctionsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r ProfilingTopnFunctionsRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "profiling.topn_functions") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r ProfilingTopnFunctionsRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r ProfilingTopnFunctionsRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "profiling.topn_functions") if reader := instrument.RecordRequestBody(ctx, "profiling.topn_functions", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "profiling.topn_functions") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.put_script.go b/esapi/api.put_script.go index 291a8f98e5..c7d3cbd64a 100644 --- a/esapi/api.put_script.go +++ b/esapi/api.put_script.go @@ -35,7 +35,7 @@ func newPutScriptFunc(t Transport) PutScript { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type PutScriptRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r PutScriptRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "put_script") defer instrument.Close(ctx) } @@ -97,13 +97,13 @@ func (r PutScriptRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("_scripts") path.WriteString("/") path.WriteString(r.ScriptID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ScriptID) } if r.ScriptContext != "" { path.WriteString("/") path.WriteString(r.ScriptContext) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "context", r.ScriptContext) } } @@ -140,7 +140,7 @@ func (r PutScriptRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -174,18 +174,18 @@ func (r PutScriptRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "put_script") if reader := instrument.RecordRequestBody(ctx, "put_script", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "put_script") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.query_rules.delete_rule.go b/esapi/api.query_rules.delete_rule.go index 3ffeb373d8..68e488df24 100644 --- a/esapi/api.query_rules.delete_rule.go +++ b/esapi/api.query_rules.delete_rule.go @@ -33,7 +33,7 @@ func newQueryRulesDeleteRuleFunc(t Transport) QueryRulesDeleteRule { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type QueryRulesDeleteRuleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r QueryRulesDeleteRuleRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "query_rules.delete_rule") defer instrument.Close(ctx) } @@ -89,14 +89,14 @@ func (r QueryRulesDeleteRuleRequest) Do(providedCtx context.Context, transport T path.WriteString("_query_rules") path.WriteString("/") path.WriteString(r.RulesetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "rule_id", r.RuleID) } @@ -120,7 +120,7 @@ func (r QueryRulesDeleteRuleRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -150,15 +150,15 @@ func (r QueryRulesDeleteRuleRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.query_rules.delete_ruleset.go b/esapi/api.query_rules.delete_ruleset.go index bb9c33cc90..4d0f4e666d 100644 --- a/esapi/api.query_rules.delete_ruleset.go +++ b/esapi/api.query_rules.delete_ruleset.go @@ -33,7 +33,7 @@ func newQueryRulesDeleteRulesetFunc(t Transport) QueryRulesDeleteRuleset { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type QueryRulesDeleteRulesetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r QueryRulesDeleteRulesetRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "query_rules.delete_ruleset") defer instrument.Close(ctx) } @@ -88,7 +88,7 @@ func (r QueryRulesDeleteRulesetRequest) Do(providedCtx context.Context, transpor path.WriteString("_query_rules") path.WriteString("/") path.WriteString(r.RulesetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "ruleset_id", r.RulesetID) } @@ -112,7 +112,7 @@ func (r QueryRulesDeleteRulesetRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -142,15 +142,15 @@ func (r QueryRulesDeleteRulesetRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "query_rules.delete_ruleset") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "query_rules.delete_ruleset") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.query_rules.get_rule.go b/esapi/api.query_rules.get_rule.go index ad41660cf9..5b67a2d6be 100644 --- a/esapi/api.query_rules.get_rule.go +++ b/esapi/api.query_rules.get_rule.go @@ -33,7 +33,7 @@ func newQueryRulesGetRuleFunc(t Transport) QueryRulesGetRule { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type QueryRulesGetRuleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r QueryRulesGetRuleRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "query_rules.get_rule") defer instrument.Close(ctx) } @@ -89,14 +89,14 @@ func (r QueryRulesGetRuleRequest) Do(providedCtx context.Context, transport Tran path.WriteString("_query_rules") path.WriteString("/") path.WriteString(r.RulesetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "rule_id", r.RuleID) } @@ -120,7 +120,7 @@ func (r QueryRulesGetRuleRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -150,15 +150,15 @@ func (r QueryRulesGetRuleRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.query_rules.get_ruleset.go b/esapi/api.query_rules.get_ruleset.go index 8a16beaf5a..2a00630dce 100644 --- a/esapi/api.query_rules.get_ruleset.go +++ b/esapi/api.query_rules.get_ruleset.go @@ -33,7 +33,7 @@ func newQueryRulesGetRulesetFunc(t Transport) QueryRulesGetRuleset { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type QueryRulesGetRulesetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r QueryRulesGetRulesetRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "query_rules.get_ruleset") defer instrument.Close(ctx) } @@ -88,7 +88,7 @@ func (r QueryRulesGetRulesetRequest) Do(providedCtx context.Context, transport T path.WriteString("_query_rules") path.WriteString("/") path.WriteString(r.RulesetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "ruleset_id", r.RulesetID) } @@ -112,7 +112,7 @@ func (r QueryRulesGetRulesetRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -142,15 +142,15 @@ func (r QueryRulesGetRulesetRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "query_rules.get_ruleset") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "query_rules.get_ruleset") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.query_rules.list_rulesets.go b/esapi/api.query_rules.list_rulesets.go index 145525a32f..e507b12986 100644 --- a/esapi/api.query_rules.list_rulesets.go +++ b/esapi/api.query_rules.list_rulesets.go @@ -34,7 +34,7 @@ func newQueryRulesListRulesetsFunc(t Transport) QueryRulesListRulesets { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type QueryRulesListRulesetsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r QueryRulesListRulesetsRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "query_rules.list_rulesets") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r QueryRulesListRulesetsRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r QueryRulesListRulesetsRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "query_rules.list_rulesets") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "query_rules.list_rulesets") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.query_rules.put_rule.go b/esapi/api.query_rules.put_rule.go index 1cce74579f..dc823016e7 100644 --- a/esapi/api.query_rules.put_rule.go +++ b/esapi/api.query_rules.put_rule.go @@ -34,7 +34,7 @@ func newQueryRulesPutRuleFunc(t Transport) QueryRulesPutRule { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type QueryRulesPutRuleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r QueryRulesPutRuleRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "query_rules.put_rule") defer instrument.Close(ctx) } @@ -92,14 +92,14 @@ func (r QueryRulesPutRuleRequest) Do(providedCtx context.Context, transport Tran path.WriteString("_query_rules") path.WriteString("/") path.WriteString(r.RulesetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "rule_id", r.RuleID) } @@ -123,7 +123,7 @@ func (r QueryRulesPutRuleRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,18 +157,18 @@ func (r QueryRulesPutRuleRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.query_rules.put_ruleset.go b/esapi/api.query_rules.put_ruleset.go index 3a68c1875e..37f4aa83c3 100644 --- a/esapi/api.query_rules.put_ruleset.go +++ b/esapi/api.query_rules.put_ruleset.go @@ -34,7 +34,7 @@ func newQueryRulesPutRulesetFunc(t Transport) QueryRulesPutRuleset { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type QueryRulesPutRulesetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r QueryRulesPutRulesetRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "query_rules.put_ruleset") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r QueryRulesPutRulesetRequest) Do(providedCtx context.Context, transport T path.WriteString("_query_rules") path.WriteString("/") path.WriteString(r.RulesetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "ruleset_id", r.RulesetID) } @@ -115,7 +115,7 @@ func (r QueryRulesPutRulesetRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -149,18 +149,18 @@ func (r QueryRulesPutRulesetRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "query_rules.put_ruleset") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.query_rules.test.go b/esapi/api.query_rules.test.go index c54cc543f7..7ed2f40ff1 100644 --- a/esapi/api.query_rules.test.go +++ b/esapi/api.query_rules.test.go @@ -34,7 +34,7 @@ func newQueryRulesTestFunc(t Transport) QueryRulesTest { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type QueryRulesTestRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r QueryRulesTestRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "query_rules.test") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r QueryRulesTestRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("_query_rules") path.WriteString("/") path.WriteString(r.RulesetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "ruleset_id", r.RulesetID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r QueryRulesTestRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r QueryRulesTestRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "query_rules.test") if reader := instrument.RecordRequestBody(ctx, "query_rules.test", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "query_rules.test") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.rank_eval.go b/esapi/api.rank_eval.go index 0d006f0937..db24e66b11 100644 --- a/esapi/api.rank_eval.go +++ b/esapi/api.rank_eval.go @@ -35,7 +35,7 @@ func newRankEvalFunc(t Transport) RankEval { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type RankEvalRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r RankEvalRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rank_eval") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r RankEvalRequest) Do(providedCtx context.Context, transport Transport) (* if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -139,7 +139,7 @@ func (r RankEvalRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r RankEvalRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rank_eval") if reader := instrument.RecordRequestBody(ctx, "rank_eval", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rank_eval") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.reindex.go b/esapi/api.reindex.go index 8e9aa2b1dd..35bd184173 100644 --- a/esapi/api.reindex.go +++ b/esapi/api.reindex.go @@ -37,7 +37,7 @@ func newReindexFunc(t Transport) Reindex { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -75,7 +75,7 @@ type ReindexRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -87,7 +87,7 @@ func (r ReindexRequest) Do(providedCtx context.Context, transport Transport) (*R ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "reindex") defer instrument.Close(ctx) } @@ -153,7 +153,7 @@ func (r ReindexRequest) Do(providedCtx context.Context, transport Transport) (*R req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -187,18 +187,18 @@ func (r ReindexRequest) Do(providedCtx context.Context, transport Transport) (*R req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "reindex") if reader := instrument.RecordRequestBody(ctx, "reindex", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "reindex") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.reindex_rethrottle.go b/esapi/api.reindex_rethrottle.go index a81cd6f8f0..bccde0bff0 100644 --- a/esapi/api.reindex_rethrottle.go +++ b/esapi/api.reindex_rethrottle.go @@ -34,7 +34,7 @@ func newReindexRethrottleFunc(t Transport) ReindexRethrottle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ReindexRethrottleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ReindexRethrottleRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "reindex_rethrottle") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r ReindexRethrottleRequest) Do(providedCtx context.Context, transport Tran path.WriteString("_reindex") path.WriteString("/") path.WriteString(r.TaskID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_id", r.TaskID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r ReindexRethrottleRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r ReindexRethrottleRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "reindex_rethrottle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "reindex_rethrottle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.render_search_template.go b/esapi/api.render_search_template.go index 4873ff5d88..a73bfad23e 100644 --- a/esapi/api.render_search_template.go +++ b/esapi/api.render_search_template.go @@ -34,7 +34,7 @@ func newRenderSearchTemplateFunc(t Transport) RenderSearchTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type RenderSearchTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r RenderSearchTemplateRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "render_search_template") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r RenderSearchTemplateRequest) Do(providedCtx context.Context, transport T if r.TemplateID != "" { path.WriteString("/") path.WriteString(r.TemplateID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.TemplateID) } } @@ -119,7 +119,7 @@ func (r RenderSearchTemplateRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r RenderSearchTemplateRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "render_search_template") if reader := instrument.RecordRequestBody(ctx, "render_search_template", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "render_search_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.scripts_painless_execute.go b/esapi/api.scripts_painless_execute.go index 7856aa8968..c561a51966 100644 --- a/esapi/api.scripts_painless_execute.go +++ b/esapi/api.scripts_painless_execute.go @@ -34,7 +34,7 @@ func newScriptsPainlessExecuteFunc(t Transport) ScriptsPainlessExecute { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ScriptsPainlessExecuteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ScriptsPainlessExecuteRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "scripts_painless_execute") defer instrument.Close(ctx) } @@ -109,7 +109,7 @@ func (r ScriptsPainlessExecuteRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -143,18 +143,18 @@ func (r ScriptsPainlessExecuteRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "scripts_painless_execute") if reader := instrument.RecordRequestBody(ctx, "scripts_painless_execute", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "scripts_painless_execute") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.scroll.go b/esapi/api.scroll.go index 91794da0e2..e714aa79d7 100644 --- a/esapi/api.scroll.go +++ b/esapi/api.scroll.go @@ -36,7 +36,7 @@ func newScrollFunc(t Transport) Scroll { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type ScrollRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r ScrollRequest) Do(providedCtx context.Context, transport Transport) (*Re ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "scroll") defer instrument.Close(ctx) } @@ -125,7 +125,7 @@ func (r ScrollRequest) Do(providedCtx context.Context, transport Transport) (*Re req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,18 +159,18 @@ func (r ScrollRequest) Do(providedCtx context.Context, transport Transport) (*Re req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "scroll") if reader := instrument.RecordRequestBody(ctx, "scroll", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "scroll") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search.go b/esapi/api.search.go index 544de08b17..1acd819e77 100644 --- a/esapi/api.search.go +++ b/esapi/api.search.go @@ -37,7 +37,7 @@ func newSearchFunc(t Transport) Search { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -112,7 +112,7 @@ type SearchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -124,7 +124,7 @@ func (r SearchRequest) Do(providedCtx context.Context, transport Transport) (*Re ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search") defer instrument.Close(ctx) } @@ -139,7 +139,7 @@ func (r SearchRequest) Do(providedCtx context.Context, transport Transport) (*Re if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -346,7 +346,7 @@ func (r SearchRequest) Do(providedCtx context.Context, transport Transport) (*Re req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -380,18 +380,18 @@ func (r SearchRequest) Do(providedCtx context.Context, transport Transport) (*Re req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search") if reader := instrument.RecordRequestBody(ctx, "search", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.delete.go b/esapi/api.search_application.delete.go index 58dcf446d6..eee3f1fc30 100644 --- a/esapi/api.search_application.delete.go +++ b/esapi/api.search_application.delete.go @@ -33,7 +33,7 @@ func newSearchApplicationDeleteFunc(t Transport) SearchApplicationDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SearchApplicationDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SearchApplicationDeleteRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.delete") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SearchApplicationDeleteRequest) Do(providedCtx context.Context, transpor path.WriteString("search_application") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -116,7 +116,7 @@ func (r SearchApplicationDeleteRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SearchApplicationDeleteRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.delete_behavioral_analytics.go b/esapi/api.search_application.delete_behavioral_analytics.go index 184c0a65a5..4d7e374147 100644 --- a/esapi/api.search_application.delete_behavioral_analytics.go +++ b/esapi/api.search_application.delete_behavioral_analytics.go @@ -33,7 +33,7 @@ func newSearchApplicationDeleteBehavioralAnalyticsFunc(t Transport) SearchApplic } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SearchApplicationDeleteBehavioralAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SearchApplicationDeleteBehavioralAnalyticsRequest) Do(providedCtx contex ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.delete_behavioral_analytics") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SearchApplicationDeleteBehavioralAnalyticsRequest) Do(providedCtx contex path.WriteString("analytics") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -116,7 +116,7 @@ func (r SearchApplicationDeleteBehavioralAnalyticsRequest) Do(providedCtx contex req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SearchApplicationDeleteBehavioralAnalyticsRequest) Do(providedCtx contex req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.delete_behavioral_analytics") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.delete_behavioral_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.get.go b/esapi/api.search_application.get.go index c8a8ccda4f..ebdcb27172 100644 --- a/esapi/api.search_application.get.go +++ b/esapi/api.search_application.get.go @@ -33,7 +33,7 @@ func newSearchApplicationGetFunc(t Transport) SearchApplicationGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SearchApplicationGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SearchApplicationGetRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.get") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SearchApplicationGetRequest) Do(providedCtx context.Context, transport T path.WriteString("search_application") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -116,7 +116,7 @@ func (r SearchApplicationGetRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SearchApplicationGetRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.get_behavioral_analytics.go b/esapi/api.search_application.get_behavioral_analytics.go index e57dacbdc4..583c10d8e7 100644 --- a/esapi/api.search_application.get_behavioral_analytics.go +++ b/esapi/api.search_application.get_behavioral_analytics.go @@ -33,7 +33,7 @@ func newSearchApplicationGetBehavioralAnalyticsFunc(t Transport) SearchApplicati } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SearchApplicationGetBehavioralAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SearchApplicationGetBehavioralAnalyticsRequest) Do(providedCtx context.C ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.get_behavioral_analytics") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r SearchApplicationGetBehavioralAnalyticsRequest) Do(providedCtx context.C if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -118,7 +118,7 @@ func (r SearchApplicationGetBehavioralAnalyticsRequest) Do(providedCtx context.C req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r SearchApplicationGetBehavioralAnalyticsRequest) Do(providedCtx context.C req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.get_behavioral_analytics") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.get_behavioral_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.list.go b/esapi/api.search_application.list.go index 8b508c4585..a5d167f2a8 100644 --- a/esapi/api.search_application.list.go +++ b/esapi/api.search_application.list.go @@ -34,7 +34,7 @@ func newSearchApplicationListFunc(t Transport) SearchApplicationList { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SearchApplicationListRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SearchApplicationListRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.list") defer instrument.Close(ctx) } @@ -123,7 +123,7 @@ func (r SearchApplicationListRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,15 +153,15 @@ func (r SearchApplicationListRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.list") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.list") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.post_behavioral_analytics_event.go b/esapi/api.search_application.post_behavioral_analytics_event.go index c9fe2a2a7c..78c6568e47 100644 --- a/esapi/api.search_application.post_behavioral_analytics_event.go +++ b/esapi/api.search_application.post_behavioral_analytics_event.go @@ -35,7 +35,7 @@ func newSearchApplicationPostBehavioralAnalyticsEventFunc(t Transport) SearchApp } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type SearchApplicationPostBehavioralAnalyticsEventRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r SearchApplicationPostBehavioralAnalyticsEventRequest) Do(providedCtx con ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.post_behavioral_analytics_event") defer instrument.Close(ctx) } @@ -99,14 +99,14 @@ func (r SearchApplicationPostBehavioralAnalyticsEventRequest) Do(providedCtx con path.WriteString("analytics") path.WriteString("/") path.WriteString(r.CollectionName) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "collection_name", r.CollectionName) } path.WriteString("/") path.WriteString("event") path.WriteString("/") path.WriteString(r.EventType) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "event_type", r.EventType) } @@ -134,7 +134,7 @@ func (r SearchApplicationPostBehavioralAnalyticsEventRequest) Do(providedCtx con req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -168,18 +168,18 @@ func (r SearchApplicationPostBehavioralAnalyticsEventRequest) Do(providedCtx con req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.post_behavioral_analytics_event") if reader := instrument.RecordRequestBody(ctx, "search_application.post_behavioral_analytics_event", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.post_behavioral_analytics_event") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.put.go b/esapi/api.search_application.put.go index e3be29d2e9..c4c64c1f76 100644 --- a/esapi/api.search_application.put.go +++ b/esapi/api.search_application.put.go @@ -35,7 +35,7 @@ func newSearchApplicationPutFunc(t Transport) SearchApplicationPut { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type SearchApplicationPutRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r SearchApplicationPutRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.put") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r SearchApplicationPutRequest) Do(providedCtx context.Context, transport T path.WriteString("search_application") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -126,7 +126,7 @@ func (r SearchApplicationPutRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,18 +160,18 @@ func (r SearchApplicationPutRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.put") if reader := instrument.RecordRequestBody(ctx, "search_application.put", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.put") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.put_behavioral_analytics.go b/esapi/api.search_application.put_behavioral_analytics.go index 5238653b42..31bed93cc9 100644 --- a/esapi/api.search_application.put_behavioral_analytics.go +++ b/esapi/api.search_application.put_behavioral_analytics.go @@ -33,7 +33,7 @@ func newSearchApplicationPutBehavioralAnalyticsFunc(t Transport) SearchApplicati } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SearchApplicationPutBehavioralAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SearchApplicationPutBehavioralAnalyticsRequest) Do(providedCtx context.C ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.put_behavioral_analytics") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SearchApplicationPutBehavioralAnalyticsRequest) Do(providedCtx context.C path.WriteString("analytics") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -116,7 +116,7 @@ func (r SearchApplicationPutBehavioralAnalyticsRequest) Do(providedCtx context.C req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SearchApplicationPutBehavioralAnalyticsRequest) Do(providedCtx context.C req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.put_behavioral_analytics") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.put_behavioral_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.render_query.go b/esapi/api.search_application.render_query.go index 2327bd1ad2..3b2a16c5b1 100644 --- a/esapi/api.search_application.render_query.go +++ b/esapi/api.search_application.render_query.go @@ -34,7 +34,7 @@ func newSearchApplicationRenderQueryFunc(t Transport) SearchApplicationRenderQue } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SearchApplicationRenderQueryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SearchApplicationRenderQueryRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.render_query") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SearchApplicationRenderQueryRequest) Do(providedCtx context.Context, tra path.WriteString("search_application") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r SearchApplicationRenderQueryRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r SearchApplicationRenderQueryRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.render_query") if reader := instrument.RecordRequestBody(ctx, "search_application.render_query", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.render_query") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_application.search.go b/esapi/api.search_application.search.go index d41ca3cf9d..a5ca90a6c1 100644 --- a/esapi/api.search_application.search.go +++ b/esapi/api.search_application.search.go @@ -35,7 +35,7 @@ func newSearchApplicationSearchFunc(t Transport) SearchApplicationSearch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type SearchApplicationSearchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r SearchApplicationSearchRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_application.search") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r SearchApplicationSearchRequest) Do(providedCtx context.Context, transpor path.WriteString("search_application") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } path.WriteString("/") @@ -128,7 +128,7 @@ func (r SearchApplicationSearchRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,18 +162,18 @@ func (r SearchApplicationSearchRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_application.search") if reader := instrument.RecordRequestBody(ctx, "search_application.search", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_application.search") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_mvt.go b/esapi/api.search_mvt.go index a9560defbb..df69189466 100644 --- a/esapi/api.search_mvt.go +++ b/esapi/api.search_mvt.go @@ -37,7 +37,7 @@ func newSearchMvtFunc(t Transport) SearchMvt { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -81,7 +81,7 @@ type SearchMvtRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -93,7 +93,7 @@ func (r SearchMvtRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_mvt") defer instrument.Close(ctx) } @@ -120,29 +120,29 @@ func (r SearchMvtRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") path.WriteString("_mvt") path.WriteString("/") path.WriteString(r.Field) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "field", r.Field) } path.WriteString("/") path.WriteString(strconv.Itoa(*r.Zoom)) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "zoom", strconv.Itoa(*r.Zoom)) } path.WriteString("/") path.WriteString(strconv.Itoa(*r.X)) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "x", strconv.Itoa(*r.X)) } path.WriteString("/") path.WriteString(strconv.Itoa(*r.Y)) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "y", strconv.Itoa(*r.Y)) } @@ -194,7 +194,7 @@ func (r SearchMvtRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -228,18 +228,18 @@ func (r SearchMvtRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_mvt") if reader := instrument.RecordRequestBody(ctx, "search_mvt", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_mvt") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_shards.go b/esapi/api.search_shards.go index fa51523e18..b36d8374ed 100644 --- a/esapi/api.search_shards.go +++ b/esapi/api.search_shards.go @@ -35,7 +35,7 @@ func newSearchShardsFunc(t Transport) SearchShards { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type SearchShardsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r SearchShardsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_shards") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r SearchShardsRequest) Do(providedCtx context.Context, transport Transport if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -152,7 +152,7 @@ func (r SearchShardsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -182,15 +182,15 @@ func (r SearchShardsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_shards") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_shards") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.search_template.go b/esapi/api.search_template.go index b198c5d906..efe9e3372b 100644 --- a/esapi/api.search_template.go +++ b/esapi/api.search_template.go @@ -36,7 +36,7 @@ func newSearchTemplateFunc(t Transport) SearchTemplate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -79,7 +79,7 @@ type SearchTemplateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -91,7 +91,7 @@ func (r SearchTemplateRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "search_template") defer instrument.Close(ctx) } @@ -106,7 +106,7 @@ func (r SearchTemplateRequest) Do(providedCtx context.Context, transport Transpo if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -187,7 +187,7 @@ func (r SearchTemplateRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -221,18 +221,18 @@ func (r SearchTemplateRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "search_template") if reader := instrument.RecordRequestBody(ctx, "search_template", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "search_template") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.shutdown.delete_node.go b/esapi/api.shutdown.delete_node.go index 2fd06caf5c..de8f699190 100644 --- a/esapi/api.shutdown.delete_node.go +++ b/esapi/api.shutdown.delete_node.go @@ -34,7 +34,7 @@ func newShutdownDeleteNodeFunc(t Transport) ShutdownDeleteNode { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type ShutdownDeleteNodeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r ShutdownDeleteNodeRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "shutdown.delete_node") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r ShutdownDeleteNodeRequest) Do(providedCtx context.Context, transport Tra path.WriteString("_nodes") path.WriteString("/") path.WriteString(r.NodeID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", r.NodeID) } path.WriteString("/") @@ -126,7 +126,7 @@ func (r ShutdownDeleteNodeRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r ShutdownDeleteNodeRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "shutdown.delete_node") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "shutdown.delete_node") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.shutdown.get_node.go b/esapi/api.shutdown.get_node.go index 34e6d84026..2ea30ba2c2 100644 --- a/esapi/api.shutdown.get_node.go +++ b/esapi/api.shutdown.get_node.go @@ -34,7 +34,7 @@ func newShutdownGetNodeFunc(t Transport) ShutdownGetNode { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ShutdownGetNodeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ShutdownGetNodeRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "shutdown.get_node") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r ShutdownGetNodeRequest) Do(providedCtx context.Context, transport Transp if r.NodeID != "" { path.WriteString("/") path.WriteString(r.NodeID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", r.NodeID) } } @@ -123,7 +123,7 @@ func (r ShutdownGetNodeRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,15 +153,15 @@ func (r ShutdownGetNodeRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "shutdown.get_node") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "shutdown.get_node") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.shutdown.put_node.go b/esapi/api.shutdown.put_node.go index 05681f40ba..cc36796484 100644 --- a/esapi/api.shutdown.put_node.go +++ b/esapi/api.shutdown.put_node.go @@ -35,7 +35,7 @@ func newShutdownPutNodeFunc(t Transport) ShutdownPutNode { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type ShutdownPutNodeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r ShutdownPutNodeRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "shutdown.put_node") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r ShutdownPutNodeRequest) Do(providedCtx context.Context, transport Transp path.WriteString("_nodes") path.WriteString("/") path.WriteString(r.NodeID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", r.NodeID) } path.WriteString("/") @@ -129,7 +129,7 @@ func (r ShutdownPutNodeRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -163,18 +163,18 @@ func (r ShutdownPutNodeRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "shutdown.put_node") if reader := instrument.RecordRequestBody(ctx, "shutdown.put_node", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "shutdown.put_node") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.simulate.ingest.go b/esapi/api.simulate.ingest.go index cb82a6b0cc..3fee9eb125 100644 --- a/esapi/api.simulate.ingest.go +++ b/esapi/api.simulate.ingest.go @@ -34,7 +34,7 @@ func newSimulateIngestFunc(t Transport) SimulateIngest { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type SimulateIngestRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r SimulateIngestRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "simulate.ingest") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r SimulateIngestRequest) Do(providedCtx context.Context, transport Transpo if r.Index != "" { path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } } @@ -127,7 +127,7 @@ func (r SimulateIngestRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -161,18 +161,18 @@ func (r SimulateIngestRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "simulate.ingest") if reader := instrument.RecordRequestBody(ctx, "simulate.ingest", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "simulate.ingest") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.cleanup_repository.go b/esapi/api.snapshot.cleanup_repository.go index ca123d5869..758174242d 100644 --- a/esapi/api.snapshot.cleanup_repository.go +++ b/esapi/api.snapshot.cleanup_repository.go @@ -34,7 +34,7 @@ func newSnapshotCleanupRepositoryFunc(t Transport) SnapshotCleanupRepository { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SnapshotCleanupRepositoryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SnapshotCleanupRepositoryRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.cleanup_repository") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SnapshotCleanupRepositoryRequest) Do(providedCtx context.Context, transp path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") @@ -126,7 +126,7 @@ func (r SnapshotCleanupRepositoryRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r SnapshotCleanupRepositoryRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.cleanup_repository") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.cleanup_repository") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.clone.go b/esapi/api.snapshot.clone.go index 6a600df6f2..87dc2ad273 100644 --- a/esapi/api.snapshot.clone.go +++ b/esapi/api.snapshot.clone.go @@ -35,7 +35,7 @@ func newSnapshotCloneFunc(t Transport) SnapshotClone { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type SnapshotCloneRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r SnapshotCloneRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.clone") defer instrument.Close(ctx) } @@ -96,19 +96,19 @@ func (r SnapshotCloneRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") path.WriteString(r.Snapshot) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot", r.Snapshot) } path.WriteString("/") path.WriteString("_clone") path.WriteString("/") path.WriteString(r.TargetSnapshot) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "target_snapshot", r.TargetSnapshot) } @@ -136,7 +136,7 @@ func (r SnapshotCloneRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -170,18 +170,18 @@ func (r SnapshotCloneRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.clone") if reader := instrument.RecordRequestBody(ctx, "snapshot.clone", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.clone") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.create.go b/esapi/api.snapshot.create.go index 4a3ce58d26..eefeb5b450 100644 --- a/esapi/api.snapshot.create.go +++ b/esapi/api.snapshot.create.go @@ -36,7 +36,7 @@ func newSnapshotCreateFunc(t Transport) SnapshotCreate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type SnapshotCreateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r SnapshotCreateRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.create") defer instrument.Close(ctx) } @@ -97,12 +97,12 @@ func (r SnapshotCreateRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") path.WriteString(r.Snapshot) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot", r.Snapshot) } @@ -134,7 +134,7 @@ func (r SnapshotCreateRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -168,18 +168,18 @@ func (r SnapshotCreateRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.create") if reader := instrument.RecordRequestBody(ctx, "snapshot.create", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.create") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.create_repository.go b/esapi/api.snapshot.create_repository.go index da8dee2f36..309ad93a14 100644 --- a/esapi/api.snapshot.create_repository.go +++ b/esapi/api.snapshot.create_repository.go @@ -36,7 +36,7 @@ func newSnapshotCreateRepositoryFunc(t Transport) SnapshotCreateRepository { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type SnapshotCreateRepositoryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r SnapshotCreateRepositoryRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.create_repository") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r SnapshotCreateRepositoryRequest) Do(providedCtx context.Context, transpo path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } @@ -133,7 +133,7 @@ func (r SnapshotCreateRepositoryRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,18 +167,18 @@ func (r SnapshotCreateRepositoryRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.create_repository") if reader := instrument.RecordRequestBody(ctx, "snapshot.create_repository", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.create_repository") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.delete.go b/esapi/api.snapshot.delete.go index a044645926..490349bdff 100644 --- a/esapi/api.snapshot.delete.go +++ b/esapi/api.snapshot.delete.go @@ -36,7 +36,7 @@ func newSnapshotDeleteFunc(t Transport) SnapshotDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type SnapshotDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r SnapshotDeleteRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.delete") defer instrument.Close(ctx) } @@ -99,12 +99,12 @@ func (r SnapshotDeleteRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") path.WriteString(strings.Join(r.Snapshot, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot", strings.Join(r.Snapshot, ",")) } @@ -136,7 +136,7 @@ func (r SnapshotDeleteRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r SnapshotDeleteRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.delete_repository.go b/esapi/api.snapshot.delete_repository.go index ee3319fe17..3e2953a921 100644 --- a/esapi/api.snapshot.delete_repository.go +++ b/esapi/api.snapshot.delete_repository.go @@ -35,7 +35,7 @@ func newSnapshotDeleteRepositoryFunc(t Transport) SnapshotDeleteRepository { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SnapshotDeleteRepositoryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SnapshotDeleteRepositoryRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.delete_repository") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r SnapshotDeleteRepositoryRequest) Do(providedCtx context.Context, transpo path.WriteString("_snapshot") path.WriteString("/") path.WriteString(strings.Join(r.Repository, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", strings.Join(r.Repository, ",")) } @@ -129,7 +129,7 @@ func (r SnapshotDeleteRepositoryRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,15 +159,15 @@ func (r SnapshotDeleteRepositoryRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.delete_repository") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.delete_repository") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.get.go b/esapi/api.snapshot.get.go index d30c3444e2..5c6eb9d26e 100644 --- a/esapi/api.snapshot.get.go +++ b/esapi/api.snapshot.get.go @@ -36,7 +36,7 @@ func newSnapshotGetFunc(t Transport) SnapshotGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -78,7 +78,7 @@ type SnapshotGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -90,7 +90,7 @@ func (r SnapshotGetRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.get") defer instrument.Close(ctx) } @@ -110,12 +110,12 @@ func (r SnapshotGetRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") path.WriteString(strings.Join(r.Snapshot, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot", strings.Join(r.Snapshot, ",")) } @@ -191,7 +191,7 @@ func (r SnapshotGetRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -221,15 +221,15 @@ func (r SnapshotGetRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.get_repository.go b/esapi/api.snapshot.get_repository.go index 5e539b6d96..6e779a77cc 100644 --- a/esapi/api.snapshot.get_repository.go +++ b/esapi/api.snapshot.get_repository.go @@ -35,7 +35,7 @@ func newSnapshotGetRepositoryFunc(t Transport) SnapshotGetRepository { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SnapshotGetRepositoryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SnapshotGetRepositoryRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.get_repository") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r SnapshotGetRepositoryRequest) Do(providedCtx context.Context, transport if len(r.Repository) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Repository, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", strings.Join(r.Repository, ",")) } } @@ -127,7 +127,7 @@ func (r SnapshotGetRepositoryRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r SnapshotGetRepositoryRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.get_repository") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.get_repository") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.repository_analyze.go b/esapi/api.snapshot.repository_analyze.go index 8896cfbac6..07e1a632e5 100644 --- a/esapi/api.snapshot.repository_analyze.go +++ b/esapi/api.snapshot.repository_analyze.go @@ -35,7 +35,7 @@ func newSnapshotRepositoryAnalyzeFunc(t Transport) SnapshotRepositoryAnalyze { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type SnapshotRepositoryAnalyzeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r SnapshotRepositoryAnalyzeRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.repository_analyze") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r SnapshotRepositoryAnalyzeRequest) Do(providedCtx context.Context, transp path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") @@ -172,7 +172,7 @@ func (r SnapshotRepositoryAnalyzeRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -202,15 +202,15 @@ func (r SnapshotRepositoryAnalyzeRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.repository_analyze") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.repository_analyze") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.repository_verify_integrity.go b/esapi/api.snapshot.repository_verify_integrity.go index b7d22df781..0d0af082c4 100644 --- a/esapi/api.snapshot.repository_verify_integrity.go +++ b/esapi/api.snapshot.repository_verify_integrity.go @@ -34,7 +34,7 @@ func newSnapshotRepositoryVerifyIntegrityFunc(t Transport) SnapshotRepositoryVer } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type SnapshotRepositoryVerifyIntegrityRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r SnapshotRepositoryVerifyIntegrityRequest) Do(providedCtx context.Context ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.repository_verify_integrity") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r SnapshotRepositoryVerifyIntegrityRequest) Do(providedCtx context.Context path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") @@ -158,7 +158,7 @@ func (r SnapshotRepositoryVerifyIntegrityRequest) Do(providedCtx context.Context req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -188,15 +188,15 @@ func (r SnapshotRepositoryVerifyIntegrityRequest) Do(providedCtx context.Context req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.repository_verify_integrity") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.repository_verify_integrity") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.restore.go b/esapi/api.snapshot.restore.go index 156317c947..d5e36090a7 100644 --- a/esapi/api.snapshot.restore.go +++ b/esapi/api.snapshot.restore.go @@ -36,7 +36,7 @@ func newSnapshotRestoreFunc(t Transport) SnapshotRestore { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type SnapshotRestoreRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r SnapshotRestoreRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.restore") defer instrument.Close(ctx) } @@ -97,12 +97,12 @@ func (r SnapshotRestoreRequest) Do(providedCtx context.Context, transport Transp path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") path.WriteString(r.Snapshot) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot", r.Snapshot) } path.WriteString("/") @@ -136,7 +136,7 @@ func (r SnapshotRestoreRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -170,18 +170,18 @@ func (r SnapshotRestoreRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.restore") if reader := instrument.RecordRequestBody(ctx, "snapshot.restore", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.restore") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.status.go b/esapi/api.snapshot.status.go index 6ce9901803..7b6113a8a5 100644 --- a/esapi/api.snapshot.status.go +++ b/esapi/api.snapshot.status.go @@ -35,7 +35,7 @@ func newSnapshotStatusFunc(t Transport) SnapshotStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type SnapshotStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r SnapshotStatusRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.status") defer instrument.Close(ctx) } @@ -95,14 +95,14 @@ func (r SnapshotStatusRequest) Do(providedCtx context.Context, transport Transpo if r.Repository != "" { path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } } if len(r.Snapshot) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Snapshot, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot", strings.Join(r.Snapshot, ",")) } } @@ -137,7 +137,7 @@ func (r SnapshotStatusRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r SnapshotStatusRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.snapshot.verify_repository.go b/esapi/api.snapshot.verify_repository.go index 113555ee6c..8275595aa8 100644 --- a/esapi/api.snapshot.verify_repository.go +++ b/esapi/api.snapshot.verify_repository.go @@ -34,7 +34,7 @@ func newSnapshotVerifyRepositoryFunc(t Transport) SnapshotVerifyRepository { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SnapshotVerifyRepositoryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SnapshotVerifyRepositoryRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "snapshot.verify_repository") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SnapshotVerifyRepositoryRequest) Do(providedCtx context.Context, transpo path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") @@ -126,7 +126,7 @@ func (r SnapshotVerifyRepositoryRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r SnapshotVerifyRepositoryRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "snapshot.verify_repository") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "snapshot.verify_repository") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.synonyms.delete_synonym.go b/esapi/api.synonyms.delete_synonym.go index 835b46d214..4ead66b198 100644 --- a/esapi/api.synonyms.delete_synonym.go +++ b/esapi/api.synonyms.delete_synonym.go @@ -33,7 +33,7 @@ func newSynonymsDeleteSynonymFunc(t Transport) SynonymsDeleteSynonym { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type SynonymsDeleteSynonymRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r SynonymsDeleteSynonymRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "synonyms.delete_synonym") defer instrument.Close(ctx) } @@ -88,7 +88,7 @@ func (r SynonymsDeleteSynonymRequest) Do(providedCtx context.Context, transport path.WriteString("_synonyms") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -112,7 +112,7 @@ func (r SynonymsDeleteSynonymRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -142,15 +142,15 @@ func (r SynonymsDeleteSynonymRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "synonyms.delete_synonym") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "synonyms.delete_synonym") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.synonyms.delete_synonym_rule.go b/esapi/api.synonyms.delete_synonym_rule.go index 8c78e409c1..402b28ed73 100644 --- a/esapi/api.synonyms.delete_synonym_rule.go +++ b/esapi/api.synonyms.delete_synonym_rule.go @@ -33,7 +33,7 @@ func newSynonymsDeleteSynonymRuleFunc(t Transport) SynonymsDeleteSynonymRule { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SynonymsDeleteSynonymRuleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SynonymsDeleteSynonymRuleRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "synonyms.delete_synonym_rule") defer instrument.Close(ctx) } @@ -89,12 +89,12 @@ func (r SynonymsDeleteSynonymRuleRequest) Do(providedCtx context.Context, transp path.WriteString("_synonyms") path.WriteString("/") path.WriteString(r.SetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "set_id", r.SetID) } path.WriteString("/") path.WriteString(r.RuleID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "rule_id", r.RuleID) } @@ -118,7 +118,7 @@ func (r SynonymsDeleteSynonymRuleRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r SynonymsDeleteSynonymRuleRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "synonyms.delete_synonym_rule") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "synonyms.delete_synonym_rule") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.synonyms.get_synonym.go b/esapi/api.synonyms.get_synonym.go index 84cd299ff5..2779bf3a84 100644 --- a/esapi/api.synonyms.get_synonym.go +++ b/esapi/api.synonyms.get_synonym.go @@ -34,7 +34,7 @@ func newSynonymsGetSynonymFunc(t Transport) SynonymsGetSynonym { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SynonymsGetSynonymRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SynonymsGetSynonymRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "synonyms.get_synonym") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SynonymsGetSynonymRequest) Do(providedCtx context.Context, transport Tra path.WriteString("_synonyms") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -124,7 +124,7 @@ func (r SynonymsGetSynonymRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r SynonymsGetSynonymRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "synonyms.get_synonym") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "synonyms.get_synonym") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.synonyms.get_synonym_rule.go b/esapi/api.synonyms.get_synonym_rule.go index 8766521d10..977d7890a9 100644 --- a/esapi/api.synonyms.get_synonym_rule.go +++ b/esapi/api.synonyms.get_synonym_rule.go @@ -33,7 +33,7 @@ func newSynonymsGetSynonymRuleFunc(t Transport) SynonymsGetSynonymRule { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SynonymsGetSynonymRuleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SynonymsGetSynonymRuleRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "synonyms.get_synonym_rule") defer instrument.Close(ctx) } @@ -89,12 +89,12 @@ func (r SynonymsGetSynonymRuleRequest) Do(providedCtx context.Context, transport path.WriteString("_synonyms") path.WriteString("/") path.WriteString(r.SetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "set_id", r.SetID) } path.WriteString("/") path.WriteString(r.RuleID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "rule_id", r.RuleID) } @@ -118,7 +118,7 @@ func (r SynonymsGetSynonymRuleRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r SynonymsGetSynonymRuleRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "synonyms.get_synonym_rule") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "synonyms.get_synonym_rule") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.synonyms.get_synonyms_sets.go b/esapi/api.synonyms.get_synonyms_sets.go index 3bac06a9b0..ba1efe2b97 100644 --- a/esapi/api.synonyms.get_synonyms_sets.go +++ b/esapi/api.synonyms.get_synonyms_sets.go @@ -34,7 +34,7 @@ func newSynonymsGetSynonymsSetsFunc(t Transport) SynonymsGetSynonymsSets { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SynonymsGetSynonymsSetsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SynonymsGetSynonymsSetsRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "synonyms.get_synonyms_sets") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r SynonymsGetSynonymsSetsRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SynonymsGetSynonymsSetsRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "synonyms.get_synonyms_sets") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "synonyms.get_synonyms_sets") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.synonyms.put_synonym.go b/esapi/api.synonyms.put_synonym.go index f3ab137f95..49a77f10e3 100644 --- a/esapi/api.synonyms.put_synonym.go +++ b/esapi/api.synonyms.put_synonym.go @@ -34,7 +34,7 @@ func newSynonymsPutSynonymFunc(t Transport) SynonymsPutSynonym { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SynonymsPutSynonymRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SynonymsPutSynonymRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "synonyms.put_synonym") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r SynonymsPutSynonymRequest) Do(providedCtx context.Context, transport Tra path.WriteString("_synonyms") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -115,7 +115,7 @@ func (r SynonymsPutSynonymRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -149,18 +149,18 @@ func (r SynonymsPutSynonymRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "synonyms.put_synonym") if reader := instrument.RecordRequestBody(ctx, "synonyms.put_synonym", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "synonyms.put_synonym") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.synonyms.put_synonym_rule.go b/esapi/api.synonyms.put_synonym_rule.go index 7f2438f06d..58b3b58e17 100644 --- a/esapi/api.synonyms.put_synonym_rule.go +++ b/esapi/api.synonyms.put_synonym_rule.go @@ -34,7 +34,7 @@ func newSynonymsPutSynonymRuleFunc(t Transport) SynonymsPutSynonymRule { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SynonymsPutSynonymRuleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SynonymsPutSynonymRuleRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "synonyms.put_synonym_rule") defer instrument.Close(ctx) } @@ -92,12 +92,12 @@ func (r SynonymsPutSynonymRuleRequest) Do(providedCtx context.Context, transport path.WriteString("_synonyms") path.WriteString("/") path.WriteString(r.SetID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "set_id", r.SetID) } path.WriteString("/") path.WriteString(r.RuleID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "rule_id", r.RuleID) } @@ -121,7 +121,7 @@ func (r SynonymsPutSynonymRuleRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r SynonymsPutSynonymRuleRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "synonyms.put_synonym_rule") if reader := instrument.RecordRequestBody(ctx, "synonyms.put_synonym_rule", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "synonyms.put_synonym_rule") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.tasks.cancel.go b/esapi/api.tasks.cancel.go index 486554099a..0c2ed96619 100644 --- a/esapi/api.tasks.cancel.go +++ b/esapi/api.tasks.cancel.go @@ -34,7 +34,7 @@ func newTasksCancelFunc(t Transport) TasksCancel { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type TasksCancelRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r TasksCancelRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "tasks.cancel") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r TasksCancelRequest) Do(providedCtx context.Context, transport Transport) if r.TaskID != "" { path.WriteString("/") path.WriteString(r.TaskID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_id", r.TaskID) } } @@ -140,7 +140,7 @@ func (r TasksCancelRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -170,15 +170,15 @@ func (r TasksCancelRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "tasks.cancel") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "tasks.cancel") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.tasks.get.go b/esapi/api.tasks.get.go index 9fc3d7e613..271f47f089 100644 --- a/esapi/api.tasks.get.go +++ b/esapi/api.tasks.get.go @@ -35,7 +35,7 @@ func newTasksGetFunc(t Transport) TasksGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type TasksGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r TasksGetRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "tasks.get") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r TasksGetRequest) Do(providedCtx context.Context, transport Transport) (* path.WriteString("_tasks") path.WriteString("/") path.WriteString(r.TaskID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_id", r.TaskID) } @@ -127,7 +127,7 @@ func (r TasksGetRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r TasksGetRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "tasks.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "tasks.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.tasks.list.go b/esapi/api.tasks.list.go index 4abf935c3e..5b9e39de75 100644 --- a/esapi/api.tasks.list.go +++ b/esapi/api.tasks.list.go @@ -35,7 +35,7 @@ func newTasksListFunc(t Transport) TasksList { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type TasksListRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r TasksListRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "tasks.list") defer instrument.Close(ctx) } @@ -144,7 +144,7 @@ func (r TasksListRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -174,15 +174,15 @@ func (r TasksListRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "tasks.list") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "tasks.list") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.terms_enum.go b/esapi/api.terms_enum.go index 634f006207..a8308f2c1b 100644 --- a/esapi/api.terms_enum.go +++ b/esapi/api.terms_enum.go @@ -35,7 +35,7 @@ func newTermsEnumFunc(t Transport) TermsEnum { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type TermsEnumRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r TermsEnumRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "terms_enum") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r TermsEnumRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -120,7 +120,7 @@ func (r TermsEnumRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,18 +154,18 @@ func (r TermsEnumRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "terms_enum") if reader := instrument.RecordRequestBody(ctx, "terms_enum", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "terms_enum") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.termvectors.go b/esapi/api.termvectors.go index 521efbef4d..26817bcc40 100644 --- a/esapi/api.termvectors.go +++ b/esapi/api.termvectors.go @@ -35,7 +35,7 @@ func newTermvectorsFunc(t Transport) Termvectors { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -77,7 +77,7 @@ type TermvectorsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -89,7 +89,7 @@ func (r TermvectorsRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "termvectors") defer instrument.Close(ctx) } @@ -103,7 +103,7 @@ func (r TermvectorsRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -111,7 +111,7 @@ func (r TermvectorsRequest) Do(providedCtx context.Context, transport Transport) if r.DocumentID != "" { path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } } @@ -180,7 +180,7 @@ func (r TermvectorsRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -214,18 +214,18 @@ func (r TermvectorsRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "termvectors") if reader := instrument.RecordRequestBody(ctx, "termvectors", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "termvectors") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.update.go b/esapi/api.update.go index 4f4b3e4444..f6a34b6c57 100644 --- a/esapi/api.update.go +++ b/esapi/api.update.go @@ -36,7 +36,7 @@ func newUpdateFunc(t Transport) Update { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -80,7 +80,7 @@ type UpdateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -92,7 +92,7 @@ func (r UpdateRequest) Do(providedCtx context.Context, transport Transport) (*Re ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "update") defer instrument.Close(ctx) } @@ -106,14 +106,14 @@ func (r UpdateRequest) Do(providedCtx context.Context, transport Transport) (*Re path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") path.WriteString("_update") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -189,7 +189,7 @@ func (r UpdateRequest) Do(providedCtx context.Context, transport Transport) (*Re req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -223,18 +223,18 @@ func (r UpdateRequest) Do(providedCtx context.Context, transport Transport) (*Re req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "update") if reader := instrument.RecordRequestBody(ctx, "update", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "update") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.update_by_query.go b/esapi/api.update_by_query.go index 67ec0199e3..2a58715167 100644 --- a/esapi/api.update_by_query.go +++ b/esapi/api.update_by_query.go @@ -38,7 +38,7 @@ func newUpdateByQueryFunc(t Transport) UpdateByQuery { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -100,7 +100,7 @@ type UpdateByQueryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -112,7 +112,7 @@ func (r UpdateByQueryRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "update_by_query") defer instrument.Close(ctx) } @@ -130,7 +130,7 @@ func (r UpdateByQueryRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -280,7 +280,7 @@ func (r UpdateByQueryRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -314,18 +314,18 @@ func (r UpdateByQueryRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "update_by_query") if reader := instrument.RecordRequestBody(ctx, "update_by_query", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "update_by_query") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.update_by_query_rethrottle.go b/esapi/api.update_by_query_rethrottle.go index b115123abb..f1f630d7fc 100644 --- a/esapi/api.update_by_query_rethrottle.go +++ b/esapi/api.update_by_query_rethrottle.go @@ -34,7 +34,7 @@ func newUpdateByQueryRethrottleFunc(t Transport) UpdateByQueryRethrottle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type UpdateByQueryRethrottleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r UpdateByQueryRethrottleRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "update_by_query_rethrottle") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r UpdateByQueryRethrottleRequest) Do(providedCtx context.Context, transpor path.WriteString("_update_by_query") path.WriteString("/") path.WriteString(r.TaskID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "task_id", r.TaskID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r UpdateByQueryRethrottleRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r UpdateByQueryRethrottleRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "update_by_query_rethrottle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "update_by_query_rethrottle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.async_search.delete.go b/esapi/api.xpack.async_search.delete.go index 0695d800fb..fe5bc0171a 100644 --- a/esapi/api.xpack.async_search.delete.go +++ b/esapi/api.xpack.async_search.delete.go @@ -33,7 +33,7 @@ func newAsyncSearchDeleteFunc(t Transport) AsyncSearchDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type AsyncSearchDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r AsyncSearchDeleteRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "async_search.delete") defer instrument.Close(ctx) } @@ -88,7 +88,7 @@ func (r AsyncSearchDeleteRequest) Do(providedCtx context.Context, transport Tran path.WriteString("_async_search") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -112,7 +112,7 @@ func (r AsyncSearchDeleteRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -142,15 +142,15 @@ func (r AsyncSearchDeleteRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "async_search.delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "async_search.delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.async_search.get.go b/esapi/api.xpack.async_search.get.go index a910aabfb0..f248f81f2b 100644 --- a/esapi/api.xpack.async_search.get.go +++ b/esapi/api.xpack.async_search.get.go @@ -35,7 +35,7 @@ func newAsyncSearchGetFunc(t Transport) AsyncSearchGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type AsyncSearchGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r AsyncSearchGetRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "async_search.get") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r AsyncSearchGetRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("_async_search") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -130,7 +130,7 @@ func (r AsyncSearchGetRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,15 +160,15 @@ func (r AsyncSearchGetRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "async_search.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "async_search.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.async_search.status.go b/esapi/api.xpack.async_search.status.go index ec22515062..a493006b8d 100644 --- a/esapi/api.xpack.async_search.status.go +++ b/esapi/api.xpack.async_search.status.go @@ -34,7 +34,7 @@ func newAsyncSearchStatusFunc(t Transport) AsyncSearchStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type AsyncSearchStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r AsyncSearchStatusRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "async_search.status") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r AsyncSearchStatusRequest) Do(providedCtx context.Context, transport Tran path.WriteString("status") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -121,7 +121,7 @@ func (r AsyncSearchStatusRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r AsyncSearchStatusRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "async_search.status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "async_search.status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.async_search.submit.go b/esapi/api.xpack.async_search.submit.go index 2f1956ff7f..c32ff1d219 100644 --- a/esapi/api.xpack.async_search.submit.go +++ b/esapi/api.xpack.async_search.submit.go @@ -37,7 +37,7 @@ func newAsyncSearchSubmitFunc(t Transport) AsyncSearchSubmit { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -110,7 +110,7 @@ type AsyncSearchSubmitRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -122,7 +122,7 @@ func (r AsyncSearchSubmitRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "async_search.submit") defer instrument.Close(ctx) } @@ -137,7 +137,7 @@ func (r AsyncSearchSubmitRequest) Do(providedCtx context.Context, transport Tran if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -336,7 +336,7 @@ func (r AsyncSearchSubmitRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -370,18 +370,18 @@ func (r AsyncSearchSubmitRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "async_search.submit") if reader := instrument.RecordRequestBody(ctx, "async_search.submit", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "async_search.submit") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.autoscaling.delete_autoscaling_policy.go b/esapi/api.xpack.autoscaling.delete_autoscaling_policy.go index 7a06649dea..4f50517479 100644 --- a/esapi/api.xpack.autoscaling.delete_autoscaling_policy.go +++ b/esapi/api.xpack.autoscaling.delete_autoscaling_policy.go @@ -34,7 +34,7 @@ func newAutoscalingDeleteAutoscalingPolicyFunc(t Transport) AutoscalingDeleteAut } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type AutoscalingDeleteAutoscalingPolicyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r AutoscalingDeleteAutoscalingPolicyRequest) Do(providedCtx context.Contex ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "autoscaling.delete_autoscaling_policy") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r AutoscalingDeleteAutoscalingPolicyRequest) Do(providedCtx context.Contex path.WriteString("policy") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -126,7 +126,7 @@ func (r AutoscalingDeleteAutoscalingPolicyRequest) Do(providedCtx context.Contex req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r AutoscalingDeleteAutoscalingPolicyRequest) Do(providedCtx context.Contex req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "autoscaling.delete_autoscaling_policy") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "autoscaling.delete_autoscaling_policy") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.autoscaling.get_autoscaling_capacity.go b/esapi/api.xpack.autoscaling.get_autoscaling_capacity.go index 7832d111ad..dc383da6c4 100644 --- a/esapi/api.xpack.autoscaling.get_autoscaling_capacity.go +++ b/esapi/api.xpack.autoscaling.get_autoscaling_capacity.go @@ -34,7 +34,7 @@ func newAutoscalingGetAutoscalingCapacityFunc(t Transport) AutoscalingGetAutosca } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type AutoscalingGetAutoscalingCapacityRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r AutoscalingGetAutoscalingCapacityRequest) Do(providedCtx context.Context ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "autoscaling.get_autoscaling_capacity") defer instrument.Close(ctx) } @@ -111,7 +111,7 @@ func (r AutoscalingGetAutoscalingCapacityRequest) Do(providedCtx context.Context req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,15 +141,15 @@ func (r AutoscalingGetAutoscalingCapacityRequest) Do(providedCtx context.Context req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "autoscaling.get_autoscaling_capacity") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "autoscaling.get_autoscaling_capacity") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.autoscaling.get_autoscaling_policy.go b/esapi/api.xpack.autoscaling.get_autoscaling_policy.go index 2d455a7a81..dfa61140fe 100644 --- a/esapi/api.xpack.autoscaling.get_autoscaling_policy.go +++ b/esapi/api.xpack.autoscaling.get_autoscaling_policy.go @@ -34,7 +34,7 @@ func newAutoscalingGetAutoscalingPolicyFunc(t Transport) AutoscalingGetAutoscali } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type AutoscalingGetAutoscalingPolicyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r AutoscalingGetAutoscalingPolicyRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "autoscaling.get_autoscaling_policy") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r AutoscalingGetAutoscalingPolicyRequest) Do(providedCtx context.Context, path.WriteString("policy") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -121,7 +121,7 @@ func (r AutoscalingGetAutoscalingPolicyRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r AutoscalingGetAutoscalingPolicyRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "autoscaling.get_autoscaling_policy") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "autoscaling.get_autoscaling_policy") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.autoscaling.put_autoscaling_policy.go b/esapi/api.xpack.autoscaling.put_autoscaling_policy.go index 2f1c4362c6..fedbb0cbfa 100644 --- a/esapi/api.xpack.autoscaling.put_autoscaling_policy.go +++ b/esapi/api.xpack.autoscaling.put_autoscaling_policy.go @@ -35,7 +35,7 @@ func newAutoscalingPutAutoscalingPolicyFunc(t Transport) AutoscalingPutAutoscali } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type AutoscalingPutAutoscalingPolicyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r AutoscalingPutAutoscalingPolicyRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "autoscaling.put_autoscaling_policy") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r AutoscalingPutAutoscalingPolicyRequest) Do(providedCtx context.Context, path.WriteString("policy") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -129,7 +129,7 @@ func (r AutoscalingPutAutoscalingPolicyRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -163,18 +163,18 @@ func (r AutoscalingPutAutoscalingPolicyRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "autoscaling.put_autoscaling_policy") if reader := instrument.RecordRequestBody(ctx, "autoscaling.put_autoscaling_policy", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "autoscaling.put_autoscaling_policy") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.cat.ml_data_frame_analytics.go b/esapi/api.xpack.cat.ml_data_frame_analytics.go index 5c63c43e6e..9be95d33ef 100644 --- a/esapi/api.xpack.cat.ml_data_frame_analytics.go +++ b/esapi/api.xpack.cat.ml_data_frame_analytics.go @@ -34,7 +34,7 @@ func newCatMLDataFrameAnalyticsFunc(t Transport) CatMLDataFrameAnalytics { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type CatMLDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r CatMLDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.ml_data_frame_analytics") defer instrument.Close(ctx) } @@ -105,7 +105,7 @@ func (r CatMLDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor if r.DocumentID != "" { path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } } @@ -162,7 +162,7 @@ func (r CatMLDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -192,15 +192,15 @@ func (r CatMLDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.ml_data_frame_analytics") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.ml_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.cat.ml_datafeeds.go b/esapi/api.xpack.cat.ml_datafeeds.go index d48bcd33d6..3e7cd2c756 100644 --- a/esapi/api.xpack.cat.ml_datafeeds.go +++ b/esapi/api.xpack.cat.ml_datafeeds.go @@ -34,7 +34,7 @@ func newCatMLDatafeedsFunc(t Transport) CatMLDatafeeds { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type CatMLDatafeedsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r CatMLDatafeedsRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.ml_datafeeds") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r CatMLDatafeedsRequest) Do(providedCtx context.Context, transport Transpo if r.DatafeedID != "" { path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } } @@ -155,7 +155,7 @@ func (r CatMLDatafeedsRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -185,15 +185,15 @@ func (r CatMLDatafeedsRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.ml_datafeeds") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.ml_datafeeds") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.cat.ml_jobs.go b/esapi/api.xpack.cat.ml_jobs.go index 5b04dce030..10d519bbf6 100644 --- a/esapi/api.xpack.cat.ml_jobs.go +++ b/esapi/api.xpack.cat.ml_jobs.go @@ -34,7 +34,7 @@ func newCatMLJobsFunc(t Transport) CatMLJobs { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type CatMLJobsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r CatMLJobsRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.ml_jobs") defer instrument.Close(ctx) } @@ -103,7 +103,7 @@ func (r CatMLJobsRequest) Do(providedCtx context.Context, transport Transport) ( if r.JobID != "" { path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } } @@ -160,7 +160,7 @@ func (r CatMLJobsRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -190,15 +190,15 @@ func (r CatMLJobsRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.ml_jobs") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.ml_jobs") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.cat.ml_trained_models.go b/esapi/api.xpack.cat.ml_trained_models.go index eb87edd67f..550598818b 100644 --- a/esapi/api.xpack.cat.ml_trained_models.go +++ b/esapi/api.xpack.cat.ml_trained_models.go @@ -34,7 +34,7 @@ func newCatMLTrainedModelsFunc(t Transport) CatMLTrainedModels { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type CatMLTrainedModelsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r CatMLTrainedModelsRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.ml_trained_models") defer instrument.Close(ctx) } @@ -105,7 +105,7 @@ func (r CatMLTrainedModelsRequest) Do(providedCtx context.Context, transport Tra if r.ModelID != "" { path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } } @@ -170,7 +170,7 @@ func (r CatMLTrainedModelsRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -200,15 +200,15 @@ func (r CatMLTrainedModelsRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.ml_trained_models") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.ml_trained_models") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.cat.transforms.go b/esapi/api.xpack.cat.transforms.go index 29846d2664..cca7dc0b25 100644 --- a/esapi/api.xpack.cat.transforms.go +++ b/esapi/api.xpack.cat.transforms.go @@ -34,7 +34,7 @@ func newCatTransformsFunc(t Transport) CatTransforms { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type CatTransformsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r CatTransformsRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "cat.transforms") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r CatTransformsRequest) Do(providedCtx context.Context, transport Transpor if r.TransformID != "" { path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } } @@ -163,7 +163,7 @@ func (r CatTransformsRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -193,15 +193,15 @@ func (r CatTransformsRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "cat.transforms") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "cat.transforms") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.delete_auto_follow_pattern.go b/esapi/api.xpack.ccr.delete_auto_follow_pattern.go index c7a97db653..5b53ab8dc2 100644 --- a/esapi/api.xpack.ccr.delete_auto_follow_pattern.go +++ b/esapi/api.xpack.ccr.delete_auto_follow_pattern.go @@ -34,7 +34,7 @@ func newCCRDeleteAutoFollowPatternFunc(t Transport) CCRDeleteAutoFollowPattern { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type CCRDeleteAutoFollowPatternRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r CCRDeleteAutoFollowPatternRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.delete_auto_follow_pattern") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r CCRDeleteAutoFollowPatternRequest) Do(providedCtx context.Context, trans path.WriteString("auto_follow") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -121,7 +121,7 @@ func (r CCRDeleteAutoFollowPatternRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r CCRDeleteAutoFollowPatternRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.delete_auto_follow_pattern") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.delete_auto_follow_pattern") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.follow.go b/esapi/api.xpack.ccr.follow.go index f62b03dc33..d6c671c5ba 100644 --- a/esapi/api.xpack.ccr.follow.go +++ b/esapi/api.xpack.ccr.follow.go @@ -35,7 +35,7 @@ func newCCRFollowFunc(t Transport) CCRFollow { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type CCRFollowRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r CCRFollowRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.follow") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r CCRFollowRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -129,7 +129,7 @@ func (r CCRFollowRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -163,18 +163,18 @@ func (r CCRFollowRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.follow") if reader := instrument.RecordRequestBody(ctx, "ccr.follow", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.follow") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.follow_info.go b/esapi/api.xpack.ccr.follow_info.go index 314e5d3f26..7580b3b96d 100644 --- a/esapi/api.xpack.ccr.follow_info.go +++ b/esapi/api.xpack.ccr.follow_info.go @@ -35,7 +35,7 @@ func newCCRFollowInfoFunc(t Transport) CCRFollowInfo { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type CCRFollowInfoRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r CCRFollowInfoRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.follow_info") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r CCRFollowInfoRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -126,7 +126,7 @@ func (r CCRFollowInfoRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r CCRFollowInfoRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.follow_info") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.follow_info") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.follow_stats.go b/esapi/api.xpack.ccr.follow_stats.go index f6c181f5b8..27ad4554f5 100644 --- a/esapi/api.xpack.ccr.follow_stats.go +++ b/esapi/api.xpack.ccr.follow_stats.go @@ -35,7 +35,7 @@ func newCCRFollowStatsFunc(t Transport) CCRFollowStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type CCRFollowStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r CCRFollowStatsRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.follow_stats") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r CCRFollowStatsRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -126,7 +126,7 @@ func (r CCRFollowStatsRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r CCRFollowStatsRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.follow_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.follow_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.forget_follower.go b/esapi/api.xpack.ccr.forget_follower.go index 08174d48c4..0b3359831f 100644 --- a/esapi/api.xpack.ccr.forget_follower.go +++ b/esapi/api.xpack.ccr.forget_follower.go @@ -35,7 +35,7 @@ func newCCRForgetFollowerFunc(t Transport) CCRForgetFollower { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type CCRForgetFollowerRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r CCRForgetFollowerRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.forget_follower") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r CCRForgetFollowerRequest) Do(providedCtx context.Context, transport Tran path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -124,7 +124,7 @@ func (r CCRForgetFollowerRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,18 +158,18 @@ func (r CCRForgetFollowerRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.forget_follower") if reader := instrument.RecordRequestBody(ctx, "ccr.forget_follower", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.forget_follower") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.get_auto_follow_pattern.go b/esapi/api.xpack.ccr.get_auto_follow_pattern.go index 7781a09cde..2fc0a54242 100644 --- a/esapi/api.xpack.ccr.get_auto_follow_pattern.go +++ b/esapi/api.xpack.ccr.get_auto_follow_pattern.go @@ -34,7 +34,7 @@ func newCCRGetAutoFollowPatternFunc(t Transport) CCRGetAutoFollowPattern { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type CCRGetAutoFollowPatternRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r CCRGetAutoFollowPatternRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.get_auto_follow_pattern") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r CCRGetAutoFollowPatternRequest) Do(providedCtx context.Context, transpor if r.Name != "" { path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } } @@ -123,7 +123,7 @@ func (r CCRGetAutoFollowPatternRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,15 +153,15 @@ func (r CCRGetAutoFollowPatternRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.get_auto_follow_pattern") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.get_auto_follow_pattern") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.pause_auto_follow_pattern.go b/esapi/api.xpack.ccr.pause_auto_follow_pattern.go index b958106455..8fcdbdcca9 100644 --- a/esapi/api.xpack.ccr.pause_auto_follow_pattern.go +++ b/esapi/api.xpack.ccr.pause_auto_follow_pattern.go @@ -34,7 +34,7 @@ func newCCRPauseAutoFollowPatternFunc(t Transport) CCRPauseAutoFollowPattern { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type CCRPauseAutoFollowPatternRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r CCRPauseAutoFollowPatternRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.pause_auto_follow_pattern") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r CCRPauseAutoFollowPatternRequest) Do(providedCtx context.Context, transp path.WriteString("auto_follow") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } path.WriteString("/") @@ -123,7 +123,7 @@ func (r CCRPauseAutoFollowPatternRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,15 +153,15 @@ func (r CCRPauseAutoFollowPatternRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.pause_auto_follow_pattern") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.pause_auto_follow_pattern") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.pause_follow.go b/esapi/api.xpack.ccr.pause_follow.go index c1f142244e..b9a9747060 100644 --- a/esapi/api.xpack.ccr.pause_follow.go +++ b/esapi/api.xpack.ccr.pause_follow.go @@ -34,7 +34,7 @@ func newCCRPauseFollowFunc(t Transport) CCRPauseFollow { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type CCRPauseFollowRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r CCRPauseFollowRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.pause_follow") defer instrument.Close(ctx) } @@ -89,7 +89,7 @@ func (r CCRPauseFollowRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r CCRPauseFollowRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r CCRPauseFollowRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.pause_follow") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.pause_follow") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.put_auto_follow_pattern.go b/esapi/api.xpack.ccr.put_auto_follow_pattern.go index 1987819013..1e0dd15978 100644 --- a/esapi/api.xpack.ccr.put_auto_follow_pattern.go +++ b/esapi/api.xpack.ccr.put_auto_follow_pattern.go @@ -35,7 +35,7 @@ func newCCRPutAutoFollowPatternFunc(t Transport) CCRPutAutoFollowPattern { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type CCRPutAutoFollowPatternRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r CCRPutAutoFollowPatternRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.put_auto_follow_pattern") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r CCRPutAutoFollowPatternRequest) Do(providedCtx context.Context, transpor path.WriteString("auto_follow") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -124,7 +124,7 @@ func (r CCRPutAutoFollowPatternRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,18 +158,18 @@ func (r CCRPutAutoFollowPatternRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.put_auto_follow_pattern") if reader := instrument.RecordRequestBody(ctx, "ccr.put_auto_follow_pattern", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.put_auto_follow_pattern") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.resume_auto_follow_pattern.go b/esapi/api.xpack.ccr.resume_auto_follow_pattern.go index 6a39345853..54c3fa9f4f 100644 --- a/esapi/api.xpack.ccr.resume_auto_follow_pattern.go +++ b/esapi/api.xpack.ccr.resume_auto_follow_pattern.go @@ -34,7 +34,7 @@ func newCCRResumeAutoFollowPatternFunc(t Transport) CCRResumeAutoFollowPattern { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type CCRResumeAutoFollowPatternRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r CCRResumeAutoFollowPatternRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.resume_auto_follow_pattern") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r CCRResumeAutoFollowPatternRequest) Do(providedCtx context.Context, trans path.WriteString("auto_follow") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } path.WriteString("/") @@ -123,7 +123,7 @@ func (r CCRResumeAutoFollowPatternRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,15 +153,15 @@ func (r CCRResumeAutoFollowPatternRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.resume_auto_follow_pattern") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.resume_auto_follow_pattern") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.resume_follow.go b/esapi/api.xpack.ccr.resume_follow.go index c5caa88e84..ae5463aa7f 100644 --- a/esapi/api.xpack.ccr.resume_follow.go +++ b/esapi/api.xpack.ccr.resume_follow.go @@ -35,7 +35,7 @@ func newCCRResumeFollowFunc(t Transport) CCRResumeFollow { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type CCRResumeFollowRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r CCRResumeFollowRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.resume_follow") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r CCRResumeFollowRequest) Do(providedCtx context.Context, transport Transp path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -124,7 +124,7 @@ func (r CCRResumeFollowRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,18 +158,18 @@ func (r CCRResumeFollowRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.resume_follow") if reader := instrument.RecordRequestBody(ctx, "ccr.resume_follow", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.resume_follow") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.stats.go b/esapi/api.xpack.ccr.stats.go index 6957a13460..1da869a89f 100644 --- a/esapi/api.xpack.ccr.stats.go +++ b/esapi/api.xpack.ccr.stats.go @@ -34,7 +34,7 @@ func newCCRStatsFunc(t Transport) CCRStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type CCRStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r CCRStatsRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.stats") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r CCRStatsRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r CCRStatsRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ccr.unfollow.go b/esapi/api.xpack.ccr.unfollow.go index e000d5f7a2..dafa09858a 100644 --- a/esapi/api.xpack.ccr.unfollow.go +++ b/esapi/api.xpack.ccr.unfollow.go @@ -34,7 +34,7 @@ func newCCRUnfollowFunc(t Transport) CCRUnfollow { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type CCRUnfollowRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r CCRUnfollowRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ccr.unfollow") defer instrument.Close(ctx) } @@ -89,7 +89,7 @@ func (r CCRUnfollowRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r CCRUnfollowRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r CCRUnfollowRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ccr.unfollow") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ccr.unfollow") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.close_point_in_time.go b/esapi/api.xpack.close_point_in_time.go index afefee4719..9ba20764eb 100644 --- a/esapi/api.xpack.close_point_in_time.go +++ b/esapi/api.xpack.close_point_in_time.go @@ -34,7 +34,7 @@ func newClosePointInTimeFunc(t Transport) ClosePointInTime { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type ClosePointInTimeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r ClosePointInTimeRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "close_point_in_time") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r ClosePointInTimeRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r ClosePointInTimeRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "close_point_in_time") if reader := instrument.RecordRequestBody(ctx, "close_point_in_time", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "close_point_in_time") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.enrich.delete_policy.go b/esapi/api.xpack.enrich.delete_policy.go index cb1128233a..f4cd504e0a 100644 --- a/esapi/api.xpack.enrich.delete_policy.go +++ b/esapi/api.xpack.enrich.delete_policy.go @@ -34,7 +34,7 @@ func newEnrichDeletePolicyFunc(t Transport) EnrichDeletePolicy { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type EnrichDeletePolicyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r EnrichDeletePolicyRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "enrich.delete_policy") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r EnrichDeletePolicyRequest) Do(providedCtx context.Context, transport Tra path.WriteString("policy") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -121,7 +121,7 @@ func (r EnrichDeletePolicyRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r EnrichDeletePolicyRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "enrich.delete_policy") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "enrich.delete_policy") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.enrich.execute_policy.go b/esapi/api.xpack.enrich.execute_policy.go index 5a5c1f39cb..0d81402911 100644 --- a/esapi/api.xpack.enrich.execute_policy.go +++ b/esapi/api.xpack.enrich.execute_policy.go @@ -35,7 +35,7 @@ func newEnrichExecutePolicyFunc(t Transport) EnrichExecutePolicy { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type EnrichExecutePolicyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r EnrichExecutePolicyRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "enrich.execute_policy") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r EnrichExecutePolicyRequest) Do(providedCtx context.Context, transport Tr path.WriteString("policy") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } path.WriteString("/") @@ -129,7 +129,7 @@ func (r EnrichExecutePolicyRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,15 +159,15 @@ func (r EnrichExecutePolicyRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "enrich.execute_policy") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "enrich.execute_policy") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.enrich.get_policy.go b/esapi/api.xpack.enrich.get_policy.go index 7ed297507e..52a9ede00d 100644 --- a/esapi/api.xpack.enrich.get_policy.go +++ b/esapi/api.xpack.enrich.get_policy.go @@ -34,7 +34,7 @@ func newEnrichGetPolicyFunc(t Transport) EnrichGetPolicy { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type EnrichGetPolicyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r EnrichGetPolicyRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "enrich.get_policy") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r EnrichGetPolicyRequest) Do(providedCtx context.Context, transport Transp if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -123,7 +123,7 @@ func (r EnrichGetPolicyRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,15 +153,15 @@ func (r EnrichGetPolicyRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "enrich.get_policy") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "enrich.get_policy") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.enrich.put_policy.go b/esapi/api.xpack.enrich.put_policy.go index f8459ad874..78caff462f 100644 --- a/esapi/api.xpack.enrich.put_policy.go +++ b/esapi/api.xpack.enrich.put_policy.go @@ -35,7 +35,7 @@ func newEnrichPutPolicyFunc(t Transport) EnrichPutPolicy { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type EnrichPutPolicyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r EnrichPutPolicyRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "enrich.put_policy") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r EnrichPutPolicyRequest) Do(providedCtx context.Context, transport Transp path.WriteString("policy") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -124,7 +124,7 @@ func (r EnrichPutPolicyRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,18 +158,18 @@ func (r EnrichPutPolicyRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "enrich.put_policy") if reader := instrument.RecordRequestBody(ctx, "enrich.put_policy", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "enrich.put_policy") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.enrich.stats.go b/esapi/api.xpack.enrich.stats.go index d4884c8519..2c917b97ff 100644 --- a/esapi/api.xpack.enrich.stats.go +++ b/esapi/api.xpack.enrich.stats.go @@ -34,7 +34,7 @@ func newEnrichStatsFunc(t Transport) EnrichStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type EnrichStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r EnrichStatsRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "enrich.stats") defer instrument.Close(ctx) } @@ -111,7 +111,7 @@ func (r EnrichStatsRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,15 +141,15 @@ func (r EnrichStatsRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "enrich.stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "enrich.stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.eql.delete.go b/esapi/api.xpack.eql.delete.go index 2222c6a9dc..472306ea3c 100644 --- a/esapi/api.xpack.eql.delete.go +++ b/esapi/api.xpack.eql.delete.go @@ -33,7 +33,7 @@ func newEqlDeleteFunc(t Transport) EqlDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type EqlDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r EqlDeleteRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "eql.delete") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r EqlDeleteRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("search") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -114,7 +114,7 @@ func (r EqlDeleteRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r EqlDeleteRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "eql.delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "eql.delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.eql.get.go b/esapi/api.xpack.eql.get.go index a5a9620a79..5400303cf6 100644 --- a/esapi/api.xpack.eql.get.go +++ b/esapi/api.xpack.eql.get.go @@ -34,7 +34,7 @@ func newEqlGetFunc(t Transport) EqlGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type EqlGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r EqlGetRequest) Do(providedCtx context.Context, transport Transport) (*Re ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "eql.get") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r EqlGetRequest) Do(providedCtx context.Context, transport Transport) (*Re path.WriteString("search") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -126,7 +126,7 @@ func (r EqlGetRequest) Do(providedCtx context.Context, transport Transport) (*Re req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r EqlGetRequest) Do(providedCtx context.Context, transport Transport) (*Re req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "eql.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "eql.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.eql.get_status.go b/esapi/api.xpack.eql.get_status.go index 515b5c4796..8473101f9f 100644 --- a/esapi/api.xpack.eql.get_status.go +++ b/esapi/api.xpack.eql.get_status.go @@ -33,7 +33,7 @@ func newEqlGetStatusFunc(t Transport) EqlGetStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type EqlGetStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r EqlGetStatusRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "eql.get_status") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r EqlGetStatusRequest) Do(providedCtx context.Context, transport Transport path.WriteString("status") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -116,7 +116,7 @@ func (r EqlGetStatusRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r EqlGetStatusRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "eql.get_status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "eql.get_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.eql.search.go b/esapi/api.xpack.eql.search.go index 2f3ccee135..f3baa11a21 100644 --- a/esapi/api.xpack.eql.search.go +++ b/esapi/api.xpack.eql.search.go @@ -36,7 +36,7 @@ func newEqlSearchFunc(t Transport) EqlSearch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -71,7 +71,7 @@ type EqlSearchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -83,7 +83,7 @@ func (r EqlSearchRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "eql.search") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r EqlSearchRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -145,7 +145,7 @@ func (r EqlSearchRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -179,18 +179,18 @@ func (r EqlSearchRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "eql.search") if reader := instrument.RecordRequestBody(ctx, "eql.search", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "eql.search") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.esql.async_query.go b/esapi/api.xpack.esql.async_query.go index bde63df23d..e740b01f88 100644 --- a/esapi/api.xpack.esql.async_query.go +++ b/esapi/api.xpack.esql.async_query.go @@ -35,7 +35,7 @@ func newEsqlAsyncQueryFunc(t Transport) EsqlAsyncQuery { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type EsqlAsyncQueryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r EsqlAsyncQueryRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "esql.async_query") defer instrument.Close(ctx) } @@ -124,7 +124,7 @@ func (r EsqlAsyncQueryRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,18 +158,18 @@ func (r EsqlAsyncQueryRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "esql.async_query") if reader := instrument.RecordRequestBody(ctx, "esql.async_query", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "esql.async_query") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.esql.async_query_delete.go b/esapi/api.xpack.esql.async_query_delete.go index 879e658517..71b8c04a17 100644 --- a/esapi/api.xpack.esql.async_query_delete.go +++ b/esapi/api.xpack.esql.async_query_delete.go @@ -33,7 +33,7 @@ func newEsqlAsyncQueryDeleteFunc(t Transport) EsqlAsyncQueryDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type EsqlAsyncQueryDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r EsqlAsyncQueryDeleteRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "esql.async_query_delete") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r EsqlAsyncQueryDeleteRequest) Do(providedCtx context.Context, transport T path.WriteString("async") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -114,7 +114,7 @@ func (r EsqlAsyncQueryDeleteRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r EsqlAsyncQueryDeleteRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "esql.async_query_delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "esql.async_query_delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.esql.async_query_get.go b/esapi/api.xpack.esql.async_query_get.go index 7d4746fa67..b668f93c32 100644 --- a/esapi/api.xpack.esql.async_query_get.go +++ b/esapi/api.xpack.esql.async_query_get.go @@ -35,7 +35,7 @@ func newEsqlAsyncQueryGetFunc(t Transport) EsqlAsyncQueryGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type EsqlAsyncQueryGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r EsqlAsyncQueryGetRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "esql.async_query_get") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r EsqlAsyncQueryGetRequest) Do(providedCtx context.Context, transport Tran path.WriteString("async") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -132,7 +132,7 @@ func (r EsqlAsyncQueryGetRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,15 +162,15 @@ func (r EsqlAsyncQueryGetRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "esql.async_query_get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "esql.async_query_get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.esql.async_query_stop.go b/esapi/api.xpack.esql.async_query_stop.go index f3b30768ea..66e3ad399a 100644 --- a/esapi/api.xpack.esql.async_query_stop.go +++ b/esapi/api.xpack.esql.async_query_stop.go @@ -33,7 +33,7 @@ func newEsqlAsyncQueryStopFunc(t Transport) EsqlAsyncQueryStop { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type EsqlAsyncQueryStopRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r EsqlAsyncQueryStopRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "esql.async_query_stop") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r EsqlAsyncQueryStopRequest) Do(providedCtx context.Context, transport Tra path.WriteString("async") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } path.WriteString("/") @@ -116,7 +116,7 @@ func (r EsqlAsyncQueryStopRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r EsqlAsyncQueryStopRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "esql.async_query_stop") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "esql.async_query_stop") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.esql.query.go b/esapi/api.xpack.esql.query.go index 085dc917e2..b7dba59b04 100644 --- a/esapi/api.xpack.esql.query.go +++ b/esapi/api.xpack.esql.query.go @@ -35,7 +35,7 @@ func newEsqlQueryFunc(t Transport) EsqlQuery { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type EsqlQueryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r EsqlQueryRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "esql.query") defer instrument.Close(ctx) } @@ -124,7 +124,7 @@ func (r EsqlQueryRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,18 +158,18 @@ func (r EsqlQueryRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "esql.query") if reader := instrument.RecordRequestBody(ctx, "esql.query", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "esql.query") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.graph.explore.go b/esapi/api.xpack.graph.explore.go index a337976608..5ec63456f8 100644 --- a/esapi/api.xpack.graph.explore.go +++ b/esapi/api.xpack.graph.explore.go @@ -36,7 +36,7 @@ func newGraphExploreFunc(t Transport) GraphExplore { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type GraphExploreRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r GraphExploreRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "graph.explore") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r GraphExploreRequest) Do(providedCtx context.Context, transport Transport path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -134,7 +134,7 @@ func (r GraphExploreRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -168,18 +168,18 @@ func (r GraphExploreRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "graph.explore") if reader := instrument.RecordRequestBody(ctx, "graph.explore", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "graph.explore") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.delete_lifecycle.go b/esapi/api.xpack.ilm.delete_lifecycle.go index 03225daa6c..fddcd14b63 100644 --- a/esapi/api.xpack.ilm.delete_lifecycle.go +++ b/esapi/api.xpack.ilm.delete_lifecycle.go @@ -33,7 +33,7 @@ func newILMDeleteLifecycleFunc(t Transport) ILMDeleteLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type ILMDeleteLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r ILMDeleteLifecycleRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.delete_lifecycle") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r ILMDeleteLifecycleRequest) Do(providedCtx context.Context, transport Tra path.WriteString("policy") path.WriteString("/") path.WriteString(r.Policy) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "policy", r.Policy) } @@ -114,7 +114,7 @@ func (r ILMDeleteLifecycleRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r ILMDeleteLifecycleRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.delete_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.delete_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.explain_lifecycle.go b/esapi/api.xpack.ilm.explain_lifecycle.go index 7a561f4f1e..fba0e8648a 100644 --- a/esapi/api.xpack.ilm.explain_lifecycle.go +++ b/esapi/api.xpack.ilm.explain_lifecycle.go @@ -34,7 +34,7 @@ func newILMExplainLifecycleFunc(t Transport) ILMExplainLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type ILMExplainLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r ILMExplainLifecycleRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.explain_lifecycle") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r ILMExplainLifecycleRequest) Do(providedCtx context.Context, transport Tr path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -126,7 +126,7 @@ func (r ILMExplainLifecycleRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r ILMExplainLifecycleRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.explain_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.explain_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.get_lifecycle.go b/esapi/api.xpack.ilm.get_lifecycle.go index 7bb9bb57e3..0e82c4cded 100644 --- a/esapi/api.xpack.ilm.get_lifecycle.go +++ b/esapi/api.xpack.ilm.get_lifecycle.go @@ -33,7 +33,7 @@ func newILMGetLifecycleFunc(t Transport) ILMGetLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type ILMGetLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r ILMGetLifecycleRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.get_lifecycle") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r ILMGetLifecycleRequest) Do(providedCtx context.Context, transport Transp if r.Policy != "" { path.WriteString("/") path.WriteString(r.Policy) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "policy", r.Policy) } } @@ -116,7 +116,7 @@ func (r ILMGetLifecycleRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r ILMGetLifecycleRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.get_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.get_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.get_status.go b/esapi/api.xpack.ilm.get_status.go index 074bb2746e..dc53df6d45 100644 --- a/esapi/api.xpack.ilm.get_status.go +++ b/esapi/api.xpack.ilm.get_status.go @@ -33,7 +33,7 @@ func newILMGetStatusFunc(t Transport) ILMGetStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type ILMGetStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r ILMGetStatusRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.get_status") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r ILMGetStatusRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r ILMGetStatusRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.get_status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.get_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.migrate_to_data_tiers.go b/esapi/api.xpack.ilm.migrate_to_data_tiers.go index 4daa2d042b..cbc0a7c7fc 100644 --- a/esapi/api.xpack.ilm.migrate_to_data_tiers.go +++ b/esapi/api.xpack.ilm.migrate_to_data_tiers.go @@ -35,7 +35,7 @@ func newILMMigrateToDataTiersFunc(t Transport) ILMMigrateToDataTiers { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type ILMMigrateToDataTiersRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r ILMMigrateToDataTiersRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.migrate_to_data_tiers") defer instrument.Close(ctx) } @@ -114,7 +114,7 @@ func (r ILMMigrateToDataTiersRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,18 +148,18 @@ func (r ILMMigrateToDataTiersRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.migrate_to_data_tiers") if reader := instrument.RecordRequestBody(ctx, "ilm.migrate_to_data_tiers", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.migrate_to_data_tiers") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.move_to_step.go b/esapi/api.xpack.ilm.move_to_step.go index 477d64e17f..1f46f44773 100644 --- a/esapi/api.xpack.ilm.move_to_step.go +++ b/esapi/api.xpack.ilm.move_to_step.go @@ -34,7 +34,7 @@ func newILMMoveToStepFunc(t Transport) ILMMoveToStep { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ILMMoveToStepRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ILMMoveToStepRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.move_to_step") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ILMMoveToStepRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("move") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } @@ -117,7 +117,7 @@ func (r ILMMoveToStepRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r ILMMoveToStepRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.move_to_step") if reader := instrument.RecordRequestBody(ctx, "ilm.move_to_step", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.move_to_step") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.put_lifecycle.go b/esapi/api.xpack.ilm.put_lifecycle.go index dc54a06cb3..3656531795 100644 --- a/esapi/api.xpack.ilm.put_lifecycle.go +++ b/esapi/api.xpack.ilm.put_lifecycle.go @@ -34,7 +34,7 @@ func newILMPutLifecycleFunc(t Transport) ILMPutLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type ILMPutLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r ILMPutLifecycleRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.put_lifecycle") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r ILMPutLifecycleRequest) Do(providedCtx context.Context, transport Transp path.WriteString("policy") path.WriteString("/") path.WriteString(r.Policy) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "policy", r.Policy) } @@ -117,7 +117,7 @@ func (r ILMPutLifecycleRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r ILMPutLifecycleRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.put_lifecycle") if reader := instrument.RecordRequestBody(ctx, "ilm.put_lifecycle", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.put_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.remove_policy.go b/esapi/api.xpack.ilm.remove_policy.go index 00f5aec5ef..d4aacb2bcb 100644 --- a/esapi/api.xpack.ilm.remove_policy.go +++ b/esapi/api.xpack.ilm.remove_policy.go @@ -33,7 +33,7 @@ func newILMRemovePolicyFunc(t Transport) ILMRemovePolicy { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type ILMRemovePolicyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r ILMRemovePolicyRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.remove_policy") defer instrument.Close(ctx) } @@ -86,7 +86,7 @@ func (r ILMRemovePolicyRequest) Do(providedCtx context.Context, transport Transp path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -114,7 +114,7 @@ func (r ILMRemovePolicyRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r ILMRemovePolicyRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.remove_policy") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.remove_policy") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.retry.go b/esapi/api.xpack.ilm.retry.go index 9af0530619..a43a247f9d 100644 --- a/esapi/api.xpack.ilm.retry.go +++ b/esapi/api.xpack.ilm.retry.go @@ -33,7 +33,7 @@ func newILMRetryFunc(t Transport) ILMRetry { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type ILMRetryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r ILMRetryRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.retry") defer instrument.Close(ctx) } @@ -86,7 +86,7 @@ func (r ILMRetryRequest) Do(providedCtx context.Context, transport Transport) (* path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -114,7 +114,7 @@ func (r ILMRetryRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r ILMRetryRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.retry") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.retry") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.start.go b/esapi/api.xpack.ilm.start.go index 1a9fc3ef1b..58b3046c87 100644 --- a/esapi/api.xpack.ilm.start.go +++ b/esapi/api.xpack.ilm.start.go @@ -33,7 +33,7 @@ func newILMStartFunc(t Transport) ILMStart { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type ILMStartRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r ILMStartRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.start") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r ILMStartRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r ILMStartRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.start") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.start") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ilm.stop.go b/esapi/api.xpack.ilm.stop.go index b924e75373..f8396aa83a 100644 --- a/esapi/api.xpack.ilm.stop.go +++ b/esapi/api.xpack.ilm.stop.go @@ -33,7 +33,7 @@ func newILMStopFunc(t Transport) ILMStop { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type ILMStopRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r ILMStopRequest) Do(providedCtx context.Context, transport Transport) (*R ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ilm.stop") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r ILMStopRequest) Do(providedCtx context.Context, transport Transport) (*R req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r ILMStopRequest) Do(providedCtx context.Context, transport Transport) (*R req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ilm.stop") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ilm.stop") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.indices.create_data_stream.go b/esapi/api.xpack.indices.create_data_stream.go index 212701301b..247ae395a9 100644 --- a/esapi/api.xpack.indices.create_data_stream.go +++ b/esapi/api.xpack.indices.create_data_stream.go @@ -34,7 +34,7 @@ func newIndicesCreateDataStreamFunc(t Transport) IndicesCreateDataStream { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type IndicesCreateDataStreamRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r IndicesCreateDataStreamRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.create_data_stream") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r IndicesCreateDataStreamRequest) Do(providedCtx context.Context, transpor path.WriteString("_data_stream") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -124,7 +124,7 @@ func (r IndicesCreateDataStreamRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r IndicesCreateDataStreamRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.create_data_stream") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.create_data_stream") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.indices.data_streams_stats.go b/esapi/api.xpack.indices.data_streams_stats.go index 65c6f0e647..becfc41acd 100644 --- a/esapi/api.xpack.indices.data_streams_stats.go +++ b/esapi/api.xpack.indices.data_streams_stats.go @@ -33,7 +33,7 @@ func newIndicesDataStreamsStatsFunc(t Transport) IndicesDataStreamsStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type IndicesDataStreamsStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r IndicesDataStreamsStatsRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.data_streams_stats") defer instrument.Close(ctx) } @@ -89,7 +89,7 @@ func (r IndicesDataStreamsStatsRequest) Do(providedCtx context.Context, transpor if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -116,7 +116,7 @@ func (r IndicesDataStreamsStatsRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r IndicesDataStreamsStatsRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.data_streams_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.data_streams_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.indices.delete_data_stream.go b/esapi/api.xpack.indices.delete_data_stream.go index 2db0e9f365..6cf33eec6a 100644 --- a/esapi/api.xpack.indices.delete_data_stream.go +++ b/esapi/api.xpack.indices.delete_data_stream.go @@ -35,7 +35,7 @@ func newIndicesDeleteDataStreamFunc(t Transport) IndicesDeleteDataStream { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type IndicesDeleteDataStreamRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r IndicesDeleteDataStreamRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.delete_data_stream") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r IndicesDeleteDataStreamRequest) Do(providedCtx context.Context, transpor path.WriteString("_data_stream") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } @@ -129,7 +129,7 @@ func (r IndicesDeleteDataStreamRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,15 +159,15 @@ func (r IndicesDeleteDataStreamRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.delete_data_stream") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.delete_data_stream") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.indices.get_data_stream.go b/esapi/api.xpack.indices.get_data_stream.go index 7f4eb698d5..782b357103 100644 --- a/esapi/api.xpack.indices.get_data_stream.go +++ b/esapi/api.xpack.indices.get_data_stream.go @@ -35,7 +35,7 @@ func newIndicesGetDataStreamFunc(t Transport) IndicesGetDataStream { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type IndicesGetDataStreamRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r IndicesGetDataStreamRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.get_data_stream") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r IndicesGetDataStreamRequest) Do(providedCtx context.Context, transport T if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -137,7 +137,7 @@ func (r IndicesGetDataStreamRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r IndicesGetDataStreamRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.get_data_stream") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.get_data_stream") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.indices.migrate_to_data_stream.go b/esapi/api.xpack.indices.migrate_to_data_stream.go index 886f911589..8c475e1b99 100644 --- a/esapi/api.xpack.indices.migrate_to_data_stream.go +++ b/esapi/api.xpack.indices.migrate_to_data_stream.go @@ -34,7 +34,7 @@ func newIndicesMigrateToDataStreamFunc(t Transport) IndicesMigrateToDataStream { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type IndicesMigrateToDataStreamRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r IndicesMigrateToDataStreamRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.migrate_to_data_stream") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r IndicesMigrateToDataStreamRequest) Do(providedCtx context.Context, trans path.WriteString("_migrate") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -126,7 +126,7 @@ func (r IndicesMigrateToDataStreamRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r IndicesMigrateToDataStreamRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.migrate_to_data_stream") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.migrate_to_data_stream") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.indices.promote_data_stream.go b/esapi/api.xpack.indices.promote_data_stream.go index 6b9ed58e93..7a8ff0f296 100644 --- a/esapi/api.xpack.indices.promote_data_stream.go +++ b/esapi/api.xpack.indices.promote_data_stream.go @@ -34,7 +34,7 @@ func newIndicesPromoteDataStreamFunc(t Transport) IndicesPromoteDataStream { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type IndicesPromoteDataStreamRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r IndicesPromoteDataStreamRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.promote_data_stream") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r IndicesPromoteDataStreamRequest) Do(providedCtx context.Context, transpo path.WriteString("_promote") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -121,7 +121,7 @@ func (r IndicesPromoteDataStreamRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r IndicesPromoteDataStreamRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.promote_data_stream") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.promote_data_stream") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.indices.reload_search_analyzers.go b/esapi/api.xpack.indices.reload_search_analyzers.go index 9a4e368e26..bd182a4341 100644 --- a/esapi/api.xpack.indices.reload_search_analyzers.go +++ b/esapi/api.xpack.indices.reload_search_analyzers.go @@ -35,7 +35,7 @@ func newIndicesReloadSearchAnalyzersFunc(t Transport) IndicesReloadSearchAnalyze } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type IndicesReloadSearchAnalyzersRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r IndicesReloadSearchAnalyzersRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.reload_search_analyzers") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r IndicesReloadSearchAnalyzersRequest) Do(providedCtx context.Context, tra path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -139,7 +139,7 @@ func (r IndicesReloadSearchAnalyzersRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -169,15 +169,15 @@ func (r IndicesReloadSearchAnalyzersRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.reload_search_analyzers") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.reload_search_analyzers") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.indices.unfreeze.go b/esapi/api.xpack.indices.unfreeze.go index 9bafe53de4..d469af4b0f 100644 --- a/esapi/api.xpack.indices.unfreeze.go +++ b/esapi/api.xpack.indices.unfreeze.go @@ -35,7 +35,7 @@ func newIndicesUnfreezeFunc(t Transport) IndicesUnfreeze { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type IndicesUnfreezeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r IndicesUnfreezeRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "indices.unfreeze") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r IndicesUnfreezeRequest) Do(providedCtx context.Context, transport Transp path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -145,7 +145,7 @@ func (r IndicesUnfreezeRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -175,15 +175,15 @@ func (r IndicesUnfreezeRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "indices.unfreeze") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "indices.unfreeze") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.license.delete.go b/esapi/api.xpack.license.delete.go index 13410a809b..8df0ddfa59 100644 --- a/esapi/api.xpack.license.delete.go +++ b/esapi/api.xpack.license.delete.go @@ -34,7 +34,7 @@ func newLicenseDeleteFunc(t Transport) LicenseDelete { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type LicenseDeleteRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r LicenseDeleteRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "license.delete") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r LicenseDeleteRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r LicenseDeleteRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "license.delete") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "license.delete") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.license.get.go b/esapi/api.xpack.license.get.go index 2e2f35d6a1..fc555cba24 100644 --- a/esapi/api.xpack.license.get.go +++ b/esapi/api.xpack.license.get.go @@ -34,7 +34,7 @@ func newLicenseGetFunc(t Transport) LicenseGet { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type LicenseGetRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r LicenseGetRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "license.get") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r LicenseGetRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r LicenseGetRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "license.get") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "license.get") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.license.get_basic_status.go b/esapi/api.xpack.license.get_basic_status.go index 7f114721a1..38bf5835fd 100644 --- a/esapi/api.xpack.license.get_basic_status.go +++ b/esapi/api.xpack.license.get_basic_status.go @@ -33,7 +33,7 @@ func newLicenseGetBasicStatusFunc(t Transport) LicenseGetBasicStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type LicenseGetBasicStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r LicenseGetBasicStatusRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "license.get_basic_status") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r LicenseGetBasicStatusRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r LicenseGetBasicStatusRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "license.get_basic_status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "license.get_basic_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.license.get_trial_status.go b/esapi/api.xpack.license.get_trial_status.go index 9deb53f782..e33eac0413 100644 --- a/esapi/api.xpack.license.get_trial_status.go +++ b/esapi/api.xpack.license.get_trial_status.go @@ -33,7 +33,7 @@ func newLicenseGetTrialStatusFunc(t Transport) LicenseGetTrialStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type LicenseGetTrialStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r LicenseGetTrialStatusRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "license.get_trial_status") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r LicenseGetTrialStatusRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r LicenseGetTrialStatusRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "license.get_trial_status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "license.get_trial_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.license.post.go b/esapi/api.xpack.license.post.go index 3527d12f79..f9ba4aaf22 100644 --- a/esapi/api.xpack.license.post.go +++ b/esapi/api.xpack.license.post.go @@ -36,7 +36,7 @@ func newLicensePostFunc(t Transport) LicensePost { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type LicensePostRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r LicensePostRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "license.post") defer instrument.Close(ctx) } @@ -125,7 +125,7 @@ func (r LicensePostRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,18 +159,18 @@ func (r LicensePostRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "license.post") if reader := instrument.RecordRequestBody(ctx, "license.post", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "license.post") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.license.post_start_basic.go b/esapi/api.xpack.license.post_start_basic.go index ccd321965d..ed5e724859 100644 --- a/esapi/api.xpack.license.post_start_basic.go +++ b/esapi/api.xpack.license.post_start_basic.go @@ -35,7 +35,7 @@ func newLicensePostStartBasicFunc(t Transport) LicensePostStartBasic { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type LicensePostStartBasicRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r LicensePostStartBasicRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "license.post_start_basic") defer instrument.Close(ctx) } @@ -122,7 +122,7 @@ func (r LicensePostStartBasicRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r LicensePostStartBasicRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "license.post_start_basic") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "license.post_start_basic") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.license.post_start_trial.go b/esapi/api.xpack.license.post_start_trial.go index a3a459af02..268c55abc1 100644 --- a/esapi/api.xpack.license.post_start_trial.go +++ b/esapi/api.xpack.license.post_start_trial.go @@ -35,7 +35,7 @@ func newLicensePostStartTrialFunc(t Transport) LicensePostStartTrial { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type LicensePostStartTrialRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r LicensePostStartTrialRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "license.post_start_trial") defer instrument.Close(ctx) } @@ -122,7 +122,7 @@ func (r LicensePostStartTrialRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r LicensePostStartTrialRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "license.post_start_trial") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "license.post_start_trial") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.logstash.delete_pipeline.go b/esapi/api.xpack.logstash.delete_pipeline.go index b1b772da36..2a539e4f04 100644 --- a/esapi/api.xpack.logstash.delete_pipeline.go +++ b/esapi/api.xpack.logstash.delete_pipeline.go @@ -33,7 +33,7 @@ func newLogstashDeletePipelineFunc(t Transport) LogstashDeletePipeline { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type LogstashDeletePipelineRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r LogstashDeletePipelineRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "logstash.delete_pipeline") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r LogstashDeletePipelineRequest) Do(providedCtx context.Context, transport path.WriteString("pipeline") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -114,7 +114,7 @@ func (r LogstashDeletePipelineRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r LogstashDeletePipelineRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "logstash.delete_pipeline") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "logstash.delete_pipeline") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.logstash.get_pipeline.go b/esapi/api.xpack.logstash.get_pipeline.go index d2bd7ba126..a9b9071e4e 100644 --- a/esapi/api.xpack.logstash.get_pipeline.go +++ b/esapi/api.xpack.logstash.get_pipeline.go @@ -33,7 +33,7 @@ func newLogstashGetPipelineFunc(t Transport) LogstashGetPipeline { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type LogstashGetPipelineRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r LogstashGetPipelineRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "logstash.get_pipeline") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r LogstashGetPipelineRequest) Do(providedCtx context.Context, transport Tr if r.DocumentID != "" { path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } } @@ -116,7 +116,7 @@ func (r LogstashGetPipelineRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r LogstashGetPipelineRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "logstash.get_pipeline") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "logstash.get_pipeline") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.logstash.put_pipeline.go b/esapi/api.xpack.logstash.put_pipeline.go index 6623004d2c..cb3eef6379 100644 --- a/esapi/api.xpack.logstash.put_pipeline.go +++ b/esapi/api.xpack.logstash.put_pipeline.go @@ -34,7 +34,7 @@ func newLogstashPutPipelineFunc(t Transport) LogstashPutPipeline { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type LogstashPutPipelineRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r LogstashPutPipelineRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "logstash.put_pipeline") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r LogstashPutPipelineRequest) Do(providedCtx context.Context, transport Tr path.WriteString("pipeline") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -117,7 +117,7 @@ func (r LogstashPutPipelineRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r LogstashPutPipelineRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "logstash.put_pipeline") if reader := instrument.RecordRequestBody(ctx, "logstash.put_pipeline", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "logstash.put_pipeline") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.migration.deprecations.go b/esapi/api.xpack.migration.deprecations.go index e35ad1b1a0..09347f0662 100644 --- a/esapi/api.xpack.migration.deprecations.go +++ b/esapi/api.xpack.migration.deprecations.go @@ -33,7 +33,7 @@ func newMigrationDeprecationsFunc(t Transport) MigrationDeprecations { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type MigrationDeprecationsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r MigrationDeprecationsRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "migration.deprecations") defer instrument.Close(ctx) } @@ -87,7 +87,7 @@ func (r MigrationDeprecationsRequest) Do(providedCtx context.Context, transport if r.Index != "" { path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } } @@ -116,7 +116,7 @@ func (r MigrationDeprecationsRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r MigrationDeprecationsRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "migration.deprecations") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "migration.deprecations") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.migration.get_feature_upgrade_status.go b/esapi/api.xpack.migration.get_feature_upgrade_status.go index ac086fd96e..bae7f5c564 100644 --- a/esapi/api.xpack.migration.get_feature_upgrade_status.go +++ b/esapi/api.xpack.migration.get_feature_upgrade_status.go @@ -33,7 +33,7 @@ func newMigrationGetFeatureUpgradeStatusFunc(t Transport) MigrationGetFeatureUpg } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type MigrationGetFeatureUpgradeStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r MigrationGetFeatureUpgradeStatusRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "migration.get_feature_upgrade_status") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r MigrationGetFeatureUpgradeStatusRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r MigrationGetFeatureUpgradeStatusRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "migration.get_feature_upgrade_status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "migration.get_feature_upgrade_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.migration.post_feature_upgrade.go b/esapi/api.xpack.migration.post_feature_upgrade.go index ee486f0d32..e09eb0423f 100644 --- a/esapi/api.xpack.migration.post_feature_upgrade.go +++ b/esapi/api.xpack.migration.post_feature_upgrade.go @@ -33,7 +33,7 @@ func newMigrationPostFeatureUpgradeFunc(t Transport) MigrationPostFeatureUpgrade } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type MigrationPostFeatureUpgradeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r MigrationPostFeatureUpgradeRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "migration.post_feature_upgrade") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r MigrationPostFeatureUpgradeRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r MigrationPostFeatureUpgradeRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "migration.post_feature_upgrade") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "migration.post_feature_upgrade") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.clear_trained_model_deployment_cache.go b/esapi/api.xpack.ml.clear_trained_model_deployment_cache.go index 613fb9f294..1bc5e1adab 100644 --- a/esapi/api.xpack.ml.clear_trained_model_deployment_cache.go +++ b/esapi/api.xpack.ml.clear_trained_model_deployment_cache.go @@ -33,7 +33,7 @@ func newMLClearTrainedModelDeploymentCacheFunc(t Transport) MLClearTrainedModelD } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type MLClearTrainedModelDeploymentCacheRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r MLClearTrainedModelDeploymentCacheRequest) Do(providedCtx context.Contex ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.clear_trained_model_deployment_cache") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r MLClearTrainedModelDeploymentCacheRequest) Do(providedCtx context.Contex path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") @@ -120,7 +120,7 @@ func (r MLClearTrainedModelDeploymentCacheRequest) Do(providedCtx context.Contex req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -150,15 +150,15 @@ func (r MLClearTrainedModelDeploymentCacheRequest) Do(providedCtx context.Contex req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.clear_trained_model_deployment_cache") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.clear_trained_model_deployment_cache") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.close_job.go b/esapi/api.xpack.ml.close_job.go index f76ebdd404..436ad17c5d 100644 --- a/esapi/api.xpack.ml.close_job.go +++ b/esapi/api.xpack.ml.close_job.go @@ -36,7 +36,7 @@ func newMLCloseJobFunc(t Transport) MLCloseJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type MLCloseJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r MLCloseJobRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.close_job") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MLCloseJobRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -137,7 +137,7 @@ func (r MLCloseJobRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -171,18 +171,18 @@ func (r MLCloseJobRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.close_job") if reader := instrument.RecordRequestBody(ctx, "ml.close_job", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.close_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_calendar.go b/esapi/api.xpack.ml.delete_calendar.go index cf1a4cd479..d14fb8f6ba 100644 --- a/esapi/api.xpack.ml.delete_calendar.go +++ b/esapi/api.xpack.ml.delete_calendar.go @@ -33,7 +33,7 @@ func newMLDeleteCalendarFunc(t Transport) MLDeleteCalendar { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type MLDeleteCalendarRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r MLDeleteCalendarRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_calendar") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r MLDeleteCalendarRequest) Do(providedCtx context.Context, transport Trans path.WriteString("calendars") path.WriteString("/") path.WriteString(r.CalendarID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "calendar_id", r.CalendarID) } @@ -114,7 +114,7 @@ func (r MLDeleteCalendarRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r MLDeleteCalendarRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_calendar") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_calendar") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_calendar_event.go b/esapi/api.xpack.ml.delete_calendar_event.go index 9ed408b10f..7c8a2b0850 100644 --- a/esapi/api.xpack.ml.delete_calendar_event.go +++ b/esapi/api.xpack.ml.delete_calendar_event.go @@ -33,7 +33,7 @@ func newMLDeleteCalendarEventFunc(t Transport) MLDeleteCalendarEvent { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLDeleteCalendarEventRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLDeleteCalendarEventRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_calendar_event") defer instrument.Close(ctx) } @@ -91,14 +91,14 @@ func (r MLDeleteCalendarEventRequest) Do(providedCtx context.Context, transport path.WriteString("calendars") path.WriteString("/") path.WriteString(r.CalendarID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "calendar_id", r.CalendarID) } path.WriteString("/") path.WriteString("events") path.WriteString("/") path.WriteString(r.EventID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "event_id", r.EventID) } @@ -122,7 +122,7 @@ func (r MLDeleteCalendarEventRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r MLDeleteCalendarEventRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_calendar_event") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_calendar_event") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_calendar_job.go b/esapi/api.xpack.ml.delete_calendar_job.go index db2e8fba08..6db42a84eb 100644 --- a/esapi/api.xpack.ml.delete_calendar_job.go +++ b/esapi/api.xpack.ml.delete_calendar_job.go @@ -33,7 +33,7 @@ func newMLDeleteCalendarJobFunc(t Transport) MLDeleteCalendarJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLDeleteCalendarJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLDeleteCalendarJobRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_calendar_job") defer instrument.Close(ctx) } @@ -91,14 +91,14 @@ func (r MLDeleteCalendarJobRequest) Do(providedCtx context.Context, transport Tr path.WriteString("calendars") path.WriteString("/") path.WriteString(r.CalendarID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "calendar_id", r.CalendarID) } path.WriteString("/") path.WriteString("jobs") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } @@ -122,7 +122,7 @@ func (r MLDeleteCalendarJobRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r MLDeleteCalendarJobRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_calendar_job") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_calendar_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_data_frame_analytics.go b/esapi/api.xpack.ml.delete_data_frame_analytics.go index 12cc247d86..901cbb0047 100644 --- a/esapi/api.xpack.ml.delete_data_frame_analytics.go +++ b/esapi/api.xpack.ml.delete_data_frame_analytics.go @@ -35,7 +35,7 @@ func newMLDeleteDataFrameAnalyticsFunc(t Transport) MLDeleteDataFrameAnalytics { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type MLDeleteDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r MLDeleteDataFrameAnalyticsRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_data_frame_analytics") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r MLDeleteDataFrameAnalyticsRequest) Do(providedCtx context.Context, trans path.WriteString("analytics") path.WriteString("/") path.WriteString(r.ID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ID) } @@ -129,7 +129,7 @@ func (r MLDeleteDataFrameAnalyticsRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,15 +159,15 @@ func (r MLDeleteDataFrameAnalyticsRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_data_frame_analytics") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_datafeed.go b/esapi/api.xpack.ml.delete_datafeed.go index 71a2e9d1d4..320fffc66a 100644 --- a/esapi/api.xpack.ml.delete_datafeed.go +++ b/esapi/api.xpack.ml.delete_datafeed.go @@ -34,7 +34,7 @@ func newMLDeleteDatafeedFunc(t Transport) MLDeleteDatafeed { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLDeleteDatafeedRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLDeleteDatafeedRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_datafeed") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r MLDeleteDatafeedRequest) Do(providedCtx context.Context, transport Trans path.WriteString("datafeeds") path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } @@ -121,7 +121,7 @@ func (r MLDeleteDatafeedRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r MLDeleteDatafeedRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_datafeed") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_datafeed") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_expired_data.go b/esapi/api.xpack.ml.delete_expired_data.go index 0a57c187bc..8a1ad07556 100644 --- a/esapi/api.xpack.ml.delete_expired_data.go +++ b/esapi/api.xpack.ml.delete_expired_data.go @@ -36,7 +36,7 @@ func newMLDeleteExpiredDataFunc(t Transport) MLDeleteExpiredData { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type MLDeleteExpiredDataRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r MLDeleteExpiredDataRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_expired_data") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MLDeleteExpiredDataRequest) Do(providedCtx context.Context, transport Tr if r.JobID != "" { path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } } @@ -132,7 +132,7 @@ func (r MLDeleteExpiredDataRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,18 +166,18 @@ func (r MLDeleteExpiredDataRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_expired_data") if reader := instrument.RecordRequestBody(ctx, "ml.delete_expired_data", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_expired_data") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_filter.go b/esapi/api.xpack.ml.delete_filter.go index a45dae5794..1bec4095f8 100644 --- a/esapi/api.xpack.ml.delete_filter.go +++ b/esapi/api.xpack.ml.delete_filter.go @@ -33,7 +33,7 @@ func newMLDeleteFilterFunc(t Transport) MLDeleteFilter { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type MLDeleteFilterRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r MLDeleteFilterRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_filter") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r MLDeleteFilterRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("filters") path.WriteString("/") path.WriteString(r.FilterID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "filter_id", r.FilterID) } @@ -114,7 +114,7 @@ func (r MLDeleteFilterRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r MLDeleteFilterRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_filter") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_filter") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_forecast.go b/esapi/api.xpack.ml.delete_forecast.go index 1c704655d3..fbd4a1cc60 100644 --- a/esapi/api.xpack.ml.delete_forecast.go +++ b/esapi/api.xpack.ml.delete_forecast.go @@ -35,7 +35,7 @@ func newMLDeleteForecastFunc(t Transport) MLDeleteForecast { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLDeleteForecastRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLDeleteForecastRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_forecast") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r MLDeleteForecastRequest) Do(providedCtx context.Context, transport Trans path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -104,7 +104,7 @@ func (r MLDeleteForecastRequest) Do(providedCtx context.Context, transport Trans if r.ForecastID != "" { path.WriteString("/") path.WriteString(r.ForecastID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "forecast_id", r.ForecastID) } } @@ -137,7 +137,7 @@ func (r MLDeleteForecastRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r MLDeleteForecastRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_forecast") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_forecast") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_job.go b/esapi/api.xpack.ml.delete_job.go index 9fb199586f..c83670baf2 100644 --- a/esapi/api.xpack.ml.delete_job.go +++ b/esapi/api.xpack.ml.delete_job.go @@ -34,7 +34,7 @@ func newMLDeleteJobFunc(t Transport) MLDeleteJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type MLDeleteJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r MLDeleteJobRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_job") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r MLDeleteJobRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } @@ -131,7 +131,7 @@ func (r MLDeleteJobRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -161,15 +161,15 @@ func (r MLDeleteJobRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_job") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_model_snapshot.go b/esapi/api.xpack.ml.delete_model_snapshot.go index 1f46361a73..c5100b8600 100644 --- a/esapi/api.xpack.ml.delete_model_snapshot.go +++ b/esapi/api.xpack.ml.delete_model_snapshot.go @@ -33,7 +33,7 @@ func newMLDeleteModelSnapshotFunc(t Transport) MLDeleteModelSnapshot { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLDeleteModelSnapshotRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLDeleteModelSnapshotRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_model_snapshot") defer instrument.Close(ctx) } @@ -91,14 +91,14 @@ func (r MLDeleteModelSnapshotRequest) Do(providedCtx context.Context, transport path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") path.WriteString("model_snapshots") path.WriteString("/") path.WriteString(r.SnapshotID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot_id", r.SnapshotID) } @@ -122,7 +122,7 @@ func (r MLDeleteModelSnapshotRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r MLDeleteModelSnapshotRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_model_snapshot") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_model_snapshot") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_trained_model.go b/esapi/api.xpack.ml.delete_trained_model.go index a475fd313c..228187d4f4 100644 --- a/esapi/api.xpack.ml.delete_trained_model.go +++ b/esapi/api.xpack.ml.delete_trained_model.go @@ -35,7 +35,7 @@ func newMLDeleteTrainedModelFunc(t Transport) MLDeleteTrainedModel { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type MLDeleteTrainedModelRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r MLDeleteTrainedModelRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_trained_model") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r MLDeleteTrainedModelRequest) Do(providedCtx context.Context, transport T path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } @@ -127,7 +127,7 @@ func (r MLDeleteTrainedModelRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r MLDeleteTrainedModelRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_trained_model") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_trained_model") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.delete_trained_model_alias.go b/esapi/api.xpack.ml.delete_trained_model_alias.go index df49d56479..5f19cc50b5 100644 --- a/esapi/api.xpack.ml.delete_trained_model_alias.go +++ b/esapi/api.xpack.ml.delete_trained_model_alias.go @@ -33,7 +33,7 @@ func newMLDeleteTrainedModelAliasFunc(t Transport) MLDeleteTrainedModelAlias { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLDeleteTrainedModelAliasRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLDeleteTrainedModelAliasRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.delete_trained_model_alias") defer instrument.Close(ctx) } @@ -91,14 +91,14 @@ func (r MLDeleteTrainedModelAliasRequest) Do(providedCtx context.Context, transp path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") path.WriteString("model_aliases") path.WriteString("/") path.WriteString(r.ModelAlias) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_alias", r.ModelAlias) } @@ -122,7 +122,7 @@ func (r MLDeleteTrainedModelAliasRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r MLDeleteTrainedModelAliasRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.delete_trained_model_alias") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.delete_trained_model_alias") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.estimate_model_memory.go b/esapi/api.xpack.ml.estimate_model_memory.go index 4ced05b8cd..2a17814543 100644 --- a/esapi/api.xpack.ml.estimate_model_memory.go +++ b/esapi/api.xpack.ml.estimate_model_memory.go @@ -34,7 +34,7 @@ func newMLEstimateModelMemoryFunc(t Transport) MLEstimateModelMemory { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLEstimateModelMemoryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLEstimateModelMemoryRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.estimate_model_memory") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r MLEstimateModelMemoryRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r MLEstimateModelMemoryRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.estimate_model_memory") if reader := instrument.RecordRequestBody(ctx, "ml.estimate_model_memory", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.estimate_model_memory") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.evaluate_data_frame.go b/esapi/api.xpack.ml.evaluate_data_frame.go index ca894b2ff6..615f4e1992 100644 --- a/esapi/api.xpack.ml.evaluate_data_frame.go +++ b/esapi/api.xpack.ml.evaluate_data_frame.go @@ -34,7 +34,7 @@ func newMLEvaluateDataFrameFunc(t Transport) MLEvaluateDataFrame { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLEvaluateDataFrameRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLEvaluateDataFrameRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.evaluate_data_frame") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r MLEvaluateDataFrameRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r MLEvaluateDataFrameRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.evaluate_data_frame") if reader := instrument.RecordRequestBody(ctx, "ml.evaluate_data_frame", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.evaluate_data_frame") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.explain_data_frame_analytics.go b/esapi/api.xpack.ml.explain_data_frame_analytics.go index db5e6d2dfd..f4ac30beff 100644 --- a/esapi/api.xpack.ml.explain_data_frame_analytics.go +++ b/esapi/api.xpack.ml.explain_data_frame_analytics.go @@ -34,7 +34,7 @@ func newMLExplainDataFrameAnalyticsFunc(t Transport) MLExplainDataFrameAnalytics } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLExplainDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLExplainDataFrameAnalyticsRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.explain_data_frame_analytics") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r MLExplainDataFrameAnalyticsRequest) Do(providedCtx context.Context, tran if r.DocumentID != "" { path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } } @@ -123,7 +123,7 @@ func (r MLExplainDataFrameAnalyticsRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,18 +157,18 @@ func (r MLExplainDataFrameAnalyticsRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.explain_data_frame_analytics") if reader := instrument.RecordRequestBody(ctx, "ml.explain_data_frame_analytics", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.explain_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.flush_job.go b/esapi/api.xpack.ml.flush_job.go index 9b6c59ac26..f1fa897396 100644 --- a/esapi/api.xpack.ml.flush_job.go +++ b/esapi/api.xpack.ml.flush_job.go @@ -35,7 +35,7 @@ func newMLFlushJobFunc(t Transport) MLFlushJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type MLFlushJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r MLFlushJobRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.flush_job") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r MLFlushJobRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -146,7 +146,7 @@ func (r MLFlushJobRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -180,18 +180,18 @@ func (r MLFlushJobRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.flush_job") if reader := instrument.RecordRequestBody(ctx, "ml.flush_job", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.flush_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.forecast.go b/esapi/api.xpack.ml.forecast.go index fdb797c0d6..f6e2fe490a 100644 --- a/esapi/api.xpack.ml.forecast.go +++ b/esapi/api.xpack.ml.forecast.go @@ -35,7 +35,7 @@ func newMLForecastFunc(t Transport) MLForecast { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type MLForecastRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r MLForecastRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.forecast") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r MLForecastRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -136,7 +136,7 @@ func (r MLForecastRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -170,18 +170,18 @@ func (r MLForecastRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.forecast") if reader := instrument.RecordRequestBody(ctx, "ml.forecast", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.forecast") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_buckets.go b/esapi/api.xpack.ml.get_buckets.go index a33f98d8c4..254e03a01b 100644 --- a/esapi/api.xpack.ml.get_buckets.go +++ b/esapi/api.xpack.ml.get_buckets.go @@ -36,7 +36,7 @@ func newMLGetBucketsFunc(t Transport) MLGetBuckets { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -76,7 +76,7 @@ type MLGetBucketsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -88,7 +88,7 @@ func (r MLGetBucketsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_buckets") defer instrument.Close(ctx) } @@ -106,7 +106,7 @@ func (r MLGetBucketsRequest) Do(providedCtx context.Context, transport Transport path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -116,7 +116,7 @@ func (r MLGetBucketsRequest) Do(providedCtx context.Context, transport Transport if r.Timestamp != "" { path.WriteString("/") path.WriteString(r.Timestamp) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "timestamp", r.Timestamp) } } @@ -177,7 +177,7 @@ func (r MLGetBucketsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -211,18 +211,18 @@ func (r MLGetBucketsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_buckets") if reader := instrument.RecordRequestBody(ctx, "ml.get_buckets", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_buckets") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_calendar_events.go b/esapi/api.xpack.ml.get_calendar_events.go index 4920076cc2..e6d6687ef7 100644 --- a/esapi/api.xpack.ml.get_calendar_events.go +++ b/esapi/api.xpack.ml.get_calendar_events.go @@ -35,7 +35,7 @@ func newMLGetCalendarEventsFunc(t Transport) MLGetCalendarEvents { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type MLGetCalendarEventsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r MLGetCalendarEventsRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_calendar_events") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r MLGetCalendarEventsRequest) Do(providedCtx context.Context, transport Tr path.WriteString("calendars") path.WriteString("/") path.WriteString(r.CalendarID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "calendar_id", r.CalendarID) } path.WriteString("/") @@ -144,7 +144,7 @@ func (r MLGetCalendarEventsRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -174,15 +174,15 @@ func (r MLGetCalendarEventsRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_calendar_events") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_calendar_events") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_calendars.go b/esapi/api.xpack.ml.get_calendars.go index 6230b0c1d1..c885975926 100644 --- a/esapi/api.xpack.ml.get_calendars.go +++ b/esapi/api.xpack.ml.get_calendars.go @@ -35,7 +35,7 @@ func newMLGetCalendarsFunc(t Transport) MLGetCalendars { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type MLGetCalendarsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r MLGetCalendarsRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_calendars") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r MLGetCalendarsRequest) Do(providedCtx context.Context, transport Transpo if r.CalendarID != "" { path.WriteString("/") path.WriteString(r.CalendarID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "calendar_id", r.CalendarID) } } @@ -131,7 +131,7 @@ func (r MLGetCalendarsRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -165,18 +165,18 @@ func (r MLGetCalendarsRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_calendars") if reader := instrument.RecordRequestBody(ctx, "ml.get_calendars", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_calendars") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_categories.go b/esapi/api.xpack.ml.get_categories.go index cf5b8e3b37..5e8805859e 100644 --- a/esapi/api.xpack.ml.get_categories.go +++ b/esapi/api.xpack.ml.get_categories.go @@ -35,7 +35,7 @@ func newMLGetCategoriesFunc(t Transport) MLGetCategories { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type MLGetCategoriesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r MLGetCategoriesRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_categories") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MLGetCategoriesRequest) Do(providedCtx context.Context, transport Transp path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -111,7 +111,7 @@ func (r MLGetCategoriesRequest) Do(providedCtx context.Context, transport Transp path.Grow(1 + len(value)) path.WriteString("/") path.WriteString(value) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "category_id", value) } } @@ -148,7 +148,7 @@ func (r MLGetCategoriesRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -182,18 +182,18 @@ func (r MLGetCategoriesRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_categories") if reader := instrument.RecordRequestBody(ctx, "ml.get_categories", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_categories") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_data_frame_analytics.go b/esapi/api.xpack.ml.get_data_frame_analytics.go index 0effff81c9..2c79900d23 100644 --- a/esapi/api.xpack.ml.get_data_frame_analytics.go +++ b/esapi/api.xpack.ml.get_data_frame_analytics.go @@ -34,7 +34,7 @@ func newMLGetDataFrameAnalyticsFunc(t Transport) MLGetDataFrameAnalytics { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLGetDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLGetDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_data_frame_analytics") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MLGetDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor if r.ID != "" { path.WriteString("/") path.WriteString(r.ID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ID) } } @@ -140,7 +140,7 @@ func (r MLGetDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -170,15 +170,15 @@ func (r MLGetDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_data_frame_analytics") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_data_frame_analytics_stats.go b/esapi/api.xpack.ml.get_data_frame_analytics_stats.go index 4cbd8dad8d..568692c0e4 100644 --- a/esapi/api.xpack.ml.get_data_frame_analytics_stats.go +++ b/esapi/api.xpack.ml.get_data_frame_analytics_stats.go @@ -34,7 +34,7 @@ func newMLGetDataFrameAnalyticsStatsFunc(t Transport) MLGetDataFrameAnalyticsSta } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLGetDataFrameAnalyticsStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLGetDataFrameAnalyticsStatsRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_data_frame_analytics_stats") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MLGetDataFrameAnalyticsStatsRequest) Do(providedCtx context.Context, tra if r.ID != "" { path.WriteString("/") path.WriteString(r.ID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ID) } } @@ -142,7 +142,7 @@ func (r MLGetDataFrameAnalyticsStatsRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -172,15 +172,15 @@ func (r MLGetDataFrameAnalyticsStatsRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_data_frame_analytics_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_data_frame_analytics_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_datafeed_stats.go b/esapi/api.xpack.ml.get_datafeed_stats.go index 782c6bfe27..46177506fd 100644 --- a/esapi/api.xpack.ml.get_datafeed_stats.go +++ b/esapi/api.xpack.ml.get_datafeed_stats.go @@ -34,7 +34,7 @@ func newMLGetDatafeedStatsFunc(t Transport) MLGetDatafeedStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLGetDatafeedStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLGetDatafeedStatsRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_datafeed_stats") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r MLGetDatafeedStatsRequest) Do(providedCtx context.Context, transport Tra if r.DatafeedID != "" { path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } } @@ -125,7 +125,7 @@ func (r MLGetDatafeedStatsRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,15 +155,15 @@ func (r MLGetDatafeedStatsRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_datafeed_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_datafeed_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_datafeeds.go b/esapi/api.xpack.ml.get_datafeeds.go index 14fe1e5a01..2b7080d680 100644 --- a/esapi/api.xpack.ml.get_datafeeds.go +++ b/esapi/api.xpack.ml.get_datafeeds.go @@ -34,7 +34,7 @@ func newMLGetDatafeedsFunc(t Transport) MLGetDatafeeds { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type MLGetDatafeedsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r MLGetDatafeedsRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_datafeeds") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r MLGetDatafeedsRequest) Do(providedCtx context.Context, transport Transpo if r.DatafeedID != "" { path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } } @@ -128,7 +128,7 @@ func (r MLGetDatafeedsRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,15 +158,15 @@ func (r MLGetDatafeedsRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_datafeeds") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_datafeeds") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_filters.go b/esapi/api.xpack.ml.get_filters.go index b646f9a8b0..2ed789edc0 100644 --- a/esapi/api.xpack.ml.get_filters.go +++ b/esapi/api.xpack.ml.get_filters.go @@ -34,7 +34,7 @@ func newMLGetFiltersFunc(t Transport) MLGetFilters { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type MLGetFiltersRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r MLGetFiltersRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_filters") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r MLGetFiltersRequest) Do(providedCtx context.Context, transport Transport if r.FilterID != "" { path.WriteString("/") path.WriteString(r.FilterID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "filter_id", r.FilterID) } } @@ -128,7 +128,7 @@ func (r MLGetFiltersRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,15 +158,15 @@ func (r MLGetFiltersRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_filters") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_filters") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_influencers.go b/esapi/api.xpack.ml.get_influencers.go index 8e7e2d608f..125321ac55 100644 --- a/esapi/api.xpack.ml.get_influencers.go +++ b/esapi/api.xpack.ml.get_influencers.go @@ -36,7 +36,7 @@ func newMLGetInfluencersFunc(t Transport) MLGetInfluencers { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type MLGetInfluencersRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r MLGetInfluencersRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_influencers") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r MLGetInfluencersRequest) Do(providedCtx context.Context, transport Trans path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -164,7 +164,7 @@ func (r MLGetInfluencersRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -198,18 +198,18 @@ func (r MLGetInfluencersRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_influencers") if reader := instrument.RecordRequestBody(ctx, "ml.get_influencers", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_influencers") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_job_stats.go b/esapi/api.xpack.ml.get_job_stats.go index 41a7c7008d..f6b248a3e2 100644 --- a/esapi/api.xpack.ml.get_job_stats.go +++ b/esapi/api.xpack.ml.get_job_stats.go @@ -34,7 +34,7 @@ func newMLGetJobStatsFunc(t Transport) MLGetJobStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLGetJobStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLGetJobStatsRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_job_stats") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r MLGetJobStatsRequest) Do(providedCtx context.Context, transport Transpor if r.JobID != "" { path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } } @@ -125,7 +125,7 @@ func (r MLGetJobStatsRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,15 +155,15 @@ func (r MLGetJobStatsRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_job_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_job_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_jobs.go b/esapi/api.xpack.ml.get_jobs.go index 4ee3e71e3a..4f6d1c68fb 100644 --- a/esapi/api.xpack.ml.get_jobs.go +++ b/esapi/api.xpack.ml.get_jobs.go @@ -34,7 +34,7 @@ func newMLGetJobsFunc(t Transport) MLGetJobs { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type MLGetJobsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r MLGetJobsRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_jobs") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r MLGetJobsRequest) Do(providedCtx context.Context, transport Transport) ( if r.JobID != "" { path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } } @@ -128,7 +128,7 @@ func (r MLGetJobsRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,15 +158,15 @@ func (r MLGetJobsRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_jobs") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_jobs") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_memory_stats.go b/esapi/api.xpack.ml.get_memory_stats.go index 67444d010c..ef687b59c0 100644 --- a/esapi/api.xpack.ml.get_memory_stats.go +++ b/esapi/api.xpack.ml.get_memory_stats.go @@ -34,7 +34,7 @@ func newMLGetMemoryStatsFunc(t Transport) MLGetMemoryStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type MLGetMemoryStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r MLGetMemoryStatsRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_memory_stats") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r MLGetMemoryStatsRequest) Do(providedCtx context.Context, transport Trans if r.NodeID != "" { path.WriteString("/") path.WriteString(r.NodeID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", r.NodeID) } } @@ -130,7 +130,7 @@ func (r MLGetMemoryStatsRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,15 +160,15 @@ func (r MLGetMemoryStatsRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_memory_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_memory_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_model_snapshot_upgrade_stats.go b/esapi/api.xpack.ml.get_model_snapshot_upgrade_stats.go index 75da22fb2f..08924ca3f5 100644 --- a/esapi/api.xpack.ml.get_model_snapshot_upgrade_stats.go +++ b/esapi/api.xpack.ml.get_model_snapshot_upgrade_stats.go @@ -34,7 +34,7 @@ func newMLGetModelSnapshotUpgradeStatsFunc(t Transport) MLGetModelSnapshotUpgrad } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type MLGetModelSnapshotUpgradeStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r MLGetModelSnapshotUpgradeStatsRequest) Do(providedCtx context.Context, t ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_model_snapshot_upgrade_stats") defer instrument.Close(ctx) } @@ -94,14 +94,14 @@ func (r MLGetModelSnapshotUpgradeStatsRequest) Do(providedCtx context.Context, t path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") path.WriteString("model_snapshots") path.WriteString("/") path.WriteString(r.SnapshotID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot_id", r.SnapshotID) } path.WriteString("/") @@ -133,7 +133,7 @@ func (r MLGetModelSnapshotUpgradeStatsRequest) Do(providedCtx context.Context, t req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -163,15 +163,15 @@ func (r MLGetModelSnapshotUpgradeStatsRequest) Do(providedCtx context.Context, t req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_model_snapshot_upgrade_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_model_snapshot_upgrade_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_model_snapshots.go b/esapi/api.xpack.ml.get_model_snapshots.go index 66a10758ae..7383ca3981 100644 --- a/esapi/api.xpack.ml.get_model_snapshots.go +++ b/esapi/api.xpack.ml.get_model_snapshots.go @@ -36,7 +36,7 @@ func newMLGetModelSnapshotsFunc(t Transport) MLGetModelSnapshots { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -73,7 +73,7 @@ type MLGetModelSnapshotsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -85,7 +85,7 @@ func (r MLGetModelSnapshotsRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_model_snapshots") defer instrument.Close(ctx) } @@ -103,7 +103,7 @@ func (r MLGetModelSnapshotsRequest) Do(providedCtx context.Context, transport Tr path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -111,7 +111,7 @@ func (r MLGetModelSnapshotsRequest) Do(providedCtx context.Context, transport Tr if r.SnapshotID != "" { path.WriteString("/") path.WriteString(r.SnapshotID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot_id", r.SnapshotID) } } @@ -160,7 +160,7 @@ func (r MLGetModelSnapshotsRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -194,18 +194,18 @@ func (r MLGetModelSnapshotsRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_model_snapshots") if reader := instrument.RecordRequestBody(ctx, "ml.get_model_snapshots", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_model_snapshots") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_overall_buckets.go b/esapi/api.xpack.ml.get_overall_buckets.go index 0ac788288f..fd93345f21 100644 --- a/esapi/api.xpack.ml.get_overall_buckets.go +++ b/esapi/api.xpack.ml.get_overall_buckets.go @@ -36,7 +36,7 @@ func newMLGetOverallBucketsFunc(t Transport) MLGetOverallBuckets { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -73,7 +73,7 @@ type MLGetOverallBucketsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -85,7 +85,7 @@ func (r MLGetOverallBucketsRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_overall_buckets") defer instrument.Close(ctx) } @@ -103,7 +103,7 @@ func (r MLGetOverallBucketsRequest) Do(providedCtx context.Context, transport Tr path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -159,7 +159,7 @@ func (r MLGetOverallBucketsRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -193,18 +193,18 @@ func (r MLGetOverallBucketsRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_overall_buckets") if reader := instrument.RecordRequestBody(ctx, "ml.get_overall_buckets", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_overall_buckets") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_records.go b/esapi/api.xpack.ml.get_records.go index 3b34de6fa9..edcccc31b4 100644 --- a/esapi/api.xpack.ml.get_records.go +++ b/esapi/api.xpack.ml.get_records.go @@ -36,7 +36,7 @@ func newMLGetRecordsFunc(t Transport) MLGetRecords { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type MLGetRecordsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r MLGetRecordsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_records") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r MLGetRecordsRequest) Do(providedCtx context.Context, transport Transport path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -164,7 +164,7 @@ func (r MLGetRecordsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -198,18 +198,18 @@ func (r MLGetRecordsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_records") if reader := instrument.RecordRequestBody(ctx, "ml.get_records", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_records") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_trained_models.go b/esapi/api.xpack.ml.get_trained_models.go index cb3a0f885d..d774dc8dfe 100644 --- a/esapi/api.xpack.ml.get_trained_models.go +++ b/esapi/api.xpack.ml.get_trained_models.go @@ -34,7 +34,7 @@ func newMLGetTrainedModelsFunc(t Transport) MLGetTrainedModels { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type MLGetTrainedModelsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r MLGetTrainedModelsRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_trained_models") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r MLGetTrainedModelsRequest) Do(providedCtx context.Context, transport Tra if r.ModelID != "" { path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } } @@ -158,7 +158,7 @@ func (r MLGetTrainedModelsRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -188,15 +188,15 @@ func (r MLGetTrainedModelsRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_trained_models") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_trained_models") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.get_trained_models_stats.go b/esapi/api.xpack.ml.get_trained_models_stats.go index e4295b0cad..56c33df16a 100644 --- a/esapi/api.xpack.ml.get_trained_models_stats.go +++ b/esapi/api.xpack.ml.get_trained_models_stats.go @@ -34,7 +34,7 @@ func newMLGetTrainedModelsStatsFunc(t Transport) MLGetTrainedModelsStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type MLGetTrainedModelsStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r MLGetTrainedModelsStatsRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.get_trained_models_stats") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r MLGetTrainedModelsStatsRequest) Do(providedCtx context.Context, transpor if r.ModelID != "" { path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } } @@ -135,7 +135,7 @@ func (r MLGetTrainedModelsStatsRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -165,15 +165,15 @@ func (r MLGetTrainedModelsStatsRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.get_trained_models_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.get_trained_models_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.infer_trained_model.go b/esapi/api.xpack.ml.infer_trained_model.go index 898fe99934..ddf2076d35 100644 --- a/esapi/api.xpack.ml.infer_trained_model.go +++ b/esapi/api.xpack.ml.infer_trained_model.go @@ -35,7 +35,7 @@ func newMLInferTrainedModelFunc(t Transport) MLInferTrainedModel { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLInferTrainedModelRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLInferTrainedModelRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.infer_trained_model") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r MLInferTrainedModelRequest) Do(providedCtx context.Context, transport Tr path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") @@ -128,7 +128,7 @@ func (r MLInferTrainedModelRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,18 +162,18 @@ func (r MLInferTrainedModelRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.infer_trained_model") if reader := instrument.RecordRequestBody(ctx, "ml.infer_trained_model", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.infer_trained_model") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.info.go b/esapi/api.xpack.ml.info.go index bff7694e46..328a7ff83d 100644 --- a/esapi/api.xpack.ml.info.go +++ b/esapi/api.xpack.ml.info.go @@ -33,7 +33,7 @@ func newMLInfoFunc(t Transport) MLInfo { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type MLInfoRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r MLInfoRequest) Do(providedCtx context.Context, transport Transport) (*Re ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.info") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r MLInfoRequest) Do(providedCtx context.Context, transport Transport) (*Re req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r MLInfoRequest) Do(providedCtx context.Context, transport Transport) (*Re req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.info") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.info") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.open_job.go b/esapi/api.xpack.ml.open_job.go index 3e3a06c16e..7c772af844 100644 --- a/esapi/api.xpack.ml.open_job.go +++ b/esapi/api.xpack.ml.open_job.go @@ -34,7 +34,7 @@ func newMLOpenJobFunc(t Transport) MLOpenJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLOpenJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLOpenJobRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.open_job") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r MLOpenJobRequest) Do(providedCtx context.Context, transport Transport) ( path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r MLOpenJobRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r MLOpenJobRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.open_job") if reader := instrument.RecordRequestBody(ctx, "ml.open_job", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.open_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.post_calendar_events.go b/esapi/api.xpack.ml.post_calendar_events.go index 273d58733f..9f9e16dda7 100644 --- a/esapi/api.xpack.ml.post_calendar_events.go +++ b/esapi/api.xpack.ml.post_calendar_events.go @@ -34,7 +34,7 @@ func newMLPostCalendarEventsFunc(t Transport) MLPostCalendarEvents { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLPostCalendarEventsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLPostCalendarEventsRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.post_calendar_events") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r MLPostCalendarEventsRequest) Do(providedCtx context.Context, transport T path.WriteString("calendars") path.WriteString("/") path.WriteString(r.CalendarID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "calendar_id", r.CalendarID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r MLPostCalendarEventsRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r MLPostCalendarEventsRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.post_calendar_events") if reader := instrument.RecordRequestBody(ctx, "ml.post_calendar_events", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.post_calendar_events") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.post_data.go b/esapi/api.xpack.ml.post_data.go index 33a760d129..ce9571d1d6 100644 --- a/esapi/api.xpack.ml.post_data.go +++ b/esapi/api.xpack.ml.post_data.go @@ -34,7 +34,7 @@ func newMLPostDataFunc(t Transport) MLPostData { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLPostDataRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLPostDataRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.post_data") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r MLPostDataRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -130,7 +130,7 @@ func (r MLPostDataRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -164,18 +164,18 @@ func (r MLPostDataRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.post_data") if reader := instrument.RecordRequestBody(ctx, "ml.post_data", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.post_data") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.preview_data_frame_analytics.go b/esapi/api.xpack.ml.preview_data_frame_analytics.go index 44057f6fd6..2bc7d5ce18 100644 --- a/esapi/api.xpack.ml.preview_data_frame_analytics.go +++ b/esapi/api.xpack.ml.preview_data_frame_analytics.go @@ -34,7 +34,7 @@ func newMLPreviewDataFrameAnalyticsFunc(t Transport) MLPreviewDataFrameAnalytics } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLPreviewDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLPreviewDataFrameAnalyticsRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.preview_data_frame_analytics") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r MLPreviewDataFrameAnalyticsRequest) Do(providedCtx context.Context, tran if r.DocumentID != "" { path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } } @@ -123,7 +123,7 @@ func (r MLPreviewDataFrameAnalyticsRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,18 +157,18 @@ func (r MLPreviewDataFrameAnalyticsRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.preview_data_frame_analytics") if reader := instrument.RecordRequestBody(ctx, "ml.preview_data_frame_analytics", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.preview_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.preview_datafeed.go b/esapi/api.xpack.ml.preview_datafeed.go index 054b02c5c7..9581e4cd91 100644 --- a/esapi/api.xpack.ml.preview_datafeed.go +++ b/esapi/api.xpack.ml.preview_datafeed.go @@ -34,7 +34,7 @@ func newMLPreviewDatafeedFunc(t Transport) MLPreviewDatafeed { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLPreviewDatafeedRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLPreviewDatafeedRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.preview_datafeed") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r MLPreviewDatafeedRequest) Do(providedCtx context.Context, transport Tran if r.DatafeedID != "" { path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } } @@ -132,7 +132,7 @@ func (r MLPreviewDatafeedRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,18 +166,18 @@ func (r MLPreviewDatafeedRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.preview_datafeed") if reader := instrument.RecordRequestBody(ctx, "ml.preview_datafeed", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.preview_datafeed") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_calendar.go b/esapi/api.xpack.ml.put_calendar.go index bacbf0fedb..a8a20ce862 100644 --- a/esapi/api.xpack.ml.put_calendar.go +++ b/esapi/api.xpack.ml.put_calendar.go @@ -34,7 +34,7 @@ func newMLPutCalendarFunc(t Transport) MLPutCalendar { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLPutCalendarRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLPutCalendarRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_calendar") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r MLPutCalendarRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("calendars") path.WriteString("/") path.WriteString(r.CalendarID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "calendar_id", r.CalendarID) } @@ -117,7 +117,7 @@ func (r MLPutCalendarRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r MLPutCalendarRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_calendar") if reader := instrument.RecordRequestBody(ctx, "ml.put_calendar", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_calendar") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_calendar_job.go b/esapi/api.xpack.ml.put_calendar_job.go index afbb744207..ad91eb9aeb 100644 --- a/esapi/api.xpack.ml.put_calendar_job.go +++ b/esapi/api.xpack.ml.put_calendar_job.go @@ -33,7 +33,7 @@ func newMLPutCalendarJobFunc(t Transport) MLPutCalendarJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLPutCalendarJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLPutCalendarJobRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_calendar_job") defer instrument.Close(ctx) } @@ -91,14 +91,14 @@ func (r MLPutCalendarJobRequest) Do(providedCtx context.Context, transport Trans path.WriteString("calendars") path.WriteString("/") path.WriteString(r.CalendarID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "calendar_id", r.CalendarID) } path.WriteString("/") path.WriteString("jobs") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } @@ -122,7 +122,7 @@ func (r MLPutCalendarJobRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r MLPutCalendarJobRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_calendar_job") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_calendar_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_data_frame_analytics.go b/esapi/api.xpack.ml.put_data_frame_analytics.go index 881bdcc5e8..563a61d87f 100644 --- a/esapi/api.xpack.ml.put_data_frame_analytics.go +++ b/esapi/api.xpack.ml.put_data_frame_analytics.go @@ -34,7 +34,7 @@ func newMLPutDataFrameAnalyticsFunc(t Transport) MLPutDataFrameAnalytics { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLPutDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLPutDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_data_frame_analytics") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r MLPutDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor path.WriteString("analytics") path.WriteString("/") path.WriteString(r.ID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ID) } @@ -119,7 +119,7 @@ func (r MLPutDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r MLPutDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_data_frame_analytics") if reader := instrument.RecordRequestBody(ctx, "ml.put_data_frame_analytics", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_datafeed.go b/esapi/api.xpack.ml.put_datafeed.go index e00497cc91..2901e6e34e 100644 --- a/esapi/api.xpack.ml.put_datafeed.go +++ b/esapi/api.xpack.ml.put_datafeed.go @@ -35,7 +35,7 @@ func newMLPutDatafeedFunc(t Transport) MLPutDatafeed { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type MLPutDatafeedRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r MLPutDatafeedRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_datafeed") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MLPutDatafeedRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("datafeeds") path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } @@ -139,7 +139,7 @@ func (r MLPutDatafeedRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r MLPutDatafeedRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_datafeed") if reader := instrument.RecordRequestBody(ctx, "ml.put_datafeed", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_datafeed") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_filter.go b/esapi/api.xpack.ml.put_filter.go index 9756b4dbe7..f8dfb2f15a 100644 --- a/esapi/api.xpack.ml.put_filter.go +++ b/esapi/api.xpack.ml.put_filter.go @@ -34,7 +34,7 @@ func newMLPutFilterFunc(t Transport) MLPutFilter { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLPutFilterRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLPutFilterRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_filter") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r MLPutFilterRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("filters") path.WriteString("/") path.WriteString(r.FilterID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "filter_id", r.FilterID) } @@ -117,7 +117,7 @@ func (r MLPutFilterRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r MLPutFilterRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_filter") if reader := instrument.RecordRequestBody(ctx, "ml.put_filter", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_filter") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_job.go b/esapi/api.xpack.ml.put_job.go index 37be91e5e0..3d71ae3591 100644 --- a/esapi/api.xpack.ml.put_job.go +++ b/esapi/api.xpack.ml.put_job.go @@ -35,7 +35,7 @@ func newMLPutJobFunc(t Transport) MLPutJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type MLPutJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r MLPutJobRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_job") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MLPutJobRequest) Do(providedCtx context.Context, transport Transport) (* path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } @@ -139,7 +139,7 @@ func (r MLPutJobRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r MLPutJobRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_job") if reader := instrument.RecordRequestBody(ctx, "ml.put_job", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_trained_model.go b/esapi/api.xpack.ml.put_trained_model.go index fc8fda4850..7e511ece45 100644 --- a/esapi/api.xpack.ml.put_trained_model.go +++ b/esapi/api.xpack.ml.put_trained_model.go @@ -35,7 +35,7 @@ func newMLPutTrainedModelFunc(t Transport) MLPutTrainedModel { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type MLPutTrainedModelRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r MLPutTrainedModelRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_trained_model") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r MLPutTrainedModelRequest) Do(providedCtx context.Context, transport Tran path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } @@ -129,7 +129,7 @@ func (r MLPutTrainedModelRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -163,18 +163,18 @@ func (r MLPutTrainedModelRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_trained_model") if reader := instrument.RecordRequestBody(ctx, "ml.put_trained_model", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_trained_model") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_trained_model_alias.go b/esapi/api.xpack.ml.put_trained_model_alias.go index c7a18ba8a5..d7a7ec4e4e 100644 --- a/esapi/api.xpack.ml.put_trained_model_alias.go +++ b/esapi/api.xpack.ml.put_trained_model_alias.go @@ -34,7 +34,7 @@ func newMLPutTrainedModelAliasFunc(t Transport) MLPutTrainedModelAlias { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type MLPutTrainedModelAliasRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r MLPutTrainedModelAliasRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_trained_model_alias") defer instrument.Close(ctx) } @@ -94,14 +94,14 @@ func (r MLPutTrainedModelAliasRequest) Do(providedCtx context.Context, transport path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") path.WriteString("model_aliases") path.WriteString("/") path.WriteString(r.ModelAlias) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_alias", r.ModelAlias) } @@ -129,7 +129,7 @@ func (r MLPutTrainedModelAliasRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -159,15 +159,15 @@ func (r MLPutTrainedModelAliasRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_trained_model_alias") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_trained_model_alias") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_trained_model_definition_part.go b/esapi/api.xpack.ml.put_trained_model_definition_part.go index 16de9e7523..4f874257e1 100644 --- a/esapi/api.xpack.ml.put_trained_model_definition_part.go +++ b/esapi/api.xpack.ml.put_trained_model_definition_part.go @@ -36,7 +36,7 @@ func newMLPutTrainedModelDefinitionPartFunc(t Transport) MLPutTrainedModelDefini } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLPutTrainedModelDefinitionPartRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLPutTrainedModelDefinitionPartRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_trained_model_definition_part") defer instrument.Close(ctx) } @@ -100,14 +100,14 @@ func (r MLPutTrainedModelDefinitionPartRequest) Do(providedCtx context.Context, path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") path.WriteString("definition") path.WriteString("/") path.WriteString(strconv.Itoa(*r.Part)) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "part", strconv.Itoa(*r.Part)) } @@ -131,7 +131,7 @@ func (r MLPutTrainedModelDefinitionPartRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -165,18 +165,18 @@ func (r MLPutTrainedModelDefinitionPartRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_trained_model_definition_part") if reader := instrument.RecordRequestBody(ctx, "ml.put_trained_model_definition_part", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_trained_model_definition_part") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.put_trained_model_vocabulary.go b/esapi/api.xpack.ml.put_trained_model_vocabulary.go index 31dd4c54db..a469bda159 100644 --- a/esapi/api.xpack.ml.put_trained_model_vocabulary.go +++ b/esapi/api.xpack.ml.put_trained_model_vocabulary.go @@ -34,7 +34,7 @@ func newMLPutTrainedModelVocabularyFunc(t Transport) MLPutTrainedModelVocabulary } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLPutTrainedModelVocabularyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLPutTrainedModelVocabularyRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.put_trained_model_vocabulary") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r MLPutTrainedModelVocabularyRequest) Do(providedCtx context.Context, tran path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r MLPutTrainedModelVocabularyRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r MLPutTrainedModelVocabularyRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.put_trained_model_vocabulary") if reader := instrument.RecordRequestBody(ctx, "ml.put_trained_model_vocabulary", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.put_trained_model_vocabulary") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.reset_job.go b/esapi/api.xpack.ml.reset_job.go index 2688f491dc..f007fe1fa7 100644 --- a/esapi/api.xpack.ml.reset_job.go +++ b/esapi/api.xpack.ml.reset_job.go @@ -34,7 +34,7 @@ func newMLResetJobFunc(t Transport) MLResetJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type MLResetJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r MLResetJobRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.reset_job") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r MLResetJobRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -128,7 +128,7 @@ func (r MLResetJobRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,15 +158,15 @@ func (r MLResetJobRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.reset_job") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.reset_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.revert_model_snapshot.go b/esapi/api.xpack.ml.revert_model_snapshot.go index 845cb5e420..196ea26344 100644 --- a/esapi/api.xpack.ml.revert_model_snapshot.go +++ b/esapi/api.xpack.ml.revert_model_snapshot.go @@ -35,7 +35,7 @@ func newMLRevertModelSnapshotFunc(t Transport) MLRevertModelSnapshot { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type MLRevertModelSnapshotRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r MLRevertModelSnapshotRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.revert_model_snapshot") defer instrument.Close(ctx) } @@ -97,14 +97,14 @@ func (r MLRevertModelSnapshotRequest) Do(providedCtx context.Context, transport path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") path.WriteString("model_snapshots") path.WriteString("/") path.WriteString(r.SnapshotID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot_id", r.SnapshotID) } path.WriteString("/") @@ -134,7 +134,7 @@ func (r MLRevertModelSnapshotRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -168,18 +168,18 @@ func (r MLRevertModelSnapshotRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.revert_model_snapshot") if reader := instrument.RecordRequestBody(ctx, "ml.revert_model_snapshot", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.revert_model_snapshot") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.set_upgrade_mode.go b/esapi/api.xpack.ml.set_upgrade_mode.go index e2970a3dc9..b3c9595ee2 100644 --- a/esapi/api.xpack.ml.set_upgrade_mode.go +++ b/esapi/api.xpack.ml.set_upgrade_mode.go @@ -35,7 +35,7 @@ func newMLSetUpgradeModeFunc(t Transport) MLSetUpgradeMode { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLSetUpgradeModeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLSetUpgradeModeRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.set_upgrade_mode") defer instrument.Close(ctx) } @@ -117,7 +117,7 @@ func (r MLSetUpgradeModeRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,15 +147,15 @@ func (r MLSetUpgradeModeRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.set_upgrade_mode") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.set_upgrade_mode") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.start_data_frame_analytics.go b/esapi/api.xpack.ml.start_data_frame_analytics.go index fbd6a745bb..483ab70559 100644 --- a/esapi/api.xpack.ml.start_data_frame_analytics.go +++ b/esapi/api.xpack.ml.start_data_frame_analytics.go @@ -35,7 +35,7 @@ func newMLStartDataFrameAnalyticsFunc(t Transport) MLStartDataFrameAnalytics { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLStartDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLStartDataFrameAnalyticsRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.start_data_frame_analytics") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r MLStartDataFrameAnalyticsRequest) Do(providedCtx context.Context, transp path.WriteString("analytics") path.WriteString("/") path.WriteString(r.ID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ID) } path.WriteString("/") @@ -128,7 +128,7 @@ func (r MLStartDataFrameAnalyticsRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,18 +162,18 @@ func (r MLStartDataFrameAnalyticsRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.start_data_frame_analytics") if reader := instrument.RecordRequestBody(ctx, "ml.start_data_frame_analytics", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.start_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.start_datafeed.go b/esapi/api.xpack.ml.start_datafeed.go index 611d60f1c4..db70393896 100644 --- a/esapi/api.xpack.ml.start_datafeed.go +++ b/esapi/api.xpack.ml.start_datafeed.go @@ -35,7 +35,7 @@ func newMLStartDatafeedFunc(t Transport) MLStartDatafeed { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type MLStartDatafeedRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r MLStartDatafeedRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.start_datafeed") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r MLStartDatafeedRequest) Do(providedCtx context.Context, transport Transp path.WriteString("datafeeds") path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } path.WriteString("/") @@ -136,7 +136,7 @@ func (r MLStartDatafeedRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -170,18 +170,18 @@ func (r MLStartDatafeedRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.start_datafeed") if reader := instrument.RecordRequestBody(ctx, "ml.start_datafeed", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.start_datafeed") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.start_trained_model_deployment.go b/esapi/api.xpack.ml.start_trained_model_deployment.go index bd4065fe98..7dc97dfd5b 100644 --- a/esapi/api.xpack.ml.start_trained_model_deployment.go +++ b/esapi/api.xpack.ml.start_trained_model_deployment.go @@ -36,7 +36,7 @@ func newMLStartTrainedModelDeploymentFunc(t Transport) MLStartTrainedModelDeploy } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -74,7 +74,7 @@ type MLStartTrainedModelDeploymentRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -86,7 +86,7 @@ func (r MLStartTrainedModelDeploymentRequest) Do(providedCtx context.Context, tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.start_trained_model_deployment") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r MLStartTrainedModelDeploymentRequest) Do(providedCtx context.Context, tr path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") @@ -164,7 +164,7 @@ func (r MLStartTrainedModelDeploymentRequest) Do(providedCtx context.Context, tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -198,18 +198,18 @@ func (r MLStartTrainedModelDeploymentRequest) Do(providedCtx context.Context, tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.start_trained_model_deployment") if reader := instrument.RecordRequestBody(ctx, "ml.start_trained_model_deployment", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.start_trained_model_deployment") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.stop_data_frame_analytics.go b/esapi/api.xpack.ml.stop_data_frame_analytics.go index e877b125df..646e2dbf6d 100644 --- a/esapi/api.xpack.ml.stop_data_frame_analytics.go +++ b/esapi/api.xpack.ml.stop_data_frame_analytics.go @@ -36,7 +36,7 @@ func newMLStopDataFrameAnalyticsFunc(t Transport) MLStopDataFrameAnalytics { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type MLStopDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r MLStopDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.stop_data_frame_analytics") defer instrument.Close(ctx) } @@ -101,7 +101,7 @@ func (r MLStopDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpo path.WriteString("analytics") path.WriteString("/") path.WriteString(r.ID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.ID) } path.WriteString("/") @@ -139,7 +139,7 @@ func (r MLStopDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r MLStopDataFrameAnalyticsRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.stop_data_frame_analytics") if reader := instrument.RecordRequestBody(ctx, "ml.stop_data_frame_analytics", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.stop_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.stop_datafeed.go b/esapi/api.xpack.ml.stop_datafeed.go index 49d9a87e60..52041dcde0 100644 --- a/esapi/api.xpack.ml.stop_datafeed.go +++ b/esapi/api.xpack.ml.stop_datafeed.go @@ -36,7 +36,7 @@ func newMLStopDatafeedFunc(t Transport) MLStopDatafeed { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type MLStopDatafeedRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r MLStopDatafeedRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.stop_datafeed") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r MLStopDatafeedRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("datafeeds") path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } path.WriteString("/") @@ -142,7 +142,7 @@ func (r MLStopDatafeedRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -176,18 +176,18 @@ func (r MLStopDatafeedRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.stop_datafeed") if reader := instrument.RecordRequestBody(ctx, "ml.stop_datafeed", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.stop_datafeed") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.stop_trained_model_deployment.go b/esapi/api.xpack.ml.stop_trained_model_deployment.go index 2e1fff1440..fc69851f69 100644 --- a/esapi/api.xpack.ml.stop_trained_model_deployment.go +++ b/esapi/api.xpack.ml.stop_trained_model_deployment.go @@ -35,7 +35,7 @@ func newMLStopTrainedModelDeploymentFunc(t Transport) MLStopTrainedModelDeployme } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type MLStopTrainedModelDeploymentRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r MLStopTrainedModelDeploymentRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.stop_trained_model_deployment") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r MLStopTrainedModelDeploymentRequest) Do(providedCtx context.Context, tra path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") @@ -133,7 +133,7 @@ func (r MLStopTrainedModelDeploymentRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,18 +167,18 @@ func (r MLStopTrainedModelDeploymentRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.stop_trained_model_deployment") if reader := instrument.RecordRequestBody(ctx, "ml.stop_trained_model_deployment", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.stop_trained_model_deployment") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.update_data_frame_analytics.go b/esapi/api.xpack.ml.update_data_frame_analytics.go index 8081eaccfc..05715b0531 100644 --- a/esapi/api.xpack.ml.update_data_frame_analytics.go +++ b/esapi/api.xpack.ml.update_data_frame_analytics.go @@ -34,7 +34,7 @@ func newMLUpdateDataFrameAnalyticsFunc(t Transport) MLUpdateDataFrameAnalytics { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLUpdateDataFrameAnalyticsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLUpdateDataFrameAnalyticsRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.update_data_frame_analytics") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r MLUpdateDataFrameAnalyticsRequest) Do(providedCtx context.Context, trans path.WriteString("analytics") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r MLUpdateDataFrameAnalyticsRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r MLUpdateDataFrameAnalyticsRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.update_data_frame_analytics") if reader := instrument.RecordRequestBody(ctx, "ml.update_data_frame_analytics", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.update_data_frame_analytics") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.update_datafeed.go b/esapi/api.xpack.ml.update_datafeed.go index 2baa6999bc..79958b8d73 100644 --- a/esapi/api.xpack.ml.update_datafeed.go +++ b/esapi/api.xpack.ml.update_datafeed.go @@ -35,7 +35,7 @@ func newMLUpdateDatafeedFunc(t Transport) MLUpdateDatafeed { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type MLUpdateDatafeedRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r MLUpdateDatafeedRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.update_datafeed") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r MLUpdateDatafeedRequest) Do(providedCtx context.Context, transport Trans path.WriteString("datafeeds") path.WriteString("/") path.WriteString(r.DatafeedID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "datafeed_id", r.DatafeedID) } path.WriteString("/") @@ -141,7 +141,7 @@ func (r MLUpdateDatafeedRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -175,18 +175,18 @@ func (r MLUpdateDatafeedRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.update_datafeed") if reader := instrument.RecordRequestBody(ctx, "ml.update_datafeed", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.update_datafeed") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.update_filter.go b/esapi/api.xpack.ml.update_filter.go index ee5f901093..008c57fd25 100644 --- a/esapi/api.xpack.ml.update_filter.go +++ b/esapi/api.xpack.ml.update_filter.go @@ -34,7 +34,7 @@ func newMLUpdateFilterFunc(t Transport) MLUpdateFilter { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLUpdateFilterRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLUpdateFilterRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.update_filter") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r MLUpdateFilterRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("filters") path.WriteString("/") path.WriteString(r.FilterID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "filter_id", r.FilterID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r MLUpdateFilterRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r MLUpdateFilterRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.update_filter") if reader := instrument.RecordRequestBody(ctx, "ml.update_filter", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.update_filter") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.update_job.go b/esapi/api.xpack.ml.update_job.go index 781d4313a8..f92e9a6bc6 100644 --- a/esapi/api.xpack.ml.update_job.go +++ b/esapi/api.xpack.ml.update_job.go @@ -34,7 +34,7 @@ func newMLUpdateJobFunc(t Transport) MLUpdateJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type MLUpdateJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r MLUpdateJobRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.update_job") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r MLUpdateJobRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") @@ -119,7 +119,7 @@ func (r MLUpdateJobRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r MLUpdateJobRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.update_job") if reader := instrument.RecordRequestBody(ctx, "ml.update_job", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.update_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.update_model_snapshot.go b/esapi/api.xpack.ml.update_model_snapshot.go index 2d815b66ee..7347779b30 100644 --- a/esapi/api.xpack.ml.update_model_snapshot.go +++ b/esapi/api.xpack.ml.update_model_snapshot.go @@ -34,7 +34,7 @@ func newMLUpdateModelSnapshotFunc(t Transport) MLUpdateModelSnapshot { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type MLUpdateModelSnapshotRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r MLUpdateModelSnapshotRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.update_model_snapshot") defer instrument.Close(ctx) } @@ -94,14 +94,14 @@ func (r MLUpdateModelSnapshotRequest) Do(providedCtx context.Context, transport path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") path.WriteString("model_snapshots") path.WriteString("/") path.WriteString(r.SnapshotID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot_id", r.SnapshotID) } path.WriteString("/") @@ -127,7 +127,7 @@ func (r MLUpdateModelSnapshotRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -161,18 +161,18 @@ func (r MLUpdateModelSnapshotRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.update_model_snapshot") if reader := instrument.RecordRequestBody(ctx, "ml.update_model_snapshot", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.update_model_snapshot") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.update_trained_model_deployment.go b/esapi/api.xpack.ml.update_trained_model_deployment.go index 5ed61f3ec5..d455649cf3 100644 --- a/esapi/api.xpack.ml.update_trained_model_deployment.go +++ b/esapi/api.xpack.ml.update_trained_model_deployment.go @@ -35,7 +35,7 @@ func newMLUpdateTrainedModelDeploymentFunc(t Transport) MLUpdateTrainedModelDepl } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLUpdateTrainedModelDeploymentRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLUpdateTrainedModelDeploymentRequest) Do(providedCtx context.Context, t ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.update_trained_model_deployment") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r MLUpdateTrainedModelDeploymentRequest) Do(providedCtx context.Context, t path.WriteString("trained_models") path.WriteString("/") path.WriteString(r.ModelID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "model_id", r.ModelID) } path.WriteString("/") @@ -128,7 +128,7 @@ func (r MLUpdateTrainedModelDeploymentRequest) Do(providedCtx context.Context, t req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,18 +162,18 @@ func (r MLUpdateTrainedModelDeploymentRequest) Do(providedCtx context.Context, t req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.update_trained_model_deployment") if reader := instrument.RecordRequestBody(ctx, "ml.update_trained_model_deployment", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.update_trained_model_deployment") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.upgrade_job_snapshot.go b/esapi/api.xpack.ml.upgrade_job_snapshot.go index 12d8dccc12..3c00e11097 100644 --- a/esapi/api.xpack.ml.upgrade_job_snapshot.go +++ b/esapi/api.xpack.ml.upgrade_job_snapshot.go @@ -35,7 +35,7 @@ func newMLUpgradeJobSnapshotFunc(t Transport) MLUpgradeJobSnapshot { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type MLUpgradeJobSnapshotRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r MLUpgradeJobSnapshotRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.upgrade_job_snapshot") defer instrument.Close(ctx) } @@ -96,14 +96,14 @@ func (r MLUpgradeJobSnapshotRequest) Do(providedCtx context.Context, transport T path.WriteString("anomaly_detectors") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "job_id", r.JobID) } path.WriteString("/") path.WriteString("model_snapshots") path.WriteString("/") path.WriteString(r.SnapshotID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot_id", r.SnapshotID) } path.WriteString("/") @@ -137,7 +137,7 @@ func (r MLUpgradeJobSnapshotRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r MLUpgradeJobSnapshotRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.upgrade_job_snapshot") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.upgrade_job_snapshot") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.validate.go b/esapi/api.xpack.ml.validate.go index 55e501b56a..49ed97fd13 100644 --- a/esapi/api.xpack.ml.validate.go +++ b/esapi/api.xpack.ml.validate.go @@ -34,7 +34,7 @@ func newMLValidateFunc(t Transport) MLValidate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLValidateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLValidateRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.validate") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r MLValidateRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r MLValidateRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.validate") if reader := instrument.RecordRequestBody(ctx, "ml.validate", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.validate") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ml.validate_detector.go b/esapi/api.xpack.ml.validate_detector.go index b9b510c1c0..58ac52f206 100644 --- a/esapi/api.xpack.ml.validate_detector.go +++ b/esapi/api.xpack.ml.validate_detector.go @@ -34,7 +34,7 @@ func newMLValidateDetectorFunc(t Transport) MLValidateDetector { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type MLValidateDetectorRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r MLValidateDetectorRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ml.validate_detector") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r MLValidateDetectorRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r MLValidateDetectorRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ml.validate_detector") if reader := instrument.RecordRequestBody(ctx, "ml.validate_detector", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ml.validate_detector") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.monitoring.bulk.go b/esapi/api.xpack.monitoring.bulk.go index 39bfa8b06e..ac1583a0a4 100644 --- a/esapi/api.xpack.monitoring.bulk.go +++ b/esapi/api.xpack.monitoring.bulk.go @@ -34,7 +34,7 @@ func newMonitoringBulkFunc(t Transport) MonitoringBulk { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type MonitoringBulkRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r MonitoringBulkRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "monitoring.bulk") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r MonitoringBulkRequest) Do(providedCtx context.Context, transport Transpo if r.DocumentType != "" { path.WriteString("/") path.WriteString(r.DocumentType) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "type", r.DocumentType) } } @@ -135,7 +135,7 @@ func (r MonitoringBulkRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -169,18 +169,18 @@ func (r MonitoringBulkRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "monitoring.bulk") if reader := instrument.RecordRequestBody(ctx, "monitoring.bulk", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "monitoring.bulk") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.open_point_in_time.go b/esapi/api.xpack.open_point_in_time.go index 9461a25b3c..4177a8a28d 100644 --- a/esapi/api.xpack.open_point_in_time.go +++ b/esapi/api.xpack.open_point_in_time.go @@ -36,7 +36,7 @@ func newOpenPointInTimeFunc(t Transport) OpenPointInTime { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -72,7 +72,7 @@ type OpenPointInTimeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -84,7 +84,7 @@ func (r OpenPointInTimeRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "open_point_in_time") defer instrument.Close(ctx) } @@ -102,7 +102,7 @@ func (r OpenPointInTimeRequest) Do(providedCtx context.Context, transport Transp path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -152,7 +152,7 @@ func (r OpenPointInTimeRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -186,18 +186,18 @@ func (r OpenPointInTimeRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "open_point_in_time") if reader := instrument.RecordRequestBody(ctx, "open_point_in_time", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "open_point_in_time") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.profiling.flamegraph.go b/esapi/api.xpack.profiling.flamegraph.go index 7ebc186b76..912f0153bf 100644 --- a/esapi/api.xpack.profiling.flamegraph.go +++ b/esapi/api.xpack.profiling.flamegraph.go @@ -34,7 +34,7 @@ func newProfilingFlamegraphFunc(t Transport) ProfilingFlamegraph { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type ProfilingFlamegraphRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r ProfilingFlamegraphRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "profiling.flamegraph") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r ProfilingFlamegraphRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r ProfilingFlamegraphRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "profiling.flamegraph") if reader := instrument.RecordRequestBody(ctx, "profiling.flamegraph", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "profiling.flamegraph") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.rollup.delete_job.go b/esapi/api.xpack.rollup.delete_job.go index d68513105d..a0344f7eab 100644 --- a/esapi/api.xpack.rollup.delete_job.go +++ b/esapi/api.xpack.rollup.delete_job.go @@ -33,7 +33,7 @@ func newRollupDeleteJobFunc(t Transport) RollupDeleteJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type RollupDeleteJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r RollupDeleteJobRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rollup.delete_job") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r RollupDeleteJobRequest) Do(providedCtx context.Context, transport Transp path.WriteString("job") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.JobID) } @@ -116,7 +116,7 @@ func (r RollupDeleteJobRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r RollupDeleteJobRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rollup.delete_job") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rollup.delete_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.rollup.get_jobs.go b/esapi/api.xpack.rollup.get_jobs.go index e6365f7a9c..04344a0cf8 100644 --- a/esapi/api.xpack.rollup.get_jobs.go +++ b/esapi/api.xpack.rollup.get_jobs.go @@ -33,7 +33,7 @@ func newRollupGetJobsFunc(t Transport) RollupGetJobs { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type RollupGetJobsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r RollupGetJobsRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rollup.get_jobs") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r RollupGetJobsRequest) Do(providedCtx context.Context, transport Transpor if r.JobID != "" { path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.JobID) } } @@ -118,7 +118,7 @@ func (r RollupGetJobsRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r RollupGetJobsRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rollup.get_jobs") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rollup.get_jobs") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.rollup.get_rollup_caps.go b/esapi/api.xpack.rollup.get_rollup_caps.go index 18581c24d5..619573e300 100644 --- a/esapi/api.xpack.rollup.get_rollup_caps.go +++ b/esapi/api.xpack.rollup.get_rollup_caps.go @@ -33,7 +33,7 @@ func newRollupGetRollupCapsFunc(t Transport) RollupGetRollupCaps { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type RollupGetRollupCapsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r RollupGetRollupCapsRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rollup.get_rollup_caps") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r RollupGetRollupCapsRequest) Do(providedCtx context.Context, transport Tr if r.Index != "" { path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.Index) } } @@ -118,7 +118,7 @@ func (r RollupGetRollupCapsRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r RollupGetRollupCapsRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rollup.get_rollup_caps") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rollup.get_rollup_caps") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.rollup.get_rollup_index_caps.go b/esapi/api.xpack.rollup.get_rollup_index_caps.go index aa4fa5eb8f..7f95e30642 100644 --- a/esapi/api.xpack.rollup.get_rollup_index_caps.go +++ b/esapi/api.xpack.rollup.get_rollup_index_caps.go @@ -33,7 +33,7 @@ func newRollupGetRollupIndexCapsFunc(t Transport) RollupGetRollupIndexCaps { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type RollupGetRollupIndexCapsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r RollupGetRollupIndexCapsRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rollup.get_rollup_index_caps") defer instrument.Close(ctx) } @@ -88,7 +88,7 @@ func (r RollupGetRollupIndexCapsRequest) Do(providedCtx context.Context, transpo path.WriteString("http://") path.WriteString("/") path.WriteString(r.Index) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", r.Index) } path.WriteString("/") @@ -116,7 +116,7 @@ func (r RollupGetRollupIndexCapsRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r RollupGetRollupIndexCapsRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rollup.get_rollup_index_caps") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rollup.get_rollup_index_caps") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.rollup.put_job.go b/esapi/api.xpack.rollup.put_job.go index 23b5dfed68..dd7c13c662 100644 --- a/esapi/api.xpack.rollup.put_job.go +++ b/esapi/api.xpack.rollup.put_job.go @@ -34,7 +34,7 @@ func newRollupPutJobFunc(t Transport) RollupPutJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type RollupPutJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r RollupPutJobRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rollup.put_job") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r RollupPutJobRequest) Do(providedCtx context.Context, transport Transport path.WriteString("job") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.JobID) } @@ -119,7 +119,7 @@ func (r RollupPutJobRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r RollupPutJobRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rollup.put_job") if reader := instrument.RecordRequestBody(ctx, "rollup.put_job", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rollup.put_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.rollup.rollup_search.go b/esapi/api.xpack.rollup.rollup_search.go index b4dbcba2e6..57bc3047b4 100644 --- a/esapi/api.xpack.rollup.rollup_search.go +++ b/esapi/api.xpack.rollup.rollup_search.go @@ -36,7 +36,7 @@ func newRollupRollupSearchFunc(t Transport) RollupRollupSearch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type RollupRollupSearchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r RollupRollupSearchRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rollup.rollup_search") defer instrument.Close(ctx) } @@ -100,7 +100,7 @@ func (r RollupRollupSearchRequest) Do(providedCtx context.Context, transport Tra path.WriteString("http://") path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } path.WriteString("/") @@ -134,7 +134,7 @@ func (r RollupRollupSearchRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -168,18 +168,18 @@ func (r RollupRollupSearchRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rollup.rollup_search") if reader := instrument.RecordRequestBody(ctx, "rollup.rollup_search", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rollup.rollup_search") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.rollup.start_job.go b/esapi/api.xpack.rollup.start_job.go index 906080dfea..19fe168a33 100644 --- a/esapi/api.xpack.rollup.start_job.go +++ b/esapi/api.xpack.rollup.start_job.go @@ -33,7 +33,7 @@ func newRollupStartJobFunc(t Transport) RollupStartJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type RollupStartJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r RollupStartJobRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rollup.start_job") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r RollupStartJobRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("job") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.JobID) } path.WriteString("/") @@ -118,7 +118,7 @@ func (r RollupStartJobRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,15 +148,15 @@ func (r RollupStartJobRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rollup.start_job") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rollup.start_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.rollup.stop_job.go b/esapi/api.xpack.rollup.stop_job.go index 90a5b0c8f6..e06e6a1d1b 100644 --- a/esapi/api.xpack.rollup.stop_job.go +++ b/esapi/api.xpack.rollup.stop_job.go @@ -35,7 +35,7 @@ func newRollupStopJobFunc(t Transport) RollupStopJob { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type RollupStopJobRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r RollupStopJobRequest) Do(providedCtx context.Context, transport Transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "rollup.stop_job") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r RollupStopJobRequest) Do(providedCtx context.Context, transport Transpor path.WriteString("job") path.WriteString("/") path.WriteString(r.JobID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.JobID) } path.WriteString("/") @@ -131,7 +131,7 @@ func (r RollupStopJobRequest) Do(providedCtx context.Context, transport Transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -161,15 +161,15 @@ func (r RollupStopJobRequest) Do(providedCtx context.Context, transport Transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "rollup.stop_job") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "rollup.stop_job") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.searchable_snapshots.cache_stats.go b/esapi/api.xpack.searchable_snapshots.cache_stats.go index 04e3ccd3d6..ae514b404b 100644 --- a/esapi/api.xpack.searchable_snapshots.cache_stats.go +++ b/esapi/api.xpack.searchable_snapshots.cache_stats.go @@ -33,7 +33,7 @@ func newSearchableSnapshotsCacheStatsFunc(t Transport) SearchableSnapshotsCacheS } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SearchableSnapshotsCacheStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SearchableSnapshotsCacheStatsRequest) Do(providedCtx context.Context, tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "searchable_snapshots.cache_stats") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r SearchableSnapshotsCacheStatsRequest) Do(providedCtx context.Context, tr if len(r.NodeID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.NodeID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "node_id", strings.Join(r.NodeID, ",")) } } @@ -120,7 +120,7 @@ func (r SearchableSnapshotsCacheStatsRequest) Do(providedCtx context.Context, tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -150,15 +150,15 @@ func (r SearchableSnapshotsCacheStatsRequest) Do(providedCtx context.Context, tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "searchable_snapshots.cache_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "searchable_snapshots.cache_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.searchable_snapshots.clear_cache.go b/esapi/api.xpack.searchable_snapshots.clear_cache.go index 5ecb0327dd..87e050de87 100644 --- a/esapi/api.xpack.searchable_snapshots.clear_cache.go +++ b/esapi/api.xpack.searchable_snapshots.clear_cache.go @@ -34,7 +34,7 @@ func newSearchableSnapshotsClearCacheFunc(t Transport) SearchableSnapshotsClearC } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type SearchableSnapshotsClearCacheRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r SearchableSnapshotsClearCacheRequest) Do(providedCtx context.Context, tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "searchable_snapshots.clear_cache") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r SearchableSnapshotsClearCacheRequest) Do(providedCtx context.Context, tr if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -141,7 +141,7 @@ func (r SearchableSnapshotsClearCacheRequest) Do(providedCtx context.Context, tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -171,15 +171,15 @@ func (r SearchableSnapshotsClearCacheRequest) Do(providedCtx context.Context, tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "searchable_snapshots.clear_cache") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "searchable_snapshots.clear_cache") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.searchable_snapshots.mount.go b/esapi/api.xpack.searchable_snapshots.mount.go index 2853e8a92b..4570a65592 100644 --- a/esapi/api.xpack.searchable_snapshots.mount.go +++ b/esapi/api.xpack.searchable_snapshots.mount.go @@ -36,7 +36,7 @@ func newSearchableSnapshotsMountFunc(t Transport) SearchableSnapshotsMount { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -70,7 +70,7 @@ type SearchableSnapshotsMountRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -82,7 +82,7 @@ func (r SearchableSnapshotsMountRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "searchable_snapshots.mount") defer instrument.Close(ctx) } @@ -98,12 +98,12 @@ func (r SearchableSnapshotsMountRequest) Do(providedCtx context.Context, transpo path.WriteString("_snapshot") path.WriteString("/") path.WriteString(r.Repository) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "repository", r.Repository) } path.WriteString("/") path.WriteString(r.Snapshot) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "snapshot", r.Snapshot) } path.WriteString("/") @@ -141,7 +141,7 @@ func (r SearchableSnapshotsMountRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -175,18 +175,18 @@ func (r SearchableSnapshotsMountRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "searchable_snapshots.mount") if reader := instrument.RecordRequestBody(ctx, "searchable_snapshots.mount", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "searchable_snapshots.mount") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.searchable_snapshots.stats.go b/esapi/api.xpack.searchable_snapshots.stats.go index 71bb7d0cbc..e6d1bcb5e7 100644 --- a/esapi/api.xpack.searchable_snapshots.stats.go +++ b/esapi/api.xpack.searchable_snapshots.stats.go @@ -33,7 +33,7 @@ func newSearchableSnapshotsStatsFunc(t Transport) SearchableSnapshotsStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SearchableSnapshotsStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SearchableSnapshotsStatsRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "searchable_snapshots.stats") defer instrument.Close(ctx) } @@ -89,7 +89,7 @@ func (r SearchableSnapshotsStatsRequest) Do(providedCtx context.Context, transpo if len(r.Index) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Index, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "index", strings.Join(r.Index, ",")) } } @@ -122,7 +122,7 @@ func (r SearchableSnapshotsStatsRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r SearchableSnapshotsStatsRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "searchable_snapshots.stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "searchable_snapshots.stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.activate_user_profile.go b/esapi/api.xpack.security.activate_user_profile.go index 47ed661bdb..0898ff933e 100644 --- a/esapi/api.xpack.security.activate_user_profile.go +++ b/esapi/api.xpack.security.activate_user_profile.go @@ -34,7 +34,7 @@ func newSecurityActivateUserProfileFunc(t Transport) SecurityActivateUserProfile } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityActivateUserProfileRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityActivateUserProfileRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.activate_user_profile") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityActivateUserProfileRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityActivateUserProfileRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.activate_user_profile") if reader := instrument.RecordRequestBody(ctx, "security.activate_user_profile", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.activate_user_profile") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.authenticate.go b/esapi/api.xpack.security.authenticate.go index ba57cfdbd1..895ae0aedb 100644 --- a/esapi/api.xpack.security.authenticate.go +++ b/esapi/api.xpack.security.authenticate.go @@ -33,7 +33,7 @@ func newSecurityAuthenticateFunc(t Transport) SecurityAuthenticate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type SecurityAuthenticateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r SecurityAuthenticateRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.authenticate") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r SecurityAuthenticateRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r SecurityAuthenticateRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.authenticate") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.authenticate") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.bulk_delete_role.go b/esapi/api.xpack.security.bulk_delete_role.go index 21d47bde9d..a76fbed47b 100644 --- a/esapi/api.xpack.security.bulk_delete_role.go +++ b/esapi/api.xpack.security.bulk_delete_role.go @@ -34,7 +34,7 @@ func newSecurityBulkDeleteRoleFunc(t Transport) SecurityBulkDeleteRole { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityBulkDeleteRoleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityBulkDeleteRoleRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.bulk_delete_role") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r SecurityBulkDeleteRoleRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,18 +147,18 @@ func (r SecurityBulkDeleteRoleRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.bulk_put_role.go b/esapi/api.xpack.security.bulk_put_role.go index 1706c92ceb..a5bdb3727b 100644 --- a/esapi/api.xpack.security.bulk_put_role.go +++ b/esapi/api.xpack.security.bulk_put_role.go @@ -34,7 +34,7 @@ func newSecurityBulkPutRoleFunc(t Transport) SecurityBulkPutRole { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityBulkPutRoleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityBulkPutRoleRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.bulk_put_role") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r SecurityBulkPutRoleRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,18 +147,18 @@ func (r SecurityBulkPutRoleRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.bulk_update_api_keys.go b/esapi/api.xpack.security.bulk_update_api_keys.go index 19aa7643a9..c78879df56 100644 --- a/esapi/api.xpack.security.bulk_update_api_keys.go +++ b/esapi/api.xpack.security.bulk_update_api_keys.go @@ -34,7 +34,7 @@ func newSecurityBulkUpdateAPIKeysFunc(t Transport) SecurityBulkUpdateAPIKeys { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityBulkUpdateAPIKeysRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityBulkUpdateAPIKeysRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.bulk_update_api_keys") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityBulkUpdateAPIKeysRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityBulkUpdateAPIKeysRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.bulk_update_api_keys") if reader := instrument.RecordRequestBody(ctx, "security.bulk_update_api_keys", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.bulk_update_api_keys") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.change_password.go b/esapi/api.xpack.security.change_password.go index beb6b8bfe3..cae56b5ed9 100644 --- a/esapi/api.xpack.security.change_password.go +++ b/esapi/api.xpack.security.change_password.go @@ -34,7 +34,7 @@ func newSecurityChangePasswordFunc(t Transport) SecurityChangePassword { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SecurityChangePasswordRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SecurityChangePasswordRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.change_password") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r SecurityChangePasswordRequest) Do(providedCtx context.Context, transport if r.Username != "" { path.WriteString("/") path.WriteString(r.Username) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "username", r.Username) } } @@ -127,7 +127,7 @@ func (r SecurityChangePasswordRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -161,18 +161,18 @@ func (r SecurityChangePasswordRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.change_password") if reader := instrument.RecordRequestBody(ctx, "security.change_password", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.change_password") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.clear_api_key_cache.go b/esapi/api.xpack.security.clear_api_key_cache.go index f7e6251f3d..80a9b9d558 100644 --- a/esapi/api.xpack.security.clear_api_key_cache.go +++ b/esapi/api.xpack.security.clear_api_key_cache.go @@ -34,7 +34,7 @@ func newSecurityClearAPIKeyCacheFunc(t Transport) SecurityClearAPIKeyCache { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityClearAPIKeyCacheRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityClearAPIKeyCacheRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.clear_api_key_cache") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SecurityClearAPIKeyCacheRequest) Do(providedCtx context.Context, transpo path.WriteString("api_key") path.WriteString("/") path.WriteString(strings.Join(r.Ids, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "ids", strings.Join(r.Ids, ",")) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r SecurityClearAPIKeyCacheRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r SecurityClearAPIKeyCacheRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.clear_api_key_cache") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.clear_api_key_cache") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.clear_cached_privileges.go b/esapi/api.xpack.security.clear_cached_privileges.go index 8365a7a516..c7ec5b9faa 100644 --- a/esapi/api.xpack.security.clear_cached_privileges.go +++ b/esapi/api.xpack.security.clear_cached_privileges.go @@ -34,7 +34,7 @@ func newSecurityClearCachedPrivilegesFunc(t Transport) SecurityClearCachedPrivil } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityClearCachedPrivilegesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityClearCachedPrivilegesRequest) Do(providedCtx context.Context, tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.clear_cached_privileges") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SecurityClearCachedPrivilegesRequest) Do(providedCtx context.Context, tr path.WriteString("privilege") path.WriteString("/") path.WriteString(strings.Join(r.Application, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "application", strings.Join(r.Application, ",")) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r SecurityClearCachedPrivilegesRequest) Do(providedCtx context.Context, tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r SecurityClearCachedPrivilegesRequest) Do(providedCtx context.Context, tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.clear_cached_privileges") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.clear_cached_privileges") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.clear_cached_realms.go b/esapi/api.xpack.security.clear_cached_realms.go index 2478b21255..76504746a8 100644 --- a/esapi/api.xpack.security.clear_cached_realms.go +++ b/esapi/api.xpack.security.clear_cached_realms.go @@ -34,7 +34,7 @@ func newSecurityClearCachedRealmsFunc(t Transport) SecurityClearCachedRealms { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityClearCachedRealmsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityClearCachedRealmsRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.clear_cached_realms") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r SecurityClearCachedRealmsRequest) Do(providedCtx context.Context, transp path.WriteString("realm") path.WriteString("/") path.WriteString(strings.Join(r.Realms, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "realms", strings.Join(r.Realms, ",")) } path.WriteString("/") @@ -127,7 +127,7 @@ func (r SecurityClearCachedRealmsRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r SecurityClearCachedRealmsRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.clear_cached_realms") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.clear_cached_realms") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.clear_cached_roles.go b/esapi/api.xpack.security.clear_cached_roles.go index dbf9fc6b8f..3925ec1e13 100644 --- a/esapi/api.xpack.security.clear_cached_roles.go +++ b/esapi/api.xpack.security.clear_cached_roles.go @@ -34,7 +34,7 @@ func newSecurityClearCachedRolesFunc(t Transport) SecurityClearCachedRoles { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityClearCachedRolesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityClearCachedRolesRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.clear_cached_roles") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SecurityClearCachedRolesRequest) Do(providedCtx context.Context, transpo path.WriteString("role") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r SecurityClearCachedRolesRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r SecurityClearCachedRolesRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.clear_cached_roles") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.clear_cached_roles") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.clear_cached_service_tokens.go b/esapi/api.xpack.security.clear_cached_service_tokens.go index ebd5a1a11d..2308325839 100644 --- a/esapi/api.xpack.security.clear_cached_service_tokens.go +++ b/esapi/api.xpack.security.clear_cached_service_tokens.go @@ -34,7 +34,7 @@ func newSecurityClearCachedServiceTokensFunc(t Transport) SecurityClearCachedSer } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityClearCachedServiceTokensRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityClearCachedServiceTokensRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.clear_cached_service_tokens") defer instrument.Close(ctx) } @@ -97,12 +97,12 @@ func (r SecurityClearCachedServiceTokensRequest) Do(providedCtx context.Context, path.WriteString("service") path.WriteString("/") path.WriteString(r.Namespace) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "namespace", r.Namespace) } path.WriteString("/") path.WriteString(r.Service) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "service", r.Service) } path.WriteString("/") @@ -111,7 +111,7 @@ func (r SecurityClearCachedServiceTokensRequest) Do(providedCtx context.Context, path.WriteString("token") path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } path.WriteString("/") @@ -137,7 +137,7 @@ func (r SecurityClearCachedServiceTokensRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r SecurityClearCachedServiceTokensRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.clear_cached_service_tokens") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.clear_cached_service_tokens") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.create_api_key.go b/esapi/api.xpack.security.create_api_key.go index d557aa9b63..efd79524a8 100644 --- a/esapi/api.xpack.security.create_api_key.go +++ b/esapi/api.xpack.security.create_api_key.go @@ -34,7 +34,7 @@ func newSecurityCreateAPIKeyFunc(t Transport) SecurityCreateAPIKey { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityCreateAPIKeyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityCreateAPIKeyRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.create_api_key") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r SecurityCreateAPIKeyRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,18 +147,18 @@ func (r SecurityCreateAPIKeyRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.create_api_key") if reader := instrument.RecordRequestBody(ctx, "security.create_api_key", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.create_api_key") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.create_cross_cluster_api_key.go b/esapi/api.xpack.security.create_cross_cluster_api_key.go index 9ebb6b1482..e45c5d25b7 100644 --- a/esapi/api.xpack.security.create_cross_cluster_api_key.go +++ b/esapi/api.xpack.security.create_cross_cluster_api_key.go @@ -34,7 +34,7 @@ func newSecurityCreateCrossClusterAPIKeyFunc(t Transport) SecurityCreateCrossClu } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityCreateCrossClusterAPIKeyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityCreateCrossClusterAPIKeyRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.create_cross_cluster_api_key") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityCreateCrossClusterAPIKeyRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityCreateCrossClusterAPIKeyRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.create_cross_cluster_api_key") if reader := instrument.RecordRequestBody(ctx, "security.create_cross_cluster_api_key", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.create_cross_cluster_api_key") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.create_service_token.go b/esapi/api.xpack.security.create_service_token.go index a2df58bf37..822dd01ef7 100644 --- a/esapi/api.xpack.security.create_service_token.go +++ b/esapi/api.xpack.security.create_service_token.go @@ -33,7 +33,7 @@ func newSecurityCreateServiceTokenFunc(t Transport) SecurityCreateServiceToken { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SecurityCreateServiceTokenRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SecurityCreateServiceTokenRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.create_service_token") defer instrument.Close(ctx) } @@ -98,12 +98,12 @@ func (r SecurityCreateServiceTokenRequest) Do(providedCtx context.Context, trans path.WriteString("service") path.WriteString("/") path.WriteString(r.Namespace) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "namespace", r.Namespace) } path.WriteString("/") path.WriteString(r.Service) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "service", r.Service) } path.WriteString("/") @@ -113,7 +113,7 @@ func (r SecurityCreateServiceTokenRequest) Do(providedCtx context.Context, trans if r.Name != "" { path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } } @@ -142,7 +142,7 @@ func (r SecurityCreateServiceTokenRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -172,15 +172,15 @@ func (r SecurityCreateServiceTokenRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.create_service_token") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.create_service_token") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.delegate_pki.go b/esapi/api.xpack.security.delegate_pki.go index d7ec41b9d9..3b95bc3d72 100644 --- a/esapi/api.xpack.security.delegate_pki.go +++ b/esapi/api.xpack.security.delegate_pki.go @@ -34,7 +34,7 @@ func newSecurityDelegatePkiFunc(t Transport) SecurityDelegatePki { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityDelegatePkiRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityDelegatePkiRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.delegate_pki") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityDelegatePkiRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityDelegatePkiRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.delegate_pki") if reader := instrument.RecordRequestBody(ctx, "security.delegate_pki", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.delegate_pki") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.delete_privileges.go b/esapi/api.xpack.security.delete_privileges.go index f18ad2cc32..9ae5661a92 100644 --- a/esapi/api.xpack.security.delete_privileges.go +++ b/esapi/api.xpack.security.delete_privileges.go @@ -33,7 +33,7 @@ func newSecurityDeletePrivilegesFunc(t Transport) SecurityDeletePrivileges { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityDeletePrivilegesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityDeletePrivilegesRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.delete_privileges") defer instrument.Close(ctx) } @@ -93,12 +93,12 @@ func (r SecurityDeletePrivilegesRequest) Do(providedCtx context.Context, transpo path.WriteString("privilege") path.WriteString("/") path.WriteString(r.Application) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "application", r.Application) } path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -126,7 +126,7 @@ func (r SecurityDeletePrivilegesRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r SecurityDeletePrivilegesRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.delete_privileges") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.delete_privileges") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.delete_role.go b/esapi/api.xpack.security.delete_role.go index 7da52d0c06..6a1102a31b 100644 --- a/esapi/api.xpack.security.delete_role.go +++ b/esapi/api.xpack.security.delete_role.go @@ -33,7 +33,7 @@ func newSecurityDeleteRoleFunc(t Transport) SecurityDeleteRole { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SecurityDeleteRoleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SecurityDeleteRoleRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.delete_role") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SecurityDeleteRoleRequest) Do(providedCtx context.Context, transport Tra path.WriteString("role") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -120,7 +120,7 @@ func (r SecurityDeleteRoleRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -150,15 +150,15 @@ func (r SecurityDeleteRoleRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.delete_role") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.delete_role") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.delete_role_mapping.go b/esapi/api.xpack.security.delete_role_mapping.go index 31c8a0e6cf..aee35d2e34 100644 --- a/esapi/api.xpack.security.delete_role_mapping.go +++ b/esapi/api.xpack.security.delete_role_mapping.go @@ -33,7 +33,7 @@ func newSecurityDeleteRoleMappingFunc(t Transport) SecurityDeleteRoleMapping { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SecurityDeleteRoleMappingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SecurityDeleteRoleMappingRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.delete_role_mapping") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SecurityDeleteRoleMappingRequest) Do(providedCtx context.Context, transp path.WriteString("role_mapping") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -120,7 +120,7 @@ func (r SecurityDeleteRoleMappingRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -150,15 +150,15 @@ func (r SecurityDeleteRoleMappingRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.delete_role_mapping") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.delete_role_mapping") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.delete_service_token.go b/esapi/api.xpack.security.delete_service_token.go index 612382a89c..8529485bf8 100644 --- a/esapi/api.xpack.security.delete_service_token.go +++ b/esapi/api.xpack.security.delete_service_token.go @@ -33,7 +33,7 @@ func newSecurityDeleteServiceTokenFunc(t Transport) SecurityDeleteServiceToken { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SecurityDeleteServiceTokenRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SecurityDeleteServiceTokenRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.delete_service_token") defer instrument.Close(ctx) } @@ -94,12 +94,12 @@ func (r SecurityDeleteServiceTokenRequest) Do(providedCtx context.Context, trans path.WriteString("service") path.WriteString("/") path.WriteString(r.Namespace) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "namespace", r.Namespace) } path.WriteString("/") path.WriteString(r.Service) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "service", r.Service) } path.WriteString("/") @@ -108,7 +108,7 @@ func (r SecurityDeleteServiceTokenRequest) Do(providedCtx context.Context, trans path.WriteString("token") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -136,7 +136,7 @@ func (r SecurityDeleteServiceTokenRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r SecurityDeleteServiceTokenRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.delete_service_token") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.delete_service_token") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.delete_user.go b/esapi/api.xpack.security.delete_user.go index 0c04bec03e..22dd4008bf 100644 --- a/esapi/api.xpack.security.delete_user.go +++ b/esapi/api.xpack.security.delete_user.go @@ -33,7 +33,7 @@ func newSecurityDeleteUserFunc(t Transport) SecurityDeleteUser { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SecurityDeleteUserRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SecurityDeleteUserRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.delete_user") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SecurityDeleteUserRequest) Do(providedCtx context.Context, transport Tra path.WriteString("user") path.WriteString("/") path.WriteString(r.Username) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "username", r.Username) } @@ -120,7 +120,7 @@ func (r SecurityDeleteUserRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -150,15 +150,15 @@ func (r SecurityDeleteUserRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.delete_user") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.delete_user") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.disable_user.go b/esapi/api.xpack.security.disable_user.go index 2f7ede46e1..b0afaf4729 100644 --- a/esapi/api.xpack.security.disable_user.go +++ b/esapi/api.xpack.security.disable_user.go @@ -33,7 +33,7 @@ func newSecurityDisableUserFunc(t Transport) SecurityDisableUser { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SecurityDisableUserRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SecurityDisableUserRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.disable_user") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SecurityDisableUserRequest) Do(providedCtx context.Context, transport Tr path.WriteString("user") path.WriteString("/") path.WriteString(r.Username) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "username", r.Username) } path.WriteString("/") @@ -122,7 +122,7 @@ func (r SecurityDisableUserRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r SecurityDisableUserRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.disable_user") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.disable_user") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.disable_user_profile.go b/esapi/api.xpack.security.disable_user_profile.go index a93019a2dd..e4ab03d51b 100644 --- a/esapi/api.xpack.security.disable_user_profile.go +++ b/esapi/api.xpack.security.disable_user_profile.go @@ -33,7 +33,7 @@ func newSecurityDisableUserProfileFunc(t Transport) SecurityDisableUserProfile { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SecurityDisableUserProfileRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SecurityDisableUserProfileRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.disable_user_profile") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SecurityDisableUserProfileRequest) Do(providedCtx context.Context, trans path.WriteString("profile") path.WriteString("/") path.WriteString(r.UID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "uid", r.UID) } path.WriteString("/") @@ -122,7 +122,7 @@ func (r SecurityDisableUserProfileRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r SecurityDisableUserProfileRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.disable_user_profile") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.disable_user_profile") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.enable_user.go b/esapi/api.xpack.security.enable_user.go index 2d4d218f01..07dbc0bc08 100644 --- a/esapi/api.xpack.security.enable_user.go +++ b/esapi/api.xpack.security.enable_user.go @@ -33,7 +33,7 @@ func newSecurityEnableUserFunc(t Transport) SecurityEnableUser { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SecurityEnableUserRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SecurityEnableUserRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.enable_user") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SecurityEnableUserRequest) Do(providedCtx context.Context, transport Tra path.WriteString("user") path.WriteString("/") path.WriteString(r.Username) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "username", r.Username) } path.WriteString("/") @@ -122,7 +122,7 @@ func (r SecurityEnableUserRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r SecurityEnableUserRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.enable_user") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.enable_user") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.enable_user_profile.go b/esapi/api.xpack.security.enable_user_profile.go index 6ce7898ccd..901d298b31 100644 --- a/esapi/api.xpack.security.enable_user_profile.go +++ b/esapi/api.xpack.security.enable_user_profile.go @@ -33,7 +33,7 @@ func newSecurityEnableUserProfileFunc(t Transport) SecurityEnableUserProfile { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SecurityEnableUserProfileRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SecurityEnableUserProfileRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.enable_user_profile") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SecurityEnableUserProfileRequest) Do(providedCtx context.Context, transp path.WriteString("profile") path.WriteString("/") path.WriteString(r.UID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "uid", r.UID) } path.WriteString("/") @@ -122,7 +122,7 @@ func (r SecurityEnableUserProfileRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r SecurityEnableUserProfileRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.enable_user_profile") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.enable_user_profile") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.enroll_kibana.go b/esapi/api.xpack.security.enroll_kibana.go index 54673bef21..0cc2ae8291 100644 --- a/esapi/api.xpack.security.enroll_kibana.go +++ b/esapi/api.xpack.security.enroll_kibana.go @@ -33,7 +33,7 @@ func newSecurityEnrollKibanaFunc(t Transport) SecurityEnrollKibana { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type SecurityEnrollKibanaRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r SecurityEnrollKibanaRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.enroll_kibana") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r SecurityEnrollKibanaRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r SecurityEnrollKibanaRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.enroll_kibana") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.enroll_kibana") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.enroll_node.go b/esapi/api.xpack.security.enroll_node.go index acbce4ba51..9ab16de936 100644 --- a/esapi/api.xpack.security.enroll_node.go +++ b/esapi/api.xpack.security.enroll_node.go @@ -33,7 +33,7 @@ func newSecurityEnrollNodeFunc(t Transport) SecurityEnrollNode { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type SecurityEnrollNodeRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r SecurityEnrollNodeRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.enroll_node") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r SecurityEnrollNodeRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r SecurityEnrollNodeRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.enroll_node") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.enroll_node") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_api_key.go b/esapi/api.xpack.security.get_api_key.go index baed160bd5..7cbac33787 100644 --- a/esapi/api.xpack.security.get_api_key.go +++ b/esapi/api.xpack.security.get_api_key.go @@ -34,7 +34,7 @@ func newSecurityGetAPIKeyFunc(t Transport) SecurityGetAPIKey { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type SecurityGetAPIKeyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r SecurityGetAPIKeyRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_api_key") defer instrument.Close(ctx) } @@ -146,7 +146,7 @@ func (r SecurityGetAPIKeyRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -176,15 +176,15 @@ func (r SecurityGetAPIKeyRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_api_key") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_api_key") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_builtin_privileges.go b/esapi/api.xpack.security.get_builtin_privileges.go index 6ddbab3fd5..8126187137 100644 --- a/esapi/api.xpack.security.get_builtin_privileges.go +++ b/esapi/api.xpack.security.get_builtin_privileges.go @@ -33,7 +33,7 @@ func newSecurityGetBuiltinPrivilegesFunc(t Transport) SecurityGetBuiltinPrivileg } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type SecurityGetBuiltinPrivilegesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r SecurityGetBuiltinPrivilegesRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_builtin_privileges") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r SecurityGetBuiltinPrivilegesRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r SecurityGetBuiltinPrivilegesRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_builtin_privileges") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_builtin_privileges") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_privileges.go b/esapi/api.xpack.security.get_privileges.go index 4017b7c940..ae6b40f386 100644 --- a/esapi/api.xpack.security.get_privileges.go +++ b/esapi/api.xpack.security.get_privileges.go @@ -33,7 +33,7 @@ func newSecurityGetPrivilegesFunc(t Transport) SecurityGetPrivileges { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityGetPrivilegesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityGetPrivilegesRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_privileges") defer instrument.Close(ctx) } @@ -92,14 +92,14 @@ func (r SecurityGetPrivilegesRequest) Do(providedCtx context.Context, transport if r.Application != "" { path.WriteString("/") path.WriteString(r.Application) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "application", r.Application) } } if r.Name != "" { path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } } @@ -124,7 +124,7 @@ func (r SecurityGetPrivilegesRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r SecurityGetPrivilegesRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_privileges") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_privileges") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_role.go b/esapi/api.xpack.security.get_role.go index bd29c9cf25..ca4a1ec77a 100644 --- a/esapi/api.xpack.security.get_role.go +++ b/esapi/api.xpack.security.get_role.go @@ -33,7 +33,7 @@ func newSecurityGetRoleFunc(t Transport) SecurityGetRole { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type SecurityGetRoleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r SecurityGetRoleRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_role") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r SecurityGetRoleRequest) Do(providedCtx context.Context, transport Transp if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -116,7 +116,7 @@ func (r SecurityGetRoleRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SecurityGetRoleRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_role") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_role") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_role_mapping.go b/esapi/api.xpack.security.get_role_mapping.go index 603afe610e..a8540c08dd 100644 --- a/esapi/api.xpack.security.get_role_mapping.go +++ b/esapi/api.xpack.security.get_role_mapping.go @@ -33,7 +33,7 @@ func newSecurityGetRoleMappingFunc(t Transport) SecurityGetRoleMapping { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type SecurityGetRoleMappingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r SecurityGetRoleMappingRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_role_mapping") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r SecurityGetRoleMappingRequest) Do(providedCtx context.Context, transport if len(r.Name) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Name, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", strings.Join(r.Name, ",")) } } @@ -116,7 +116,7 @@ func (r SecurityGetRoleMappingRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SecurityGetRoleMappingRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_role_mapping") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_role_mapping") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_service_accounts.go b/esapi/api.xpack.security.get_service_accounts.go index 194c76158c..3c8387e3a2 100644 --- a/esapi/api.xpack.security.get_service_accounts.go +++ b/esapi/api.xpack.security.get_service_accounts.go @@ -33,7 +33,7 @@ func newSecurityGetServiceAccountsFunc(t Transport) SecurityGetServiceAccounts { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityGetServiceAccountsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityGetServiceAccountsRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_service_accounts") defer instrument.Close(ctx) } @@ -92,14 +92,14 @@ func (r SecurityGetServiceAccountsRequest) Do(providedCtx context.Context, trans if r.Namespace != "" { path.WriteString("/") path.WriteString(r.Namespace) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "namespace", r.Namespace) } } if r.Service != "" { path.WriteString("/") path.WriteString(r.Service) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "service", r.Service) } } @@ -124,7 +124,7 @@ func (r SecurityGetServiceAccountsRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r SecurityGetServiceAccountsRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_service_accounts") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_service_accounts") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_service_credentials.go b/esapi/api.xpack.security.get_service_credentials.go index fd850392b7..f8608e00ef 100644 --- a/esapi/api.xpack.security.get_service_credentials.go +++ b/esapi/api.xpack.security.get_service_credentials.go @@ -33,7 +33,7 @@ func newSecurityGetServiceCredentialsFunc(t Transport) SecurityGetServiceCredent } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityGetServiceCredentialsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityGetServiceCredentialsRequest) Do(providedCtx context.Context, tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_service_credentials") defer instrument.Close(ctx) } @@ -91,12 +91,12 @@ func (r SecurityGetServiceCredentialsRequest) Do(providedCtx context.Context, tr path.WriteString("service") path.WriteString("/") path.WriteString(r.Namespace) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "namespace", r.Namespace) } path.WriteString("/") path.WriteString(r.Service) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "service", r.Service) } path.WriteString("/") @@ -122,7 +122,7 @@ func (r SecurityGetServiceCredentialsRequest) Do(providedCtx context.Context, tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -152,15 +152,15 @@ func (r SecurityGetServiceCredentialsRequest) Do(providedCtx context.Context, tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_service_credentials") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_service_credentials") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_settings.go b/esapi/api.xpack.security.get_settings.go index 0dafccf6aa..24d7e8c16b 100644 --- a/esapi/api.xpack.security.get_settings.go +++ b/esapi/api.xpack.security.get_settings.go @@ -34,7 +34,7 @@ func newSecurityGetSettingsFunc(t Transport) SecurityGetSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityGetSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityGetSettingsRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_settings") defer instrument.Close(ctx) } @@ -111,7 +111,7 @@ func (r SecurityGetSettingsRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,15 +141,15 @@ func (r SecurityGetSettingsRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_settings") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_token.go b/esapi/api.xpack.security.get_token.go index 66772f3b68..6f396ebcd7 100644 --- a/esapi/api.xpack.security.get_token.go +++ b/esapi/api.xpack.security.get_token.go @@ -34,7 +34,7 @@ func newSecurityGetTokenFunc(t Transport) SecurityGetToken { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityGetTokenRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityGetTokenRequest) Do(providedCtx context.Context, transport Trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_token") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityGetTokenRequest) Do(providedCtx context.Context, transport Trans req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityGetTokenRequest) Do(providedCtx context.Context, transport Trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_token") if reader := instrument.RecordRequestBody(ctx, "security.get_token", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_token") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_user.go b/esapi/api.xpack.security.get_user.go index 33c83763a0..a775ccb4dc 100644 --- a/esapi/api.xpack.security.get_user.go +++ b/esapi/api.xpack.security.get_user.go @@ -34,7 +34,7 @@ func newSecurityGetUserFunc(t Transport) SecurityGetUser { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityGetUserRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityGetUserRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_user") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r SecurityGetUserRequest) Do(providedCtx context.Context, transport Transp if len(r.Username) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Username, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "username", strings.Join(r.Username, ",")) } } @@ -123,7 +123,7 @@ func (r SecurityGetUserRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,15 +153,15 @@ func (r SecurityGetUserRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_user") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_user") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_user_privileges.go b/esapi/api.xpack.security.get_user_privileges.go index 8ddf81ceb2..690ea26326 100644 --- a/esapi/api.xpack.security.get_user_privileges.go +++ b/esapi/api.xpack.security.get_user_privileges.go @@ -33,7 +33,7 @@ func newSecurityGetUserPrivilegesFunc(t Transport) SecurityGetUserPrivileges { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type SecurityGetUserPrivilegesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r SecurityGetUserPrivilegesRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_user_privileges") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r SecurityGetUserPrivilegesRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r SecurityGetUserPrivilegesRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_user_privileges") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_user_privileges") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.get_user_profile.go b/esapi/api.xpack.security.get_user_profile.go index 2133a08cee..35cae946a6 100644 --- a/esapi/api.xpack.security.get_user_profile.go +++ b/esapi/api.xpack.security.get_user_profile.go @@ -34,7 +34,7 @@ func newSecurityGetUserProfileFunc(t Transport) SecurityGetUserProfile { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityGetUserProfileRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityGetUserProfileRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.get_user_profile") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r SecurityGetUserProfileRequest) Do(providedCtx context.Context, transport path.WriteString("profile") path.WriteString("/") path.WriteString(strings.Join(r.UID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "uid", strings.Join(r.UID, ",")) } @@ -125,7 +125,7 @@ func (r SecurityGetUserProfileRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,15 +155,15 @@ func (r SecurityGetUserProfileRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.get_user_profile") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.get_user_profile") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.grant_api_key.go b/esapi/api.xpack.security.grant_api_key.go index a74c8b6655..1a5b98af01 100644 --- a/esapi/api.xpack.security.grant_api_key.go +++ b/esapi/api.xpack.security.grant_api_key.go @@ -34,7 +34,7 @@ func newSecurityGrantAPIKeyFunc(t Transport) SecurityGrantAPIKey { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityGrantAPIKeyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityGrantAPIKeyRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.grant_api_key") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r SecurityGrantAPIKeyRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,18 +147,18 @@ func (r SecurityGrantAPIKeyRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.grant_api_key") if reader := instrument.RecordRequestBody(ctx, "security.grant_api_key", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.grant_api_key") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.has_privileges.go b/esapi/api.xpack.security.has_privileges.go index dd9ff586d2..b1be0c768c 100644 --- a/esapi/api.xpack.security.has_privileges.go +++ b/esapi/api.xpack.security.has_privileges.go @@ -34,7 +34,7 @@ func newSecurityHasPrivilegesFunc(t Transport) SecurityHasPrivileges { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityHasPrivilegesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityHasPrivilegesRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.has_privileges") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r SecurityHasPrivilegesRequest) Do(providedCtx context.Context, transport if r.User != "" { path.WriteString("/") path.WriteString(r.User) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "user", r.User) } } @@ -121,7 +121,7 @@ func (r SecurityHasPrivilegesRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -155,18 +155,18 @@ func (r SecurityHasPrivilegesRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.has_privileges") if reader := instrument.RecordRequestBody(ctx, "security.has_privileges", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.has_privileges") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.has_privileges_user_profile.go b/esapi/api.xpack.security.has_privileges_user_profile.go index 0b90f20399..4796e3e807 100644 --- a/esapi/api.xpack.security.has_privileges_user_profile.go +++ b/esapi/api.xpack.security.has_privileges_user_profile.go @@ -34,7 +34,7 @@ func newSecurityHasPrivilegesUserProfileFunc(t Transport) SecurityHasPrivilegesU } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityHasPrivilegesUserProfileRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityHasPrivilegesUserProfileRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.has_privileges_user_profile") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityHasPrivilegesUserProfileRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityHasPrivilegesUserProfileRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.has_privileges_user_profile") if reader := instrument.RecordRequestBody(ctx, "security.has_privileges_user_profile", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.has_privileges_user_profile") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.invalidate_api_key.go b/esapi/api.xpack.security.invalidate_api_key.go index 68febb7176..c5b3b8b93c 100644 --- a/esapi/api.xpack.security.invalidate_api_key.go +++ b/esapi/api.xpack.security.invalidate_api_key.go @@ -34,7 +34,7 @@ func newSecurityInvalidateAPIKeyFunc(t Transport) SecurityInvalidateAPIKey { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityInvalidateAPIKeyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityInvalidateAPIKeyRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.invalidate_api_key") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityInvalidateAPIKeyRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityInvalidateAPIKeyRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.invalidate_api_key") if reader := instrument.RecordRequestBody(ctx, "security.invalidate_api_key", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.invalidate_api_key") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.invalidate_token.go b/esapi/api.xpack.security.invalidate_token.go index 8ab313a053..030d6427c9 100644 --- a/esapi/api.xpack.security.invalidate_token.go +++ b/esapi/api.xpack.security.invalidate_token.go @@ -34,7 +34,7 @@ func newSecurityInvalidateTokenFunc(t Transport) SecurityInvalidateToken { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityInvalidateTokenRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityInvalidateTokenRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.invalidate_token") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityInvalidateTokenRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityInvalidateTokenRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.invalidate_token") if reader := instrument.RecordRequestBody(ctx, "security.invalidate_token", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.invalidate_token") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.oidc_authenticate.go b/esapi/api.xpack.security.oidc_authenticate.go index 0f19135e62..6250f4f9ff 100644 --- a/esapi/api.xpack.security.oidc_authenticate.go +++ b/esapi/api.xpack.security.oidc_authenticate.go @@ -34,7 +34,7 @@ func newSecurityOidcAuthenticateFunc(t Transport) SecurityOidcAuthenticate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityOidcAuthenticateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityOidcAuthenticateRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.oidc_authenticate") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityOidcAuthenticateRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityOidcAuthenticateRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.oidc_authenticate") if reader := instrument.RecordRequestBody(ctx, "security.oidc_authenticate", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.oidc_authenticate") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.oidc_logout.go b/esapi/api.xpack.security.oidc_logout.go index 9b6bef717a..e6f9b16edb 100644 --- a/esapi/api.xpack.security.oidc_logout.go +++ b/esapi/api.xpack.security.oidc_logout.go @@ -34,7 +34,7 @@ func newSecurityOidcLogoutFunc(t Transport) SecurityOidcLogout { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityOidcLogoutRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityOidcLogoutRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.oidc_logout") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityOidcLogoutRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityOidcLogoutRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.oidc_logout") if reader := instrument.RecordRequestBody(ctx, "security.oidc_logout", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.oidc_logout") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.oidc_prepare_authentication.go b/esapi/api.xpack.security.oidc_prepare_authentication.go index 05b315dff1..bd56aca7f9 100644 --- a/esapi/api.xpack.security.oidc_prepare_authentication.go +++ b/esapi/api.xpack.security.oidc_prepare_authentication.go @@ -34,7 +34,7 @@ func newSecurityOidcPrepareAuthenticationFunc(t Transport) SecurityOidcPrepareAu } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityOidcPrepareAuthenticationRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityOidcPrepareAuthenticationRequest) Do(providedCtx context.Context ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.oidc_prepare_authentication") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityOidcPrepareAuthenticationRequest) Do(providedCtx context.Context req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityOidcPrepareAuthenticationRequest) Do(providedCtx context.Context req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.oidc_prepare_authentication") if reader := instrument.RecordRequestBody(ctx, "security.oidc_prepare_authentication", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.oidc_prepare_authentication") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.put_privileges.go b/esapi/api.xpack.security.put_privileges.go index 361b99bb5b..b5d8385524 100644 --- a/esapi/api.xpack.security.put_privileges.go +++ b/esapi/api.xpack.security.put_privileges.go @@ -34,7 +34,7 @@ func newSecurityPutPrivilegesFunc(t Transport) SecurityPutPrivileges { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityPutPrivilegesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityPutPrivilegesRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.put_privileges") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r SecurityPutPrivilegesRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,18 +147,18 @@ func (r SecurityPutPrivilegesRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.put_privileges") if reader := instrument.RecordRequestBody(ctx, "security.put_privileges", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.put_privileges") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.put_role.go b/esapi/api.xpack.security.put_role.go index 893ffb163b..cada20bf5b 100644 --- a/esapi/api.xpack.security.put_role.go +++ b/esapi/api.xpack.security.put_role.go @@ -34,7 +34,7 @@ func newSecurityPutRoleFunc(t Transport) SecurityPutRole { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SecurityPutRoleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SecurityPutRoleRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.put_role") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SecurityPutRoleRequest) Do(providedCtx context.Context, transport Transp path.WriteString("role") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -123,7 +123,7 @@ func (r SecurityPutRoleRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,18 +157,18 @@ func (r SecurityPutRoleRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.put_role") if reader := instrument.RecordRequestBody(ctx, "security.put_role", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.put_role") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.put_role_mapping.go b/esapi/api.xpack.security.put_role_mapping.go index 8725333a39..b982e05fad 100644 --- a/esapi/api.xpack.security.put_role_mapping.go +++ b/esapi/api.xpack.security.put_role_mapping.go @@ -34,7 +34,7 @@ func newSecurityPutRoleMappingFunc(t Transport) SecurityPutRoleMapping { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SecurityPutRoleMappingRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SecurityPutRoleMappingRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.put_role_mapping") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SecurityPutRoleMappingRequest) Do(providedCtx context.Context, transport path.WriteString("role_mapping") path.WriteString("/") path.WriteString(r.Name) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "name", r.Name) } @@ -123,7 +123,7 @@ func (r SecurityPutRoleMappingRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,18 +157,18 @@ func (r SecurityPutRoleMappingRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.put_role_mapping") if reader := instrument.RecordRequestBody(ctx, "security.put_role_mapping", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.put_role_mapping") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.put_user.go b/esapi/api.xpack.security.put_user.go index 2828f06e8d..483b833906 100644 --- a/esapi/api.xpack.security.put_user.go +++ b/esapi/api.xpack.security.put_user.go @@ -34,7 +34,7 @@ func newSecurityPutUserFunc(t Transport) SecurityPutUser { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SecurityPutUserRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SecurityPutUserRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.put_user") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SecurityPutUserRequest) Do(providedCtx context.Context, transport Transp path.WriteString("user") path.WriteString("/") path.WriteString(r.Username) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "username", r.Username) } @@ -123,7 +123,7 @@ func (r SecurityPutUserRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,18 +157,18 @@ func (r SecurityPutUserRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.put_user") if reader := instrument.RecordRequestBody(ctx, "security.put_user", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.put_user") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.query_api_keys.go b/esapi/api.xpack.security.query_api_keys.go index f50825cfe2..36daa00b01 100644 --- a/esapi/api.xpack.security.query_api_keys.go +++ b/esapi/api.xpack.security.query_api_keys.go @@ -35,7 +35,7 @@ func newSecurityQueryAPIKeysFunc(t Transport) SecurityQueryAPIKeys { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type SecurityQueryAPIKeysRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r SecurityQueryAPIKeysRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.query_api_keys") defer instrument.Close(ctx) } @@ -124,7 +124,7 @@ func (r SecurityQueryAPIKeysRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,18 +158,18 @@ func (r SecurityQueryAPIKeysRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.query_api_keys") if reader := instrument.RecordRequestBody(ctx, "security.query_api_keys", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.query_api_keys") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.query_role.go b/esapi/api.xpack.security.query_role.go index 2e17df8538..7ed2369819 100644 --- a/esapi/api.xpack.security.query_role.go +++ b/esapi/api.xpack.security.query_role.go @@ -34,7 +34,7 @@ func newSecurityQueryRoleFunc(t Transport) SecurityQueryRole { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecurityQueryRoleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecurityQueryRoleRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.query_role") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecurityQueryRoleRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecurityQueryRoleRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.query_role") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.query_user.go b/esapi/api.xpack.security.query_user.go index 02bc986ff0..ebaa616208 100644 --- a/esapi/api.xpack.security.query_user.go +++ b/esapi/api.xpack.security.query_user.go @@ -35,7 +35,7 @@ func newSecurityQueryUserFunc(t Transport) SecurityQueryUser { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SecurityQueryUserRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SecurityQueryUserRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.query_user") defer instrument.Close(ctx) } @@ -114,7 +114,7 @@ func (r SecurityQueryUserRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -148,18 +148,18 @@ func (r SecurityQueryUserRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.query_user") if reader := instrument.RecordRequestBody(ctx, "security.query_user", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.query_user") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.saml_authenticate.go b/esapi/api.xpack.security.saml_authenticate.go index 3c565fd60a..d6fc16e15a 100644 --- a/esapi/api.xpack.security.saml_authenticate.go +++ b/esapi/api.xpack.security.saml_authenticate.go @@ -34,7 +34,7 @@ func newSecuritySamlAuthenticateFunc(t Transport) SecuritySamlAuthenticate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecuritySamlAuthenticateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecuritySamlAuthenticateRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.saml_authenticate") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecuritySamlAuthenticateRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecuritySamlAuthenticateRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.saml_authenticate") if reader := instrument.RecordRequestBody(ctx, "security.saml_authenticate", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.saml_authenticate") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.saml_complete_logout.go b/esapi/api.xpack.security.saml_complete_logout.go index a6cf0991a4..7024752e10 100644 --- a/esapi/api.xpack.security.saml_complete_logout.go +++ b/esapi/api.xpack.security.saml_complete_logout.go @@ -34,7 +34,7 @@ func newSecuritySamlCompleteLogoutFunc(t Transport) SecuritySamlCompleteLogout { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecuritySamlCompleteLogoutRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecuritySamlCompleteLogoutRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.saml_complete_logout") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecuritySamlCompleteLogoutRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecuritySamlCompleteLogoutRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.saml_complete_logout") if reader := instrument.RecordRequestBody(ctx, "security.saml_complete_logout", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.saml_complete_logout") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.saml_invalidate.go b/esapi/api.xpack.security.saml_invalidate.go index 8a61244166..88d4663a4e 100644 --- a/esapi/api.xpack.security.saml_invalidate.go +++ b/esapi/api.xpack.security.saml_invalidate.go @@ -34,7 +34,7 @@ func newSecuritySamlInvalidateFunc(t Transport) SecuritySamlInvalidate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecuritySamlInvalidateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecuritySamlInvalidateRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.saml_invalidate") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecuritySamlInvalidateRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecuritySamlInvalidateRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.saml_invalidate") if reader := instrument.RecordRequestBody(ctx, "security.saml_invalidate", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.saml_invalidate") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.saml_logout.go b/esapi/api.xpack.security.saml_logout.go index e193b887fa..17f2f46909 100644 --- a/esapi/api.xpack.security.saml_logout.go +++ b/esapi/api.xpack.security.saml_logout.go @@ -34,7 +34,7 @@ func newSecuritySamlLogoutFunc(t Transport) SecuritySamlLogout { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecuritySamlLogoutRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecuritySamlLogoutRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.saml_logout") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecuritySamlLogoutRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecuritySamlLogoutRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.saml_logout") if reader := instrument.RecordRequestBody(ctx, "security.saml_logout", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.saml_logout") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.saml_prepare_authentication.go b/esapi/api.xpack.security.saml_prepare_authentication.go index 87f62e510b..57c075f04b 100644 --- a/esapi/api.xpack.security.saml_prepare_authentication.go +++ b/esapi/api.xpack.security.saml_prepare_authentication.go @@ -34,7 +34,7 @@ func newSecuritySamlPrepareAuthenticationFunc(t Transport) SecuritySamlPrepareAu } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SecuritySamlPrepareAuthenticationRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SecuritySamlPrepareAuthenticationRequest) Do(providedCtx context.Context ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.saml_prepare_authentication") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SecuritySamlPrepareAuthenticationRequest) Do(providedCtx context.Context req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SecuritySamlPrepareAuthenticationRequest) Do(providedCtx context.Context req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.saml_prepare_authentication") if reader := instrument.RecordRequestBody(ctx, "security.saml_prepare_authentication", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.saml_prepare_authentication") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.saml_service_provider_metadata.go b/esapi/api.xpack.security.saml_service_provider_metadata.go index 11ddba2c89..38be6779bf 100644 --- a/esapi/api.xpack.security.saml_service_provider_metadata.go +++ b/esapi/api.xpack.security.saml_service_provider_metadata.go @@ -33,7 +33,7 @@ func newSecuritySamlServiceProviderMetadataFunc(t Transport) SecuritySamlService } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type SecuritySamlServiceProviderMetadataRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r SecuritySamlServiceProviderMetadataRequest) Do(providedCtx context.Conte ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.saml_service_provider_metadata") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SecuritySamlServiceProviderMetadataRequest) Do(providedCtx context.Conte path.WriteString("metadata") path.WriteString("/") path.WriteString(r.RealmName) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "realm_name", r.RealmName) } @@ -116,7 +116,7 @@ func (r SecuritySamlServiceProviderMetadataRequest) Do(providedCtx context.Conte req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SecuritySamlServiceProviderMetadataRequest) Do(providedCtx context.Conte req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.saml_service_provider_metadata") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.saml_service_provider_metadata") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.suggest_user_profiles.go b/esapi/api.xpack.security.suggest_user_profiles.go index 9edd45d5ac..8d57420cd2 100644 --- a/esapi/api.xpack.security.suggest_user_profiles.go +++ b/esapi/api.xpack.security.suggest_user_profiles.go @@ -34,7 +34,7 @@ func newSecuritySuggestUserProfilesFunc(t Transport) SecuritySuggestUserProfiles } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecuritySuggestUserProfilesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecuritySuggestUserProfilesRequest) Do(providedCtx context.Context, tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.suggest_user_profiles") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r SecuritySuggestUserProfilesRequest) Do(providedCtx context.Context, tran req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,18 +147,18 @@ func (r SecuritySuggestUserProfilesRequest) Do(providedCtx context.Context, tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.suggest_user_profiles") if reader := instrument.RecordRequestBody(ctx, "security.suggest_user_profiles", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.suggest_user_profiles") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.update_api_key.go b/esapi/api.xpack.security.update_api_key.go index f04e45e056..763e797786 100644 --- a/esapi/api.xpack.security.update_api_key.go +++ b/esapi/api.xpack.security.update_api_key.go @@ -34,7 +34,7 @@ func newSecurityUpdateAPIKeyFunc(t Transport) SecurityUpdateAPIKey { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityUpdateAPIKeyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityUpdateAPIKeyRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.update_api_key") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r SecurityUpdateAPIKeyRequest) Do(providedCtx context.Context, transport T path.WriteString("api_key") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -117,7 +117,7 @@ func (r SecurityUpdateAPIKeyRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,18 +151,18 @@ func (r SecurityUpdateAPIKeyRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.update_api_key") if reader := instrument.RecordRequestBody(ctx, "security.update_api_key", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.update_api_key") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.update_cross_cluster_api_key.go b/esapi/api.xpack.security.update_cross_cluster_api_key.go index b460033753..b1e68bd13f 100644 --- a/esapi/api.xpack.security.update_cross_cluster_api_key.go +++ b/esapi/api.xpack.security.update_cross_cluster_api_key.go @@ -34,7 +34,7 @@ func newSecurityUpdateCrossClusterAPIKeyFunc(t Transport) SecurityUpdateCrossClu } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SecurityUpdateCrossClusterAPIKeyRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SecurityUpdateCrossClusterAPIKeyRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.update_cross_cluster_api_key") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SecurityUpdateCrossClusterAPIKeyRequest) Do(providedCtx context.Context, path.WriteString("api_key") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -119,7 +119,7 @@ func (r SecurityUpdateCrossClusterAPIKeyRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r SecurityUpdateCrossClusterAPIKeyRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.update_cross_cluster_api_key") if reader := instrument.RecordRequestBody(ctx, "security.update_cross_cluster_api_key", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.update_cross_cluster_api_key") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.update_settings.go b/esapi/api.xpack.security.update_settings.go index 10d5970478..5c1536bd23 100644 --- a/esapi/api.xpack.security.update_settings.go +++ b/esapi/api.xpack.security.update_settings.go @@ -35,7 +35,7 @@ func newSecurityUpdateSettingsFunc(t Transport) SecurityUpdateSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type SecurityUpdateSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r SecurityUpdateSettingsRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.update_settings") defer instrument.Close(ctx) } @@ -119,7 +119,7 @@ func (r SecurityUpdateSettingsRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r SecurityUpdateSettingsRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.update_settings") if reader := instrument.RecordRequestBody(ctx, "security.update_settings", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.update_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.security.update_user_profile_data.go b/esapi/api.xpack.security.update_user_profile_data.go index 1d58553b89..a4ea78d53e 100644 --- a/esapi/api.xpack.security.update_user_profile_data.go +++ b/esapi/api.xpack.security.update_user_profile_data.go @@ -35,7 +35,7 @@ func newSecurityUpdateUserProfileDataFunc(t Transport) SecurityUpdateUserProfile } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type SecurityUpdateUserProfileDataRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r SecurityUpdateUserProfileDataRequest) Do(providedCtx context.Context, tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "security.update_user_profile_data") defer instrument.Close(ctx) } @@ -98,7 +98,7 @@ func (r SecurityUpdateUserProfileDataRequest) Do(providedCtx context.Context, tr path.WriteString("profile") path.WriteString("/") path.WriteString(r.UID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "uid", r.UID) } path.WriteString("/") @@ -136,7 +136,7 @@ func (r SecurityUpdateUserProfileDataRequest) Do(providedCtx context.Context, tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -170,18 +170,18 @@ func (r SecurityUpdateUserProfileDataRequest) Do(providedCtx context.Context, tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "security.update_user_profile_data") if reader := instrument.RecordRequestBody(ctx, "security.update_user_profile_data", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "security.update_user_profile_data") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.delete_lifecycle.go b/esapi/api.xpack.slm.delete_lifecycle.go index 3136a1832f..06f66a31a4 100644 --- a/esapi/api.xpack.slm.delete_lifecycle.go +++ b/esapi/api.xpack.slm.delete_lifecycle.go @@ -34,7 +34,7 @@ func newSlmDeleteLifecycleFunc(t Transport) SlmDeleteLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SlmDeleteLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SlmDeleteLifecycleRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.delete_lifecycle") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r SlmDeleteLifecycleRequest) Do(providedCtx context.Context, transport Tra path.WriteString("policy") path.WriteString("/") path.WriteString(r.PolicyID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "policy_id", r.PolicyID) } @@ -126,7 +126,7 @@ func (r SlmDeleteLifecycleRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r SlmDeleteLifecycleRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.delete_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.delete_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.execute_lifecycle.go b/esapi/api.xpack.slm.execute_lifecycle.go index 78cd6f2d33..0fa6e0740f 100644 --- a/esapi/api.xpack.slm.execute_lifecycle.go +++ b/esapi/api.xpack.slm.execute_lifecycle.go @@ -34,7 +34,7 @@ func newSlmExecuteLifecycleFunc(t Transport) SlmExecuteLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SlmExecuteLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SlmExecuteLifecycleRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.execute_lifecycle") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r SlmExecuteLifecycleRequest) Do(providedCtx context.Context, transport Tr path.WriteString("policy") path.WriteString("/") path.WriteString(r.PolicyID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "policy_id", r.PolicyID) } path.WriteString("/") @@ -128,7 +128,7 @@ func (r SlmExecuteLifecycleRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,15 +158,15 @@ func (r SlmExecuteLifecycleRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.execute_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.execute_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.execute_retention.go b/esapi/api.xpack.slm.execute_retention.go index 253edfeb79..4f28eee78f 100644 --- a/esapi/api.xpack.slm.execute_retention.go +++ b/esapi/api.xpack.slm.execute_retention.go @@ -34,7 +34,7 @@ func newSlmExecuteRetentionFunc(t Transport) SlmExecuteRetention { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SlmExecuteRetentionRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SlmExecuteRetentionRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.execute_retention") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r SlmExecuteRetentionRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SlmExecuteRetentionRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.execute_retention") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.execute_retention") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.get_lifecycle.go b/esapi/api.xpack.slm.get_lifecycle.go index cc7ad5c24d..572e38049c 100644 --- a/esapi/api.xpack.slm.get_lifecycle.go +++ b/esapi/api.xpack.slm.get_lifecycle.go @@ -34,7 +34,7 @@ func newSlmGetLifecycleFunc(t Transport) SlmGetLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type SlmGetLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r SlmGetLifecycleRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.get_lifecycle") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r SlmGetLifecycleRequest) Do(providedCtx context.Context, transport Transp if len(r.PolicyID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.PolicyID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "policy_id", strings.Join(r.PolicyID, ",")) } } @@ -128,7 +128,7 @@ func (r SlmGetLifecycleRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -158,15 +158,15 @@ func (r SlmGetLifecycleRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.get_lifecycle") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.get_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.get_stats.go b/esapi/api.xpack.slm.get_stats.go index f7c0b1ccef..91f2f694ad 100644 --- a/esapi/api.xpack.slm.get_stats.go +++ b/esapi/api.xpack.slm.get_stats.go @@ -34,7 +34,7 @@ func newSlmGetStatsFunc(t Transport) SlmGetStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SlmGetStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SlmGetStatsRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.get_stats") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r SlmGetStatsRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SlmGetStatsRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.get_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.get_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.get_status.go b/esapi/api.xpack.slm.get_status.go index 746fcb2584..3e569f7ff7 100644 --- a/esapi/api.xpack.slm.get_status.go +++ b/esapi/api.xpack.slm.get_status.go @@ -34,7 +34,7 @@ func newSlmGetStatusFunc(t Transport) SlmGetStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SlmGetStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SlmGetStatusRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.get_status") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r SlmGetStatusRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SlmGetStatusRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.get_status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.get_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.put_lifecycle.go b/esapi/api.xpack.slm.put_lifecycle.go index a8ac4e814d..c4ad5e517e 100644 --- a/esapi/api.xpack.slm.put_lifecycle.go +++ b/esapi/api.xpack.slm.put_lifecycle.go @@ -35,7 +35,7 @@ func newSlmPutLifecycleFunc(t Transport) SlmPutLifecycle { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type SlmPutLifecycleRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r SlmPutLifecycleRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.put_lifecycle") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r SlmPutLifecycleRequest) Do(providedCtx context.Context, transport Transp path.WriteString("policy") path.WriteString("/") path.WriteString(r.PolicyID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "policy_id", r.PolicyID) } @@ -129,7 +129,7 @@ func (r SlmPutLifecycleRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -163,18 +163,18 @@ func (r SlmPutLifecycleRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.put_lifecycle") if reader := instrument.RecordRequestBody(ctx, "slm.put_lifecycle", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.put_lifecycle") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.start.go b/esapi/api.xpack.slm.start.go index 76aaea2819..36a18bf886 100644 --- a/esapi/api.xpack.slm.start.go +++ b/esapi/api.xpack.slm.start.go @@ -34,7 +34,7 @@ func newSlmStartFunc(t Transport) SlmStart { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SlmStartRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SlmStartRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.start") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r SlmStartRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SlmStartRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.start") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.start") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.slm.stop.go b/esapi/api.xpack.slm.stop.go index 1141187d73..b9449c4b62 100644 --- a/esapi/api.xpack.slm.stop.go +++ b/esapi/api.xpack.slm.stop.go @@ -34,7 +34,7 @@ func newSlmStopFunc(t Transport) SlmStop { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type SlmStopRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r SlmStopRequest) Do(providedCtx context.Context, transport Transport) (*R ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "slm.stop") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r SlmStopRequest) Do(providedCtx context.Context, transport Transport) (*R req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SlmStopRequest) Do(providedCtx context.Context, transport Transport) (*R req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "slm.stop") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "slm.stop") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.sql.clear_cursor.go b/esapi/api.xpack.sql.clear_cursor.go index 4c148e6944..b6fabc6d3d 100644 --- a/esapi/api.xpack.sql.clear_cursor.go +++ b/esapi/api.xpack.sql.clear_cursor.go @@ -34,7 +34,7 @@ func newSQLClearCursorFunc(t Transport) SQLClearCursor { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SQLClearCursorRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SQLClearCursorRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "sql.clear_cursor") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SQLClearCursorRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SQLClearCursorRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "sql.clear_cursor") if reader := instrument.RecordRequestBody(ctx, "sql.clear_cursor", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "sql.clear_cursor") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.sql.delete_async.go b/esapi/api.xpack.sql.delete_async.go index acd4638d53..2b586a5185 100644 --- a/esapi/api.xpack.sql.delete_async.go +++ b/esapi/api.xpack.sql.delete_async.go @@ -33,7 +33,7 @@ func newSQLDeleteAsyncFunc(t Transport) SQLDeleteAsync { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type SQLDeleteAsyncRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r SQLDeleteAsyncRequest) Do(providedCtx context.Context, transport Transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "sql.delete_async") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SQLDeleteAsyncRequest) Do(providedCtx context.Context, transport Transpo path.WriteString("delete") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -116,7 +116,7 @@ func (r SQLDeleteAsyncRequest) Do(providedCtx context.Context, transport Transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SQLDeleteAsyncRequest) Do(providedCtx context.Context, transport Transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "sql.delete_async") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "sql.delete_async") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.sql.get_async.go b/esapi/api.xpack.sql.get_async.go index 1db8a7b913..3d93fcfaec 100644 --- a/esapi/api.xpack.sql.get_async.go +++ b/esapi/api.xpack.sql.get_async.go @@ -34,7 +34,7 @@ func newSQLGetAsyncFunc(t Transport) SQLGetAsync { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type SQLGetAsyncRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r SQLGetAsyncRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "sql.get_async") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r SQLGetAsyncRequest) Do(providedCtx context.Context, transport Transport) path.WriteString("async") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -136,7 +136,7 @@ func (r SQLGetAsyncRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r SQLGetAsyncRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "sql.get_async") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "sql.get_async") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.sql.get_async_status.go b/esapi/api.xpack.sql.get_async_status.go index 436ee8da7c..3b0e37fb8b 100644 --- a/esapi/api.xpack.sql.get_async_status.go +++ b/esapi/api.xpack.sql.get_async_status.go @@ -33,7 +33,7 @@ func newSQLGetAsyncStatusFunc(t Transport) SQLGetAsyncStatus { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type SQLGetAsyncStatusRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r SQLGetAsyncStatusRequest) Do(providedCtx context.Context, transport Tran ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "sql.get_async_status") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r SQLGetAsyncStatusRequest) Do(providedCtx context.Context, transport Tran path.WriteString("status") path.WriteString("/") path.WriteString(r.DocumentID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.DocumentID) } @@ -116,7 +116,7 @@ func (r SQLGetAsyncStatusRequest) Do(providedCtx context.Context, transport Tran req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r SQLGetAsyncStatusRequest) Do(providedCtx context.Context, transport Tran req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "sql.get_async_status") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "sql.get_async_status") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.sql.query.go b/esapi/api.xpack.sql.query.go index 5c49b4b81e..71000d9a18 100644 --- a/esapi/api.xpack.sql.query.go +++ b/esapi/api.xpack.sql.query.go @@ -34,7 +34,7 @@ func newSQLQueryFunc(t Transport) SQLQuery { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type SQLQueryRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r SQLQueryRequest) Do(providedCtx context.Context, transport Transport) (* ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "sql.query") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r SQLQueryRequest) Do(providedCtx context.Context, transport Transport) (* req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,18 +147,18 @@ func (r SQLQueryRequest) Do(providedCtx context.Context, transport Transport) (* req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "sql.query") if reader := instrument.RecordRequestBody(ctx, "sql.query", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "sql.query") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.sql.translate.go b/esapi/api.xpack.sql.translate.go index c235917c8f..8c6dffb803 100644 --- a/esapi/api.xpack.sql.translate.go +++ b/esapi/api.xpack.sql.translate.go @@ -34,7 +34,7 @@ func newSQLTranslateFunc(t Transport) SQLTranslate { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type SQLTranslateRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r SQLTranslateRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "sql.translate") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r SQLTranslateRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r SQLTranslateRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "sql.translate") if reader := instrument.RecordRequestBody(ctx, "sql.translate", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "sql.translate") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.ssl.certificates.go b/esapi/api.xpack.ssl.certificates.go index f6abe39eed..5127bc514f 100644 --- a/esapi/api.xpack.ssl.certificates.go +++ b/esapi/api.xpack.ssl.certificates.go @@ -33,7 +33,7 @@ func newSSLCertificatesFunc(t Transport) SSLCertificates { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type SSLCertificatesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r SSLCertificatesRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "ssl.certificates") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r SSLCertificatesRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r SSLCertificatesRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "ssl.certificates") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "ssl.certificates") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.text_structure.find_field_structure.go b/esapi/api.xpack.text_structure.find_field_structure.go index 48864d88bc..385c0c9b74 100644 --- a/esapi/api.xpack.text_structure.find_field_structure.go +++ b/esapi/api.xpack.text_structure.find_field_structure.go @@ -28,14 +28,14 @@ import ( ) func newTextStructureFindFieldStructureFunc(t Transport) TextStructureFindFieldStructure { - return func(field string, index string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error) { - var r = TextStructureFindFieldStructureRequest{Index: index, Field: field} + return func(index string, field string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error) { + var r = TextStructureFindFieldStructureRequest{Field: field, Index: index} for _, f := range o { f(&r) } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -75,7 +75,7 @@ type TextStructureFindFieldStructureRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -87,7 +87,7 @@ func (r TextStructureFindFieldStructureRequest) Do(providedCtx context.Context, ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "text_structure.find_field_structure") defer instrument.Close(ctx) } @@ -177,7 +177,7 @@ func (r TextStructureFindFieldStructureRequest) Do(providedCtx context.Context, req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -207,15 +207,15 @@ func (r TextStructureFindFieldStructureRequest) Do(providedCtx context.Context, req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "text_structure.find_field_structure") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "text_structure.find_field_structure") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.text_structure.find_message_structure.go b/esapi/api.xpack.text_structure.find_message_structure.go index 552861e334..a0a2669b69 100644 --- a/esapi/api.xpack.text_structure.find_message_structure.go +++ b/esapi/api.xpack.text_structure.find_message_structure.go @@ -36,7 +36,7 @@ func newTextStructureFindMessageStructureFunc(t Transport) TextStructureFindMess } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -75,7 +75,7 @@ type TextStructureFindMessageStructureRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -87,7 +87,7 @@ func (r TextStructureFindMessageStructureRequest) Do(providedCtx context.Context ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "text_structure.find_message_structure") defer instrument.Close(ctx) } @@ -165,7 +165,7 @@ func (r TextStructureFindMessageStructureRequest) Do(providedCtx context.Context req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -199,18 +199,18 @@ func (r TextStructureFindMessageStructureRequest) Do(providedCtx context.Context req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "text_structure.find_message_structure") if reader := instrument.RecordRequestBody(ctx, "text_structure.find_message_structure", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "text_structure.find_message_structure") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.text_structure.find_structure.go b/esapi/api.xpack.text_structure.find_structure.go index fc0a2b7b06..e619004d44 100644 --- a/esapi/api.xpack.text_structure.find_structure.go +++ b/esapi/api.xpack.text_structure.find_structure.go @@ -36,7 +36,7 @@ func newTextStructureFindStructureFunc(t Transport) TextStructureFindStructure { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -79,7 +79,7 @@ type TextStructureFindStructureRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -91,7 +91,7 @@ func (r TextStructureFindStructureRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "text_structure.find_structure") defer instrument.Close(ctx) } @@ -185,7 +185,7 @@ func (r TextStructureFindStructureRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -219,18 +219,18 @@ func (r TextStructureFindStructureRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "text_structure.find_structure") if reader := instrument.RecordRequestBody(ctx, "text_structure.find_structure", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "text_structure.find_structure") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.text_structure.test_grok_pattern.go b/esapi/api.xpack.text_structure.test_grok_pattern.go index 64281754e2..89da21b2aa 100644 --- a/esapi/api.xpack.text_structure.test_grok_pattern.go +++ b/esapi/api.xpack.text_structure.test_grok_pattern.go @@ -34,7 +34,7 @@ func newTextStructureTestGrokPatternFunc(t Transport) TextStructureTestGrokPatte } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type TextStructureTestGrokPatternRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r TextStructureTestGrokPatternRequest) Do(providedCtx context.Context, tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "text_structure.test_grok_pattern") defer instrument.Close(ctx) } @@ -113,7 +113,7 @@ func (r TextStructureTestGrokPatternRequest) Do(providedCtx context.Context, tra req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,18 +147,18 @@ func (r TextStructureTestGrokPatternRequest) Do(providedCtx context.Context, tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "text_structure.test_grok_pattern") if reader := instrument.RecordRequestBody(ctx, "text_structure.test_grok_pattern", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "text_structure.test_grok_pattern") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.delete_transform.go b/esapi/api.xpack.transform.delete_transform.go index 670e3fb5f8..1e6891e663 100644 --- a/esapi/api.xpack.transform.delete_transform.go +++ b/esapi/api.xpack.transform.delete_transform.go @@ -35,7 +35,7 @@ func newTransformDeleteTransformFunc(t Transport) TransformDeleteTransform { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type TransformDeleteTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r TransformDeleteTransformRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.delete_transform") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r TransformDeleteTransformRequest) Do(providedCtx context.Context, transpo path.WriteString("_transform") path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } @@ -130,7 +130,7 @@ func (r TransformDeleteTransformRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,15 +160,15 @@ func (r TransformDeleteTransformRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.delete_transform") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.delete_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.get_node_stats.go b/esapi/api.xpack.transform.get_node_stats.go index ac85e06da1..e0ba26d948 100644 --- a/esapi/api.xpack.transform.get_node_stats.go +++ b/esapi/api.xpack.transform.get_node_stats.go @@ -33,7 +33,7 @@ func newTransformGetNodeStatsFunc(t Transport) TransformGetNodeStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -58,7 +58,7 @@ type TransformGetNodeStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -70,7 +70,7 @@ func (r TransformGetNodeStatsRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.get_node_stats") defer instrument.Close(ctx) } @@ -104,7 +104,7 @@ func (r TransformGetNodeStatsRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -134,15 +134,15 @@ func (r TransformGetNodeStatsRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + 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 { + 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 { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.get_transform.go b/esapi/api.xpack.transform.get_transform.go index 04bd93eca2..c46264407a 100644 --- a/esapi/api.xpack.transform.get_transform.go +++ b/esapi/api.xpack.transform.get_transform.go @@ -34,7 +34,7 @@ func newTransformGetTransformFunc(t Transport) TransformGetTransform { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type TransformGetTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r TransformGetTransformRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.get_transform") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r TransformGetTransformRequest) Do(providedCtx context.Context, transport if r.TransformID != "" { path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } } @@ -136,7 +136,7 @@ func (r TransformGetTransformRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -166,15 +166,15 @@ func (r TransformGetTransformRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.get_transform") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.get_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.get_transform_stats.go b/esapi/api.xpack.transform.get_transform_stats.go index 14bd87fa6c..6f1ef99a2e 100644 --- a/esapi/api.xpack.transform.get_transform_stats.go +++ b/esapi/api.xpack.transform.get_transform_stats.go @@ -35,7 +35,7 @@ func newTransformGetTransformStatsFunc(t Transport) TransformGetTransformStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -67,7 +67,7 @@ type TransformGetTransformStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -79,7 +79,7 @@ func (r TransformGetTransformStatsRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.get_transform_stats") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r TransformGetTransformStatsRequest) Do(providedCtx context.Context, trans path.WriteString("_transform") path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } path.WriteString("/") @@ -137,7 +137,7 @@ func (r TransformGetTransformStatsRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -167,15 +167,15 @@ func (r TransformGetTransformStatsRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.get_transform_stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.get_transform_stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.preview_transform.go b/esapi/api.xpack.transform.preview_transform.go index 6e57d4dfac..1500f906b3 100644 --- a/esapi/api.xpack.transform.preview_transform.go +++ b/esapi/api.xpack.transform.preview_transform.go @@ -35,7 +35,7 @@ func newTransformPreviewTransformFunc(t Transport) TransformPreviewTransform { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type TransformPreviewTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r TransformPreviewTransformRequest) Do(providedCtx context.Context, transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.preview_transform") defer instrument.Close(ctx) } @@ -95,7 +95,7 @@ func (r TransformPreviewTransformRequest) Do(providedCtx context.Context, transp if r.TransformID != "" { path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } } @@ -126,7 +126,7 @@ func (r TransformPreviewTransformRequest) Do(providedCtx context.Context, transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -160,18 +160,18 @@ func (r TransformPreviewTransformRequest) Do(providedCtx context.Context, transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.preview_transform") if reader := instrument.RecordRequestBody(ctx, "transform.preview_transform", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.preview_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.put_transform.go b/esapi/api.xpack.transform.put_transform.go index a2922c797a..8528741fb2 100644 --- a/esapi/api.xpack.transform.put_transform.go +++ b/esapi/api.xpack.transform.put_transform.go @@ -36,7 +36,7 @@ func newTransformPutTransformFunc(t Transport) TransformPutTransform { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type TransformPutTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r TransformPutTransformRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.put_transform") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r TransformPutTransformRequest) Do(providedCtx context.Context, transport path.WriteString("_transform") path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } @@ -128,7 +128,7 @@ func (r TransformPutTransformRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,18 +162,18 @@ func (r TransformPutTransformRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.put_transform") if reader := instrument.RecordRequestBody(ctx, "transform.put_transform", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.put_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.reset_transform.go b/esapi/api.xpack.transform.reset_transform.go index fcf4b7f345..7ff757065f 100644 --- a/esapi/api.xpack.transform.reset_transform.go +++ b/esapi/api.xpack.transform.reset_transform.go @@ -35,7 +35,7 @@ func newTransformResetTransformFunc(t Transport) TransformResetTransform { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type TransformResetTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r TransformResetTransformRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.reset_transform") defer instrument.Close(ctx) } @@ -93,7 +93,7 @@ func (r TransformResetTransformRequest) Do(providedCtx context.Context, transpor path.WriteString("_transform") path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } path.WriteString("/") @@ -127,7 +127,7 @@ func (r TransformResetTransformRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r TransformResetTransformRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.reset_transform") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.reset_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.schedule_now_transform.go b/esapi/api.xpack.transform.schedule_now_transform.go index 8098f8a79c..a28bb65651 100644 --- a/esapi/api.xpack.transform.schedule_now_transform.go +++ b/esapi/api.xpack.transform.schedule_now_transform.go @@ -34,7 +34,7 @@ func newTransformScheduleNowTransformFunc(t Transport) TransformScheduleNowTrans } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type TransformScheduleNowTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r TransformScheduleNowTransformRequest) Do(providedCtx context.Context, tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.schedule_now_transform") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r TransformScheduleNowTransformRequest) Do(providedCtx context.Context, tr path.WriteString("_transform") path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } path.WriteString("/") @@ -121,7 +121,7 @@ func (r TransformScheduleNowTransformRequest) Do(providedCtx context.Context, tr req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -151,15 +151,15 @@ func (r TransformScheduleNowTransformRequest) Do(providedCtx context.Context, tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.schedule_now_transform") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.schedule_now_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.start_transform.go b/esapi/api.xpack.transform.start_transform.go index 611d51f5d1..dc731270ad 100644 --- a/esapi/api.xpack.transform.start_transform.go +++ b/esapi/api.xpack.transform.start_transform.go @@ -34,7 +34,7 @@ func newTransformStartTransformFunc(t Transport) TransformStartTransform { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -64,7 +64,7 @@ type TransformStartTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -76,7 +76,7 @@ func (r TransformStartTransformRequest) Do(providedCtx context.Context, transpor ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.start_transform") defer instrument.Close(ctx) } @@ -92,7 +92,7 @@ func (r TransformStartTransformRequest) Do(providedCtx context.Context, transpor path.WriteString("_transform") path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } path.WriteString("/") @@ -126,7 +126,7 @@ func (r TransformStartTransformRequest) Do(providedCtx context.Context, transpor req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -156,15 +156,15 @@ func (r TransformStartTransformRequest) Do(providedCtx context.Context, transpor req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.start_transform") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.start_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.stop_transform.go b/esapi/api.xpack.transform.stop_transform.go index 35a311d370..fe37b3e881 100644 --- a/esapi/api.xpack.transform.stop_transform.go +++ b/esapi/api.xpack.transform.stop_transform.go @@ -35,7 +35,7 @@ func newTransformStopTransformFunc(t Transport) TransformStopTransform { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type TransformStopTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r TransformStopTransformRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.stop_transform") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r TransformStopTransformRequest) Do(providedCtx context.Context, transport path.WriteString("_transform") path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } path.WriteString("/") @@ -142,7 +142,7 @@ func (r TransformStopTransformRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -172,15 +172,15 @@ func (r TransformStopTransformRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.stop_transform") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.stop_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.update_transform.go b/esapi/api.xpack.transform.update_transform.go index 83fcd6c839..72e4341c1d 100644 --- a/esapi/api.xpack.transform.update_transform.go +++ b/esapi/api.xpack.transform.update_transform.go @@ -36,7 +36,7 @@ func newTransformUpdateTransformFunc(t Transport) TransformUpdateTransform { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -68,7 +68,7 @@ type TransformUpdateTransformRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -80,7 +80,7 @@ func (r TransformUpdateTransformRequest) Do(providedCtx context.Context, transpo ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.update_transform") defer instrument.Close(ctx) } @@ -96,7 +96,7 @@ func (r TransformUpdateTransformRequest) Do(providedCtx context.Context, transpo path.WriteString("_transform") path.WriteString("/") path.WriteString(r.TransformID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "transform_id", r.TransformID) } path.WriteString("/") @@ -130,7 +130,7 @@ func (r TransformUpdateTransformRequest) Do(providedCtx context.Context, transpo req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -164,18 +164,18 @@ func (r TransformUpdateTransformRequest) Do(providedCtx context.Context, transpo req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.update_transform") if reader := instrument.RecordRequestBody(ctx, "transform.update_transform", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.update_transform") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.transform.upgrade_transforms.go b/esapi/api.xpack.transform.upgrade_transforms.go index 0026d7d7e8..173df6f6db 100644 --- a/esapi/api.xpack.transform.upgrade_transforms.go +++ b/esapi/api.xpack.transform.upgrade_transforms.go @@ -35,7 +35,7 @@ func newTransformUpgradeTransformsFunc(t Transport) TransformUpgradeTransforms { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type TransformUpgradeTransformsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r TransformUpgradeTransformsRequest) Do(providedCtx context.Context, trans ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "transform.upgrade_transforms") defer instrument.Close(ctx) } @@ -117,7 +117,7 @@ func (r TransformUpgradeTransformsRequest) Do(providedCtx context.Context, trans req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -147,15 +147,15 @@ func (r TransformUpgradeTransformsRequest) Do(providedCtx context.Context, trans req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "transform.upgrade_transforms") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "transform.upgrade_transforms") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.ack_watch.go b/esapi/api.xpack.watcher.ack_watch.go index c1ffaa373d..f06366d6e8 100644 --- a/esapi/api.xpack.watcher.ack_watch.go +++ b/esapi/api.xpack.watcher.ack_watch.go @@ -33,7 +33,7 @@ func newWatcherAckWatchFunc(t Transport) WatcherAckWatch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type WatcherAckWatchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r WatcherAckWatchRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.ack_watch") defer instrument.Close(ctx) } @@ -91,7 +91,7 @@ func (r WatcherAckWatchRequest) Do(providedCtx context.Context, transport Transp path.WriteString("watch") path.WriteString("/") path.WriteString(r.WatchID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "watch_id", r.WatchID) } path.WriteString("/") @@ -99,7 +99,7 @@ func (r WatcherAckWatchRequest) Do(providedCtx context.Context, transport Transp if len(r.ActionID) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.ActionID, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "action_id", strings.Join(r.ActionID, ",")) } } @@ -124,7 +124,7 @@ func (r WatcherAckWatchRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -154,15 +154,15 @@ func (r WatcherAckWatchRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.ack_watch") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.ack_watch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.activate_watch.go b/esapi/api.xpack.watcher.activate_watch.go index 0f0d1a7e44..0089b34f39 100644 --- a/esapi/api.xpack.watcher.activate_watch.go +++ b/esapi/api.xpack.watcher.activate_watch.go @@ -33,7 +33,7 @@ func newWatcherActivateWatchFunc(t Transport) WatcherActivateWatch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type WatcherActivateWatchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r WatcherActivateWatchRequest) Do(providedCtx context.Context, transport T ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.activate_watch") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r WatcherActivateWatchRequest) Do(providedCtx context.Context, transport T path.WriteString("watch") path.WriteString("/") path.WriteString(r.WatchID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "watch_id", r.WatchID) } path.WriteString("/") @@ -116,7 +116,7 @@ func (r WatcherActivateWatchRequest) Do(providedCtx context.Context, transport T req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r WatcherActivateWatchRequest) Do(providedCtx context.Context, transport T req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.activate_watch") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.activate_watch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.deactivate_watch.go b/esapi/api.xpack.watcher.deactivate_watch.go index 1afdc36af9..26fec69979 100644 --- a/esapi/api.xpack.watcher.deactivate_watch.go +++ b/esapi/api.xpack.watcher.deactivate_watch.go @@ -33,7 +33,7 @@ func newWatcherDeactivateWatchFunc(t Transport) WatcherDeactivateWatch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type WatcherDeactivateWatchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r WatcherDeactivateWatchRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.deactivate_watch") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r WatcherDeactivateWatchRequest) Do(providedCtx context.Context, transport path.WriteString("watch") path.WriteString("/") path.WriteString(r.WatchID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "watch_id", r.WatchID) } path.WriteString("/") @@ -116,7 +116,7 @@ func (r WatcherDeactivateWatchRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r WatcherDeactivateWatchRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.deactivate_watch") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.deactivate_watch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.delete_watch.go b/esapi/api.xpack.watcher.delete_watch.go index eb47a0a74e..75fe410b0a 100644 --- a/esapi/api.xpack.watcher.delete_watch.go +++ b/esapi/api.xpack.watcher.delete_watch.go @@ -33,7 +33,7 @@ func newWatcherDeleteWatchFunc(t Transport) WatcherDeleteWatch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type WatcherDeleteWatchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r WatcherDeleteWatchRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.delete_watch") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r WatcherDeleteWatchRequest) Do(providedCtx context.Context, transport Tra path.WriteString("watch") path.WriteString("/") path.WriteString(r.WatchID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.WatchID) } @@ -114,7 +114,7 @@ func (r WatcherDeleteWatchRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r WatcherDeleteWatchRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.delete_watch") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.delete_watch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.execute_watch.go b/esapi/api.xpack.watcher.execute_watch.go index 45e780b70e..e97d503fa1 100644 --- a/esapi/api.xpack.watcher.execute_watch.go +++ b/esapi/api.xpack.watcher.execute_watch.go @@ -35,7 +35,7 @@ func newWatcherExecuteWatchFunc(t Transport) WatcherExecuteWatch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -66,7 +66,7 @@ type WatcherExecuteWatchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -78,7 +78,7 @@ func (r WatcherExecuteWatchRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.execute_watch") defer instrument.Close(ctx) } @@ -97,7 +97,7 @@ func (r WatcherExecuteWatchRequest) Do(providedCtx context.Context, transport Tr if r.WatchID != "" { path.WriteString("/") path.WriteString(r.WatchID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.WatchID) } } @@ -128,7 +128,7 @@ func (r WatcherExecuteWatchRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -162,18 +162,18 @@ func (r WatcherExecuteWatchRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.execute_watch") if reader := instrument.RecordRequestBody(ctx, "watcher.execute_watch", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.execute_watch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.get_settings.go b/esapi/api.xpack.watcher.get_settings.go index 45296bf4ed..34a7e78460 100644 --- a/esapi/api.xpack.watcher.get_settings.go +++ b/esapi/api.xpack.watcher.get_settings.go @@ -34,7 +34,7 @@ func newWatcherGetSettingsFunc(t Transport) WatcherGetSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type WatcherGetSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r WatcherGetSettingsRequest) Do(providedCtx context.Context, transport Tra ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.get_settings") defer instrument.Close(ctx) } @@ -111,7 +111,7 @@ func (r WatcherGetSettingsRequest) Do(providedCtx context.Context, transport Tra req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,15 +141,15 @@ func (r WatcherGetSettingsRequest) Do(providedCtx context.Context, transport Tra req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.get_settings") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.get_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.get_watch.go b/esapi/api.xpack.watcher.get_watch.go index c7cfa89100..4bfd435edd 100644 --- a/esapi/api.xpack.watcher.get_watch.go +++ b/esapi/api.xpack.watcher.get_watch.go @@ -33,7 +33,7 @@ func newWatcherGetWatchFunc(t Transport) WatcherGetWatch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -60,7 +60,7 @@ type WatcherGetWatchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -72,7 +72,7 @@ func (r WatcherGetWatchRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.get_watch") defer instrument.Close(ctx) } @@ -90,7 +90,7 @@ func (r WatcherGetWatchRequest) Do(providedCtx context.Context, transport Transp path.WriteString("watch") path.WriteString("/") path.WriteString(r.WatchID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.WatchID) } @@ -114,7 +114,7 @@ func (r WatcherGetWatchRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -144,15 +144,15 @@ func (r WatcherGetWatchRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.get_watch") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.get_watch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.put_watch.go b/esapi/api.xpack.watcher.put_watch.go index 0c703b3922..2644a6c0ca 100644 --- a/esapi/api.xpack.watcher.put_watch.go +++ b/esapi/api.xpack.watcher.put_watch.go @@ -35,7 +35,7 @@ func newWatcherPutWatchFunc(t Transport) WatcherPutWatch { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -69,7 +69,7 @@ type WatcherPutWatchRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -81,7 +81,7 @@ func (r WatcherPutWatchRequest) Do(providedCtx context.Context, transport Transp ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.put_watch") defer instrument.Close(ctx) } @@ -99,7 +99,7 @@ func (r WatcherPutWatchRequest) Do(providedCtx context.Context, transport Transp path.WriteString("watch") path.WriteString("/") path.WriteString(r.WatchID) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "id", r.WatchID) } @@ -139,7 +139,7 @@ func (r WatcherPutWatchRequest) Do(providedCtx context.Context, transport Transp req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -173,18 +173,18 @@ func (r WatcherPutWatchRequest) Do(providedCtx context.Context, transport Transp req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.put_watch") if reader := instrument.RecordRequestBody(ctx, "watcher.put_watch", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.put_watch") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.query_watches.go b/esapi/api.xpack.watcher.query_watches.go index 52359263af..37e9462eb3 100644 --- a/esapi/api.xpack.watcher.query_watches.go +++ b/esapi/api.xpack.watcher.query_watches.go @@ -34,7 +34,7 @@ func newWatcherQueryWatchesFunc(t Transport) WatcherQueryWatches { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type WatcherQueryWatchesRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r WatcherQueryWatchesRequest) Do(providedCtx context.Context, transport Tr ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.query_watches") defer instrument.Close(ctx) } @@ -107,7 +107,7 @@ func (r WatcherQueryWatchesRequest) Do(providedCtx context.Context, transport Tr req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,18 +141,18 @@ func (r WatcherQueryWatchesRequest) Do(providedCtx context.Context, transport Tr req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.query_watches") if reader := instrument.RecordRequestBody(ctx, "watcher.query_watches", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.query_watches") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.start.go b/esapi/api.xpack.watcher.start.go index bc0dc92153..21316169c1 100644 --- a/esapi/api.xpack.watcher.start.go +++ b/esapi/api.xpack.watcher.start.go @@ -34,7 +34,7 @@ func newWatcherStartFunc(t Transport) WatcherStart { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type WatcherStartRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r WatcherStartRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.start") defer instrument.Close(ctx) } @@ -111,7 +111,7 @@ func (r WatcherStartRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,15 +141,15 @@ func (r WatcherStartRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.start") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.start") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.stats.go b/esapi/api.xpack.watcher.stats.go index 6748aaa6e0..4cfbf8a46e 100644 --- a/esapi/api.xpack.watcher.stats.go +++ b/esapi/api.xpack.watcher.stats.go @@ -34,7 +34,7 @@ func newWatcherStatsFunc(t Transport) WatcherStats { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -63,7 +63,7 @@ type WatcherStatsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -75,7 +75,7 @@ func (r WatcherStatsRequest) Do(providedCtx context.Context, transport Transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.stats") defer instrument.Close(ctx) } @@ -94,7 +94,7 @@ func (r WatcherStatsRequest) Do(providedCtx context.Context, transport Transport if len(r.Metric) > 0 { path.WriteString("/") path.WriteString(strings.Join(r.Metric, ",")) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordPathPart(ctx, "metric", strings.Join(r.Metric, ",")) } } @@ -127,7 +127,7 @@ func (r WatcherStatsRequest) Do(providedCtx context.Context, transport Transport req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -157,15 +157,15 @@ func (r WatcherStatsRequest) Do(providedCtx context.Context, transport Transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.stats") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.stats") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.stop.go b/esapi/api.xpack.watcher.stop.go index 4039c30000..81733072b5 100644 --- a/esapi/api.xpack.watcher.stop.go +++ b/esapi/api.xpack.watcher.stop.go @@ -34,7 +34,7 @@ func newWatcherStopFunc(t Transport) WatcherStop { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type WatcherStopRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r WatcherStopRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.stop") defer instrument.Close(ctx) } @@ -111,7 +111,7 @@ func (r WatcherStopRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,15 +141,15 @@ func (r WatcherStopRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.stop") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.stop") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.watcher.update_settings.go b/esapi/api.xpack.watcher.update_settings.go index 902f231ed4..43d2bb0078 100644 --- a/esapi/api.xpack.watcher.update_settings.go +++ b/esapi/api.xpack.watcher.update_settings.go @@ -35,7 +35,7 @@ func newWatcherUpdateSettingsFunc(t Transport) WatcherUpdateSettings { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -65,7 +65,7 @@ type WatcherUpdateSettingsRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -77,7 +77,7 @@ func (r WatcherUpdateSettingsRequest) Do(providedCtx context.Context, transport ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "watcher.update_settings") defer instrument.Close(ctx) } @@ -119,7 +119,7 @@ func (r WatcherUpdateSettingsRequest) Do(providedCtx context.Context, transport req, err := newRequest(method, path.String(), r.Body) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -153,18 +153,18 @@ func (r WatcherUpdateSettingsRequest) Do(providedCtx context.Context, transport req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "watcher.update_settings") if reader := instrument.RecordRequestBody(ctx, "watcher.update_settings", r.Body); reader != nil { req.Body = reader } } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "watcher.update_settings") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.xpack.info.go b/esapi/api.xpack.xpack.info.go index acb40845b6..f2dc6efef8 100644 --- a/esapi/api.xpack.xpack.info.go +++ b/esapi/api.xpack.xpack.info.go @@ -34,7 +34,7 @@ func newXPackInfoFunc(t Transport) XPackInfo { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -62,7 +62,7 @@ type XPackInfoRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -74,7 +74,7 @@ func (r XPackInfoRequest) Do(providedCtx context.Context, transport Transport) ( ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "xpack.info") defer instrument.Close(ctx) } @@ -116,7 +116,7 @@ func (r XPackInfoRequest) Do(providedCtx context.Context, transport Transport) ( req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -146,15 +146,15 @@ func (r XPackInfoRequest) Do(providedCtx context.Context, transport Transport) ( req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "xpack.info") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "xpack.info") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/api.xpack.xpack.usage.go b/esapi/api.xpack.xpack.usage.go index 1aa9b0da70..3b86ffe1af 100644 --- a/esapi/api.xpack.xpack.usage.go +++ b/esapi/api.xpack.xpack.usage.go @@ -34,7 +34,7 @@ func newXPackUsageFunc(t Transport) XPackUsage { } if transport, ok := t.(Instrumented); ok { - r.instrument = transport.InstrumentationEnabled() + r.Instrument = transport.InstrumentationEnabled() } return r.Do(r.ctx, t) @@ -61,7 +61,7 @@ type XPackUsageRequest struct { ctx context.Context - instrument Instrumentation + Instrument Instrumentation } // Do executes the request and returns response or error. @@ -73,7 +73,7 @@ func (r XPackUsageRequest) Do(providedCtx context.Context, transport Transport) ctx context.Context ) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { ctx = instrument.Start(providedCtx, "xpack.usage") defer instrument.Close(ctx) } @@ -111,7 +111,7 @@ func (r XPackUsageRequest) Do(providedCtx context.Context, transport Transport) req, err := newRequest(method, path.String(), nil) if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err @@ -141,15 +141,15 @@ func (r XPackUsageRequest) Do(providedCtx context.Context, transport Transport) req = req.WithContext(ctx) } - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.BeforeRequest(req, "xpack.usage") } res, err := transport.Perform(req) - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.AfterRequest(req, "elasticsearch", "xpack.usage") } if err != nil { - if instrument, ok := r.instrument.(Instrumentation); ok { + if instrument, ok := r.Instrument.(Instrumentation); ok { instrument.RecordError(ctx, err) } return nil, err diff --git a/esapi/test/go.mod b/esapi/test/go.mod index a6868020ff..04a7d927ec 100644 --- a/esapi/test/go.mod +++ b/esapi/test/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.5 replace github.com/elastic/go-elasticsearch/v8 => ../../ require ( - github.com/elastic/elastic-transport-go/v8 v8.6.1 + github.com/elastic/elastic-transport-go/v8 v8.7.0 github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 gopkg.in/yaml.v2 v2.4.0 ) From 6af49754364cc5c6f2f7482d7a75ea5e9626d3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Saint-F=C3=A9lix?= Date: Wed, 16 Apr 2025 20:15:32 +0200 Subject: [PATCH 2/2] Update TypedAPI to v8.19.0 (f1932ce) --- typedapi/api._.go | 393 +++++++++++++- typedapi/asyncsearch/delete/delete.go | 2 +- typedapi/asyncsearch/delete/response.go | 4 +- typedapi/asyncsearch/get/get.go | 2 +- typedapi/asyncsearch/get/response.go | 4 +- typedapi/asyncsearch/status/response.go | 4 +- typedapi/asyncsearch/status/status.go | 2 +- typedapi/asyncsearch/submit/request.go | 6 +- typedapi/asyncsearch/submit/response.go | 4 +- typedapi/asyncsearch/submit/submit.go | 4 +- .../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 +- typedapi/capabilities/capabilities.go | 2 +- typedapi/cat/aliases/aliases.go | 2 +- typedapi/cat/aliases/response.go | 4 +- typedapi/cat/allocation/allocation.go | 2 +- typedapi/cat/allocation/response.go | 4 +- .../componenttemplates/component_templates.go | 2 +- typedapi/cat/componenttemplates/response.go | 4 +- typedapi/cat/count/count.go | 2 +- typedapi/cat/count/response.go | 4 +- typedapi/cat/fielddata/fielddata.go | 2 +- typedapi/cat/fielddata/response.go | 4 +- typedapi/cat/health/health.go | 2 +- typedapi/cat/health/response.go | 4 +- typedapi/cat/help/help.go | 2 +- typedapi/cat/help/response.go | 4 +- typedapi/cat/indices/indices.go | 2 +- typedapi/cat/indices/response.go | 4 +- typedapi/cat/master/master.go | 2 +- typedapi/cat/master/response.go | 4 +- typedapi/cat/mldatafeeds/ml_datafeeds.go | 2 +- typedapi/cat/mldatafeeds/response.go | 4 +- .../ml_data_frame_analytics.go | 2 +- typedapi/cat/mldataframeanalytics/response.go | 4 +- typedapi/cat/mljobs/ml_jobs.go | 2 +- typedapi/cat/mljobs/response.go | 4 +- .../cat/mltrainedmodels/ml_trained_models.go | 2 +- typedapi/cat/mltrainedmodels/response.go | 4 +- typedapi/cat/nodeattrs/nodeattrs.go | 2 +- typedapi/cat/nodeattrs/response.go | 4 +- typedapi/cat/nodes/nodes.go | 2 +- typedapi/cat/nodes/response.go | 4 +- typedapi/cat/pendingtasks/pending_tasks.go | 2 +- typedapi/cat/pendingtasks/response.go | 4 +- typedapi/cat/plugins/plugins.go | 2 +- typedapi/cat/plugins/response.go | 4 +- typedapi/cat/recovery/recovery.go | 2 +- typedapi/cat/recovery/response.go | 4 +- typedapi/cat/repositories/repositories.go | 2 +- typedapi/cat/repositories/response.go | 4 +- typedapi/cat/segments/response.go | 4 +- typedapi/cat/segments/segments.go | 2 +- typedapi/cat/shards/response.go | 4 +- typedapi/cat/shards/shards.go | 2 +- typedapi/cat/snapshots/response.go | 4 +- typedapi/cat/snapshots/snapshots.go | 2 +- typedapi/cat/tasks/response.go | 4 +- typedapi/cat/tasks/tasks.go | 2 +- typedapi/cat/templates/response.go | 4 +- typedapi/cat/templates/templates.go | 2 +- typedapi/cat/threadpool/response.go | 4 +- typedapi/cat/threadpool/thread_pool.go | 2 +- typedapi/cat/transforms/response.go | 4 +- typedapi/cat/transforms/transforms.go | 2 +- .../delete_auto_follow_pattern.go | 2 +- .../ccr/deleteautofollowpattern/response.go | 4 +- typedapi/ccr/follow/follow.go | 2 +- typedapi/ccr/follow/request.go | 4 +- typedapi/ccr/follow/response.go | 4 +- typedapi/ccr/followinfo/follow_info.go | 2 +- typedapi/ccr/followinfo/response.go | 4 +- typedapi/ccr/followstats/follow_stats.go | 2 +- typedapi/ccr/followstats/response.go | 4 +- .../ccr/forgetfollower/forget_follower.go | 2 +- typedapi/ccr/forgetfollower/request.go | 4 +- typedapi/ccr/forgetfollower/response.go | 4 +- .../get_auto_follow_pattern.go | 2 +- typedapi/ccr/getautofollowpattern/response.go | 4 +- .../pause_auto_follow_pattern.go | 2 +- .../ccr/pauseautofollowpattern/response.go | 4 +- typedapi/ccr/pausefollow/pause_follow.go | 2 +- typedapi/ccr/pausefollow/response.go | 4 +- .../put_auto_follow_pattern.go | 2 +- typedapi/ccr/putautofollowpattern/request.go | 4 +- typedapi/ccr/putautofollowpattern/response.go | 4 +- .../ccr/resumeautofollowpattern/response.go | 4 +- .../resume_auto_follow_pattern.go | 2 +- typedapi/ccr/resumefollow/request.go | 4 +- typedapi/ccr/resumefollow/response.go | 4 +- typedapi/ccr/resumefollow/resume_follow.go | 2 +- typedapi/ccr/stats/response.go | 4 +- typedapi/ccr/stats/stats.go | 2 +- typedapi/ccr/unfollow/response.go | 4 +- typedapi/ccr/unfollow/unfollow.go | 2 +- .../allocationexplain/allocation_explain.go | 2 +- typedapi/cluster/allocationexplain/request.go | 4 +- .../cluster/allocationexplain/response.go | 4 +- .../delete_component_template.go | 2 +- .../deletecomponenttemplate/response.go | 4 +- .../delete_voting_config_exclusions.go | 4 +- .../exists_component_template.go | 2 +- .../get_component_template.go | 2 +- .../cluster/getcomponenttemplate/response.go | 4 +- typedapi/cluster/getsettings/get_settings.go | 2 +- typedapi/cluster/getsettings/response.go | 4 +- typedapi/cluster/health/health.go | 2 +- typedapi/cluster/health/response.go | 9 +- typedapi/cluster/info/info.go | 2 +- typedapi/cluster/info/response.go | 4 +- .../cluster/pendingtasks/pending_tasks.go | 2 +- typedapi/cluster/pendingtasks/response.go | 4 +- .../post_voting_config_exclusions.go | 4 +- .../put_component_template.go | 2 +- .../cluster/putcomponenttemplate/request.go | 4 +- .../cluster/putcomponenttemplate/response.go | 4 +- typedapi/cluster/putsettings/put_settings.go | 2 +- typedapi/cluster/putsettings/request.go | 4 +- typedapi/cluster/putsettings/response.go | 4 +- typedapi/cluster/remoteinfo/remote_info.go | 2 +- typedapi/cluster/remoteinfo/response.go | 4 +- typedapi/cluster/reroute/request.go | 4 +- typedapi/cluster/reroute/reroute.go | 2 +- typedapi/cluster/reroute/response.go | 4 +- typedapi/cluster/state/response.go | 4 +- typedapi/cluster/state/state.go | 2 +- typedapi/cluster/stats/response.go | 4 +- typedapi/cluster/stats/stats.go | 2 +- typedapi/connector/checkin/check_in.go | 2 +- typedapi/connector/checkin/response.go | 4 +- typedapi/connector/delete/delete.go | 2 +- typedapi/connector/delete/response.go | 4 +- typedapi/connector/get/get.go | 2 +- typedapi/connector/get/response.go | 4 +- typedapi/connector/lastsync/last_sync.go | 2 +- typedapi/connector/lastsync/request.go | 4 +- typedapi/connector/lastsync/response.go | 4 +- typedapi/connector/list/list.go | 2 +- typedapi/connector/list/response.go | 4 +- typedapi/connector/post/post.go | 2 +- typedapi/connector/post/request.go | 4 +- typedapi/connector/post/response.go | 4 +- typedapi/connector/put/put.go | 2 +- typedapi/connector/put/request.go | 4 +- typedapi/connector/put/response.go | 4 +- typedapi/connector/secretpost/secret_post.go | 2 +- typedapi/connector/syncjobcancel/response.go | 4 +- .../syncjobcancel/sync_job_cancel.go | 2 +- typedapi/connector/syncjobcheckin/response.go | 4 +- .../syncjobcheckin/sync_job_check_in.go | 2 +- typedapi/connector/syncjobclaim/request.go | 4 +- typedapi/connector/syncjobclaim/response.go | 4 +- .../connector/syncjobclaim/sync_job_claim.go | 2 +- typedapi/connector/syncjobdelete/response.go | 4 +- .../syncjobdelete/sync_job_delete.go | 2 +- typedapi/connector/syncjoberror/request.go | 4 +- typedapi/connector/syncjoberror/response.go | 4 +- .../connector/syncjoberror/sync_job_error.go | 2 +- typedapi/connector/syncjobget/response.go | 4 +- typedapi/connector/syncjobget/sync_job_get.go | 2 +- typedapi/connector/syncjoblist/response.go | 4 +- .../connector/syncjoblist/sync_job_list.go | 2 +- typedapi/connector/syncjobpost/request.go | 4 +- typedapi/connector/syncjobpost/response.go | 4 +- .../connector/syncjobpost/sync_job_post.go | 2 +- .../connector/syncjobupdatestats/request.go | 4 +- .../connector/syncjobupdatestats/response.go | 4 +- .../sync_job_update_stats.go | 2 +- .../updateactivefiltering/response.go | 4 +- .../update_active_filtering.go | 2 +- typedapi/connector/updateapikeyid/request.go | 4 +- typedapi/connector/updateapikeyid/response.go | 4 +- .../updateapikeyid/update_api_key_id.go | 2 +- .../connector/updateconfiguration/request.go | 4 +- .../connector/updateconfiguration/response.go | 4 +- .../update_configuration.go | 2 +- typedapi/connector/updateerror/request.go | 4 +- typedapi/connector/updateerror/response.go | 4 +- .../connector/updateerror/update_error.go | 2 +- typedapi/connector/updatefeatures/request.go | 4 +- typedapi/connector/updatefeatures/response.go | 4 +- .../updatefeatures/update_features.go | 2 +- typedapi/connector/updatefiltering/request.go | 4 +- .../connector/updatefiltering/response.go | 4 +- .../updatefiltering/update_filtering.go | 2 +- .../updatefilteringvalidation/request.go | 4 +- .../updatefilteringvalidation/response.go | 4 +- .../update_filtering_validation.go | 2 +- typedapi/connector/updateindexname/request.go | 4 +- .../connector/updateindexname/response.go | 4 +- .../updateindexname/update_index_name.go | 2 +- typedapi/connector/updatename/request.go | 4 +- typedapi/connector/updatename/response.go | 4 +- typedapi/connector/updatename/update_name.go | 2 +- typedapi/connector/updatenative/request.go | 4 +- typedapi/connector/updatenative/response.go | 4 +- .../connector/updatenative/update_native.go | 2 +- typedapi/connector/updatepipeline/request.go | 4 +- typedapi/connector/updatepipeline/response.go | 4 +- .../updatepipeline/update_pipeline.go | 2 +- .../connector/updatescheduling/request.go | 4 +- .../connector/updatescheduling/response.go | 4 +- .../updatescheduling/update_scheduling.go | 2 +- .../connector/updateservicetype/request.go | 4 +- .../connector/updateservicetype/response.go | 4 +- .../updateservicetype/update_service_type.go | 2 +- typedapi/connector/updatestatus/request.go | 4 +- typedapi/connector/updatestatus/response.go | 4 +- .../connector/updatestatus/update_status.go | 2 +- typedapi/core/bulk/bulk.go | 2 +- typedapi/core/bulk/request.go | 4 +- typedapi/core/bulk/response.go | 4 +- typedapi/core/clearscroll/clear_scroll.go | 2 +- typedapi/core/clearscroll/request.go | 4 +- typedapi/core/clearscroll/response.go | 4 +- .../closepointintime/close_point_in_time.go | 2 +- typedapi/core/closepointintime/request.go | 4 +- typedapi/core/closepointintime/response.go | 4 +- typedapi/core/count/count.go | 2 +- typedapi/core/count/request.go | 4 +- typedapi/core/count/response.go | 4 +- typedapi/core/create/create.go | 2 +- typedapi/core/create/request.go | 4 +- typedapi/core/create/response.go | 4 +- typedapi/core/delete/delete.go | 2 +- typedapi/core/delete/response.go | 4 +- .../core/deletebyquery/delete_by_query.go | 4 +- typedapi/core/deletebyquery/request.go | 4 +- typedapi/core/deletebyquery/response.go | 4 +- .../delete_by_query_rethrottle.go | 2 +- .../core/deletebyqueryrethrottle/response.go | 4 +- typedapi/core/deletescript/delete_script.go | 2 +- typedapi/core/deletescript/response.go | 4 +- typedapi/core/exists/exists.go | 2 +- typedapi/core/existssource/exists_source.go | 2 +- typedapi/core/explain/explain.go | 2 +- typedapi/core/explain/request.go | 4 +- typedapi/core/explain/response.go | 4 +- typedapi/core/fieldcaps/field_caps.go | 2 +- typedapi/core/fieldcaps/request.go | 4 +- typedapi/core/fieldcaps/response.go | 4 +- typedapi/core/get/get.go | 2 +- typedapi/core/get/response.go | 4 +- typedapi/core/getscript/get_script.go | 2 +- typedapi/core/getscript/response.go | 4 +- .../getscriptcontext/get_script_context.go | 2 +- typedapi/core/getscriptcontext/response.go | 4 +- .../get_script_languages.go | 2 +- typedapi/core/getscriptlanguages/response.go | 4 +- typedapi/core/getsource/get_source.go | 2 +- typedapi/core/getsource/response.go | 4 +- typedapi/core/healthreport/health_report.go | 2 +- typedapi/core/healthreport/response.go | 4 +- typedapi/core/index/index.go | 2 +- typedapi/core/index/request.go | 4 +- typedapi/core/index/response.go | 4 +- typedapi/core/info/info.go | 2 +- typedapi/core/info/response.go | 4 +- typedapi/core/knnsearch/knn_search.go | 2 +- typedapi/core/knnsearch/request.go | 4 +- typedapi/core/knnsearch/response.go | 4 +- typedapi/core/mget/mget.go | 2 +- typedapi/core/mget/request.go | 4 +- typedapi/core/mget/response.go | 4 +- typedapi/core/msearch/msearch.go | 2 +- typedapi/core/msearch/request.go | 4 +- typedapi/core/msearch/response.go | 4 +- .../core/msearchtemplate/msearch_template.go | 2 +- typedapi/core/msearchtemplate/request.go | 4 +- typedapi/core/msearchtemplate/response.go | 4 +- typedapi/core/mtermvectors/mtermvectors.go | 2 +- typedapi/core/mtermvectors/request.go | 4 +- typedapi/core/mtermvectors/response.go | 4 +- .../openpointintime/open_point_in_time.go | 11 +- typedapi/core/openpointintime/request.go | 4 +- typedapi/core/openpointintime/response.go | 4 +- typedapi/core/ping/ping.go | 2 +- typedapi/core/putscript/put_script.go | 2 +- typedapi/core/putscript/request.go | 4 +- typedapi/core/putscript/response.go | 4 +- typedapi/core/rankeval/rank_eval.go | 2 +- typedapi/core/rankeval/request.go | 4 +- typedapi/core/rankeval/response.go | 4 +- typedapi/core/reindex/reindex.go | 2 +- typedapi/core/reindex/request.go | 4 +- typedapi/core/reindex/response.go | 4 +- .../reindexrethrottle/reindex_rethrottle.go | 2 +- typedapi/core/reindexrethrottle/response.go | 4 +- .../render_search_template.go | 2 +- typedapi/core/rendersearchtemplate/request.go | 4 +- .../core/rendersearchtemplate/response.go | 4 +- .../core/scriptspainlessexecute/request.go | 4 +- .../core/scriptspainlessexecute/response.go | 4 +- .../scripts_painless_execute.go | 2 +- typedapi/core/scroll/request.go | 4 +- typedapi/core/scroll/response.go | 4 +- typedapi/core/scroll/scroll.go | 2 +- typedapi/core/search/request.go | 7 +- typedapi/core/search/response.go | 4 +- typedapi/core/search/search.go | 5 +- typedapi/core/searchmvt/request.go | 4 +- typedapi/core/searchmvt/response.go | 4 +- typedapi/core/searchmvt/search_mvt.go | 2 +- typedapi/core/searchshards/response.go | 4 +- typedapi/core/searchshards/search_shards.go | 2 +- typedapi/core/searchtemplate/request.go | 4 +- typedapi/core/searchtemplate/response.go | 4 +- .../core/searchtemplate/search_template.go | 2 +- typedapi/core/termsenum/request.go | 4 +- typedapi/core/termsenum/response.go | 4 +- typedapi/core/termsenum/terms_enum.go | 2 +- typedapi/core/termvectors/request.go | 180 ++++++- typedapi/core/termvectors/response.go | 4 +- typedapi/core/termvectors/termvectors.go | 220 ++++---- typedapi/core/update/request.go | 4 +- typedapi/core/update/response.go | 4 +- typedapi/core/update/update.go | 2 +- typedapi/core/updatebyquery/request.go | 4 +- typedapi/core/updatebyquery/response.go | 4 +- .../core/updatebyquery/update_by_query.go | 4 +- .../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 +- typedapi/enrich/deletepolicy/delete_policy.go | 2 +- typedapi/enrich/deletepolicy/response.go | 4 +- .../enrich/executepolicy/execute_policy.go | 2 +- typedapi/enrich/executepolicy/response.go | 6 +- typedapi/enrich/getpolicy/get_policy.go | 2 +- typedapi/enrich/getpolicy/response.go | 4 +- typedapi/enrich/putpolicy/put_policy.go | 2 +- typedapi/enrich/putpolicy/request.go | 4 +- typedapi/enrich/putpolicy/response.go | 4 +- typedapi/enrich/stats/response.go | 4 +- typedapi/enrich/stats/stats.go | 2 +- typedapi/eql/delete/delete.go | 2 +- typedapi/eql/delete/response.go | 4 +- typedapi/eql/get/get.go | 2 +- typedapi/eql/get/response.go | 4 +- typedapi/eql/getstatus/get_status.go | 2 +- typedapi/eql/getstatus/response.go | 4 +- typedapi/eql/search/request.go | 4 +- typedapi/eql/search/response.go | 4 +- typedapi/eql/search/search.go | 2 +- typedapi/esql/asyncquery/async_query.go | 40 +- typedapi/esql/asyncquery/request.go | 122 ++++- typedapi/esql/asyncquery/response.go | 6 +- .../asyncquerydelete/async_query_delete.go | 2 +- typedapi/esql/asyncquerydelete/response.go | 4 +- .../esql/asyncqueryget/async_query_get.go | 2 +- typedapi/esql/asyncqueryget/response.go | 6 +- .../esql/asyncquerystop/async_query_stop.go | 2 +- typedapi/esql/asyncquerystop/response.go | 6 +- typedapi/esql/query/query.go | 11 +- typedapi/esql/query/request.go | 4 +- typedapi/esql/query/response.go | 4 +- typedapi/features/getfeatures/get_features.go | 2 +- typedapi/features/getfeatures/response.go | 4 +- .../features/resetfeatures/reset_features.go | 2 +- typedapi/features/resetfeatures/response.go | 4 +- .../globalcheckpoints/global_checkpoints.go | 2 +- typedapi/fleet/globalcheckpoints/response.go | 4 +- typedapi/fleet/msearch/msearch.go | 2 +- typedapi/fleet/msearch/request.go | 4 +- typedapi/fleet/msearch/response.go | 4 +- typedapi/fleet/postsecret/post_secret.go | 2 +- typedapi/fleet/search/request.go | 6 +- typedapi/fleet/search/response.go | 4 +- typedapi/fleet/search/search.go | 4 +- typedapi/graph/explore/explore.go | 2 +- typedapi/graph/explore/request.go | 4 +- typedapi/graph/explore/response.go | 4 +- .../ilm/deletelifecycle/delete_lifecycle.go | 2 +- typedapi/ilm/deletelifecycle/response.go | 4 +- .../ilm/explainlifecycle/explain_lifecycle.go | 2 +- typedapi/ilm/explainlifecycle/response.go | 4 +- typedapi/ilm/getlifecycle/get_lifecycle.go | 2 +- typedapi/ilm/getlifecycle/response.go | 4 +- typedapi/ilm/getstatus/get_status.go | 2 +- typedapi/ilm/getstatus/response.go | 4 +- .../migrate_to_data_tiers.go | 2 +- typedapi/ilm/migratetodatatiers/request.go | 4 +- typedapi/ilm/migratetodatatiers/response.go | 4 +- typedapi/ilm/movetostep/move_to_step.go | 2 +- typedapi/ilm/movetostep/request.go | 4 +- typedapi/ilm/movetostep/response.go | 4 +- typedapi/ilm/putlifecycle/put_lifecycle.go | 2 +- typedapi/ilm/putlifecycle/request.go | 4 +- typedapi/ilm/putlifecycle/response.go | 4 +- typedapi/ilm/removepolicy/remove_policy.go | 2 +- typedapi/ilm/removepolicy/response.go | 4 +- typedapi/ilm/retry/response.go | 4 +- typedapi/ilm/retry/retry.go | 2 +- typedapi/ilm/start/response.go | 4 +- typedapi/ilm/start/start.go | 2 +- typedapi/ilm/stop/response.go | 4 +- typedapi/ilm/stop/stop.go | 2 +- typedapi/indices/addblock/add_block.go | 2 +- typedapi/indices/addblock/response.go | 4 +- typedapi/indices/analyze/analyze.go | 2 +- typedapi/indices/analyze/request.go | 4 +- typedapi/indices/analyze/response.go | 4 +- .../cancel_migrate_reindex.go | 2 +- .../indices/cancelmigratereindex/response.go | 4 +- typedapi/indices/clearcache/clear_cache.go | 2 +- typedapi/indices/clearcache/response.go | 4 +- typedapi/indices/clone/clone.go | 2 +- typedapi/indices/clone/request.go | 4 +- typedapi/indices/clone/response.go | 4 +- typedapi/indices/close/close.go | 2 +- typedapi/indices/close/response.go | 4 +- typedapi/indices/create/create.go | 2 +- typedapi/indices/create/request.go | 4 +- typedapi/indices/create/response.go | 4 +- .../createdatastream/create_data_stream.go | 2 +- typedapi/indices/createdatastream/response.go | 4 +- typedapi/indices/createfrom/create_from.go | 2 +- typedapi/indices/createfrom/request.go | 4 +- typedapi/indices/createfrom/response.go | 4 +- .../datastreamsstats/data_streams_stats.go | 2 +- typedapi/indices/datastreamsstats/response.go | 4 +- typedapi/indices/delete/delete.go | 2 +- typedapi/indices/delete/response.go | 4 +- typedapi/indices/deletealias/delete_alias.go | 2 +- typedapi/indices/deletealias/response.go | 4 +- .../delete_data_lifecycle.go | 2 +- .../indices/deletedatalifecycle/response.go | 4 +- .../deletedatastream/delete_data_stream.go | 2 +- typedapi/indices/deletedatastream/response.go | 4 +- .../delete_index_template.go | 2 +- .../indices/deleteindextemplate/response.go | 4 +- .../indices/deletetemplate/delete_template.go | 2 +- typedapi/indices/deletetemplate/response.go | 4 +- typedapi/indices/diskusage/disk_usage.go | 2 +- typedapi/indices/diskusage/response.go | 4 +- typedapi/indices/downsample/downsample.go | 2 +- typedapi/indices/downsample/request.go | 4 +- typedapi/indices/downsample/response.go | 4 +- typedapi/indices/exists/exists.go | 2 +- typedapi/indices/existsalias/exists_alias.go | 2 +- .../exists_index_template.go | 19 +- .../indices/existstemplate/exists_template.go | 2 +- .../explain_data_lifecycle.go | 2 +- .../indices/explaindatalifecycle/response.go | 4 +- .../fieldusagestats/field_usage_stats.go | 13 +- typedapi/indices/fieldusagestats/response.go | 4 +- typedapi/indices/flush/flush.go | 2 +- typedapi/indices/flush/response.go | 4 +- typedapi/indices/forcemerge/forcemerge.go | 2 +- typedapi/indices/forcemerge/response.go | 4 +- typedapi/indices/get/get.go | 2 +- typedapi/indices/get/response.go | 4 +- typedapi/indices/getalias/get_alias.go | 2 +- typedapi/indices/getalias/response.go | 4 +- .../getdatalifecycle/get_data_lifecycle.go | 2 +- typedapi/indices/getdatalifecycle/response.go | 4 +- .../get_data_lifecycle_stats.go | 2 +- .../indices/getdatalifecyclestats/response.go | 4 +- .../indices/getdatastream/get_data_stream.go | 2 +- typedapi/indices/getdatastream/response.go | 4 +- .../getfieldmapping/get_field_mapping.go | 2 +- typedapi/indices/getfieldmapping/response.go | 4 +- .../getindextemplate/get_index_template.go | 2 +- typedapi/indices/getindextemplate/response.go | 4 +- typedapi/indices/getmapping/get_mapping.go | 2 +- typedapi/indices/getmapping/response.go | 4 +- .../get_migrate_reindex_status.go | 2 +- .../getmigratereindexstatus/response.go | 4 +- typedapi/indices/getsettings/get_settings.go | 2 +- typedapi/indices/getsettings/response.go | 4 +- typedapi/indices/gettemplate/get_template.go | 2 +- typedapi/indices/gettemplate/response.go | 4 +- .../indices/migratereindex/migrate_reindex.go | 2 +- typedapi/indices/migratereindex/request.go | 4 +- typedapi/indices/migratereindex/response.go | 4 +- .../migrate_to_data_stream.go | 2 +- .../indices/migratetodatastream/response.go | 4 +- .../modifydatastream/modify_data_stream.go | 2 +- typedapi/indices/modifydatastream/request.go | 4 +- typedapi/indices/modifydatastream/response.go | 4 +- typedapi/indices/open/open.go | 2 +- typedapi/indices/open/response.go | 4 +- .../promotedatastream/promote_data_stream.go | 2 +- .../indices/promotedatastream/response.go | 4 +- typedapi/indices/putalias/put_alias.go | 2 +- typedapi/indices/putalias/request.go | 4 +- typedapi/indices/putalias/response.go | 4 +- .../putdatalifecycle/put_data_lifecycle.go | 2 +- typedapi/indices/putdatalifecycle/request.go | 4 +- typedapi/indices/putdatalifecycle/response.go | 4 +- .../putindextemplate/put_index_template.go | 2 +- typedapi/indices/putindextemplate/request.go | 4 +- typedapi/indices/putindextemplate/response.go | 4 +- typedapi/indices/putmapping/put_mapping.go | 2 +- typedapi/indices/putmapping/request.go | 4 +- typedapi/indices/putmapping/response.go | 4 +- typedapi/indices/putsettings/put_settings.go | 12 +- typedapi/indices/putsettings/request.go | 4 +- typedapi/indices/putsettings/response.go | 4 +- typedapi/indices/puttemplate/put_template.go | 3 +- typedapi/indices/puttemplate/request.go | 4 +- typedapi/indices/puttemplate/response.go | 4 +- typedapi/indices/recovery/recovery.go | 2 +- typedapi/indices/recovery/response.go | 4 +- typedapi/indices/refresh/refresh.go | 2 +- typedapi/indices/refresh/response.go | 4 +- .../reload_search_analyzers.go | 10 +- .../indices/reloadsearchanalyzers/response.go | 4 +- .../indices/resolvecluster/resolve_cluster.go | 2 +- typedapi/indices/resolvecluster/response.go | 4 +- .../indices/resolveindex/resolve_index.go | 2 +- typedapi/indices/resolveindex/response.go | 4 +- typedapi/indices/rollover/request.go | 4 +- typedapi/indices/rollover/response.go | 4 +- typedapi/indices/rollover/rollover.go | 12 +- typedapi/indices/segments/response.go | 4 +- typedapi/indices/segments/segments.go | 2 +- typedapi/indices/shardstores/response.go | 4 +- typedapi/indices/shardstores/shard_stores.go | 2 +- typedapi/indices/shrink/request.go | 4 +- typedapi/indices/shrink/response.go | 4 +- typedapi/indices/shrink/shrink.go | 2 +- .../indices/simulateindextemplate/response.go | 4 +- .../simulate_index_template.go | 20 +- typedapi/indices/simulatetemplate/request.go | 4 +- typedapi/indices/simulatetemplate/response.go | 4 +- .../simulatetemplate/simulate_template.go | 11 +- typedapi/indices/split/request.go | 4 +- typedapi/indices/split/response.go | 4 +- typedapi/indices/split/split.go | 2 +- typedapi/indices/stats/response.go | 4 +- typedapi/indices/stats/stats.go | 2 +- typedapi/indices/unfreeze/response.go | 4 +- typedapi/indices/unfreeze/unfreeze.go | 2 +- typedapi/indices/updatealiases/request.go | 4 +- typedapi/indices/updatealiases/response.go | 4 +- .../indices/updatealiases/update_aliases.go | 2 +- typedapi/indices/validatequery/request.go | 4 +- typedapi/indices/validatequery/response.go | 4 +- .../indices/validatequery/validate_query.go | 2 +- .../chat_completion_unified.go | 2 +- .../chatcompletionunified/request.go | 176 +------ .../chatcompletionunified/response.go | 4 +- typedapi/inference/completion/completion.go | 2 +- typedapi/inference/completion/request.go | 4 +- typedapi/inference/completion/response.go | 4 +- typedapi/inference/delete/delete.go | 2 +- typedapi/inference/delete/response.go | 4 +- typedapi/inference/get/get.go | 2 +- typedapi/inference/get/response.go | 4 +- typedapi/inference/inference/inference.go | 478 +++++++++++++++++ typedapi/inference/inference/request.go | 122 +++++ typedapi/inference/inference/response.go | 48 ++ typedapi/inference/put/put.go | 2 +- typedapi/inference/put/request.go | 4 +- typedapi/inference/put/response.go | 4 +- .../putalibabacloud/put_alibabacloud.go | 456 ++++++++++++++++ typedapi/inference/putalibabacloud/request.go | 66 +++ .../inference/putalibabacloud/response.go | 53 ++ .../putamazonbedrock/put_amazonbedrock.go | 472 +++++++++++++++++ .../inference/putamazonbedrock/request.go | 66 +++ .../inference/putamazonbedrock/response.go | 53 ++ .../inference/putanthropic/put_anthropic.go | 457 +++++++++++++++++ typedapi/inference/putanthropic/request.go | 66 +++ typedapi/inference/putanthropic/response.go | 53 ++ .../putazureaistudio/put_azureaistudio.go | 456 ++++++++++++++++ .../inference/putazureaistudio/request.go | 66 +++ .../inference/putazureaistudio/response.go | 53 ++ .../putazureopenai/put_azureopenai.go | 482 +++++++++++++++++ typedapi/inference/putazureopenai/request.go | 66 +++ typedapi/inference/putazureopenai/response.go | 53 ++ typedapi/inference/putcohere/put_cohere.go | 456 ++++++++++++++++ typedapi/inference/putcohere/request.go | 66 +++ typedapi/inference/putcohere/response.go | 53 ++ .../putelasticsearch/put_elasticsearch.go | 485 ++++++++++++++++++ .../inference/putelasticsearch/request.go | 66 +++ .../inference/putelasticsearch/response.go | 53 ++ typedapi/inference/putelser/put_elser.go | 470 +++++++++++++++++ typedapi/inference/putelser/request.go | 63 +++ typedapi/inference/putelser/response.go | 53 ++ .../putgoogleaistudio/put_googleaistudio.go | 442 ++++++++++++++++ .../inference/putgoogleaistudio/request.go | 63 +++ .../inference/putgoogleaistudio/response.go | 53 ++ .../putgooglevertexai/put_googlevertexai.go | 456 ++++++++++++++++ .../inference/putgooglevertexai/request.go | 66 +++ .../inference/putgooglevertexai/response.go | 53 ++ .../puthuggingface/put_hugging_face.go | 478 +++++++++++++++++ typedapi/inference/puthuggingface/request.go | 63 +++ typedapi/inference/puthuggingface/response.go | 53 ++ typedapi/inference/putjinaai/put_jinaai.go | 464 +++++++++++++++++ typedapi/inference/putjinaai/request.go | 66 +++ typedapi/inference/putjinaai/response.go | 53 ++ typedapi/inference/putmistral/put_mistral.go | 443 ++++++++++++++++ typedapi/inference/putmistral/request.go | 63 +++ typedapi/inference/putmistral/response.go | 53 ++ typedapi/inference/putopenai/put_openai.go | 10 +- typedapi/inference/putopenai/request.go | 8 +- typedapi/inference/putopenai/response.go | 4 +- .../inference/putvoyageai/put_voyageai.go | 442 ++++++++++++++++ typedapi/inference/putvoyageai/request.go | 66 +++ typedapi/inference/putvoyageai/response.go | 53 ++ typedapi/inference/putwatsonx/put_watsonx.go | 6 +- typedapi/inference/putwatsonx/request.go | 8 +- typedapi/inference/putwatsonx/response.go | 4 +- typedapi/inference/rerank/request.go | 4 +- typedapi/inference/rerank/rerank.go | 2 +- typedapi/inference/rerank/response.go | 4 +- typedapi/inference/sparseembedding/request.go | 4 +- .../inference/sparseembedding/response.go | 4 +- .../sparseembedding/sparse_embedding.go | 2 +- .../inference/streamcompletion/request.go | 4 +- .../inference/streamcompletion/response.go | 4 +- .../streamcompletion/stream_completion.go | 2 +- typedapi/inference/textembedding/request.go | 4 +- typedapi/inference/textembedding/response.go | 4 +- .../inference/textembedding/text_embedding.go | 2 +- typedapi/inference/update/request.go | 4 +- typedapi/inference/update/response.go | 4 +- typedapi/inference/update/update.go | 2 +- .../delete_geoip_database.go | 2 +- .../ingest/deletegeoipdatabase/response.go | 4 +- .../delete_ip_location_database.go | 2 +- .../deleteiplocationdatabase/response.go | 4 +- .../ingest/deletepipeline/delete_pipeline.go | 2 +- typedapi/ingest/deletepipeline/response.go | 4 +- typedapi/ingest/geoipstats/geo_ip_stats.go | 2 +- typedapi/ingest/geoipstats/response.go | 4 +- .../getgeoipdatabase/get_geoip_database.go | 2 +- typedapi/ingest/getgeoipdatabase/response.go | 4 +- .../get_ip_location_database.go | 2 +- .../ingest/getiplocationdatabase/response.go | 4 +- typedapi/ingest/getpipeline/get_pipeline.go | 2 +- typedapi/ingest/getpipeline/response.go | 4 +- .../ingest/processorgrok/processor_grok.go | 2 +- typedapi/ingest/processorgrok/response.go | 4 +- .../putgeoipdatabase/put_geoip_database.go | 2 +- typedapi/ingest/putgeoipdatabase/request.go | 4 +- typedapi/ingest/putgeoipdatabase/response.go | 4 +- .../put_ip_location_database.go | 2 +- .../ingest/putiplocationdatabase/request.go | 4 +- .../ingest/putiplocationdatabase/response.go | 4 +- typedapi/ingest/putpipeline/put_pipeline.go | 2 +- typedapi/ingest/putpipeline/request.go | 4 +- typedapi/ingest/putpipeline/response.go | 4 +- typedapi/ingest/simulate/request.go | 4 +- typedapi/ingest/simulate/response.go | 4 +- typedapi/ingest/simulate/simulate.go | 2 +- typedapi/license/delete/delete.go | 2 +- typedapi/license/delete/response.go | 4 +- typedapi/license/get/get.go | 2 +- typedapi/license/get/response.go | 4 +- .../getbasicstatus/get_basic_status.go | 2 +- typedapi/license/getbasicstatus/response.go | 4 +- .../gettrialstatus/get_trial_status.go | 2 +- typedapi/license/gettrialstatus/response.go | 4 +- typedapi/license/post/post.go | 4 +- typedapi/license/post/request.go | 4 +- typedapi/license/post/response.go | 4 +- .../poststartbasic/post_start_basic.go | 2 +- typedapi/license/poststartbasic/response.go | 4 +- .../poststarttrial/post_start_trial.go | 2 +- typedapi/license/poststarttrial/response.go | 4 +- .../deletepipeline/delete_pipeline.go | 2 +- typedapi/logstash/getpipeline/get_pipeline.go | 2 +- typedapi/logstash/getpipeline/response.go | 4 +- typedapi/logstash/putpipeline/put_pipeline.go | 2 +- typedapi/logstash/putpipeline/request.go | 4 +- .../migration/deprecations/deprecations.go | 2 +- typedapi/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 | 2 +- .../response.go | 4 +- typedapi/ml/closejob/close_job.go | 2 +- typedapi/ml/closejob/request.go | 4 +- typedapi/ml/closejob/response.go | 4 +- typedapi/ml/deletecalendar/delete_calendar.go | 2 +- typedapi/ml/deletecalendar/response.go | 4 +- .../delete_calendar_event.go | 2 +- typedapi/ml/deletecalendarevent/response.go | 4 +- .../deletecalendarjob/delete_calendar_job.go | 2 +- typedapi/ml/deletecalendarjob/response.go | 4 +- typedapi/ml/deletedatafeed/delete_datafeed.go | 2 +- typedapi/ml/deletedatafeed/response.go | 4 +- .../delete_data_frame_analytics.go | 2 +- .../ml/deletedataframeanalytics/response.go | 4 +- .../deleteexpireddata/delete_expired_data.go | 2 +- typedapi/ml/deleteexpireddata/request.go | 4 +- typedapi/ml/deleteexpireddata/response.go | 4 +- typedapi/ml/deletefilter/delete_filter.go | 2 +- typedapi/ml/deletefilter/response.go | 4 +- typedapi/ml/deleteforecast/delete_forecast.go | 2 +- typedapi/ml/deleteforecast/response.go | 4 +- typedapi/ml/deletejob/delete_job.go | 2 +- typedapi/ml/deletejob/response.go | 4 +- .../delete_model_snapshot.go | 2 +- typedapi/ml/deletemodelsnapshot/response.go | 4 +- .../delete_trained_model.go | 2 +- typedapi/ml/deletetrainedmodel/response.go | 4 +- .../delete_trained_model_alias.go | 2 +- .../ml/deletetrainedmodelalias/response.go | 4 +- .../estimate_model_memory.go | 2 +- typedapi/ml/estimatemodelmemory/request.go | 4 +- typedapi/ml/estimatemodelmemory/response.go | 4 +- .../evaluatedataframe/evaluate_data_frame.go | 2 +- typedapi/ml/evaluatedataframe/request.go | 4 +- typedapi/ml/evaluatedataframe/response.go | 4 +- .../explain_data_frame_analytics.go | 2 +- .../ml/explaindataframeanalytics/request.go | 4 +- .../ml/explaindataframeanalytics/response.go | 4 +- typedapi/ml/flushjob/flush_job.go | 2 +- typedapi/ml/flushjob/request.go | 4 +- typedapi/ml/flushjob/response.go | 4 +- typedapi/ml/forecast/forecast.go | 2 +- typedapi/ml/forecast/request.go | 4 +- typedapi/ml/forecast/response.go | 4 +- typedapi/ml/getbuckets/get_buckets.go | 2 +- typedapi/ml/getbuckets/request.go | 4 +- 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 +- typedapi/ml/getcalendars/request.go | 4 +- typedapi/ml/getcalendars/response.go | 4 +- typedapi/ml/getcategories/get_categories.go | 2 +- typedapi/ml/getcategories/request.go | 4 +- typedapi/ml/getcategories/response.go | 4 +- typedapi/ml/getdatafeeds/get_datafeeds.go | 2 +- typedapi/ml/getdatafeeds/response.go | 4 +- .../ml/getdatafeedstats/get_datafeed_stats.go | 2 +- typedapi/ml/getdatafeedstats/response.go | 4 +- .../get_data_frame_analytics.go | 2 +- typedapi/ml/getdataframeanalytics/response.go | 4 +- .../get_data_frame_analytics_stats.go | 2 +- .../ml/getdataframeanalyticsstats/response.go | 4 +- typedapi/ml/getfilters/get_filters.go | 2 +- typedapi/ml/getfilters/response.go | 4 +- typedapi/ml/getinfluencers/get_influencers.go | 2 +- typedapi/ml/getinfluencers/request.go | 4 +- typedapi/ml/getinfluencers/response.go | 4 +- typedapi/ml/getjobs/get_jobs.go | 2 +- typedapi/ml/getjobs/response.go | 4 +- typedapi/ml/getjobstats/get_job_stats.go | 2 +- typedapi/ml/getjobstats/response.go | 4 +- .../ml/getmemorystats/get_memory_stats.go | 2 +- 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 | 2 +- .../getmodelsnapshotupgradestats/response.go | 4 +- .../getoverallbuckets/get_overall_buckets.go | 2 +- typedapi/ml/getoverallbuckets/request.go | 4 +- typedapi/ml/getoverallbuckets/response.go | 4 +- typedapi/ml/getrecords/get_records.go | 2 +- typedapi/ml/getrecords/request.go | 4 +- typedapi/ml/getrecords/response.go | 4 +- .../ml/gettrainedmodels/get_trained_models.go | 2 +- typedapi/ml/gettrainedmodels/response.go | 4 +- .../get_trained_models_stats.go | 2 +- typedapi/ml/gettrainedmodelsstats/response.go | 4 +- .../infertrainedmodel/infer_trained_model.go | 2 +- typedapi/ml/infertrainedmodel/request.go | 4 +- typedapi/ml/infertrainedmodel/response.go | 4 +- typedapi/ml/info/info.go | 2 +- typedapi/ml/info/response.go | 4 +- typedapi/ml/openjob/open_job.go | 2 +- typedapi/ml/openjob/request.go | 4 +- typedapi/ml/openjob/response.go | 4 +- .../post_calendar_events.go | 2 +- typedapi/ml/postcalendarevents/request.go | 4 +- typedapi/ml/postcalendarevents/response.go | 4 +- typedapi/ml/postdata/post_data.go | 2 +- typedapi/ml/postdata/request.go | 4 +- typedapi/ml/postdata/response.go | 4 +- .../ml/previewdatafeed/preview_datafeed.go | 2 +- typedapi/ml/previewdatafeed/request.go | 4 +- typedapi/ml/previewdatafeed/response.go | 4 +- .../preview_data_frame_analytics.go | 2 +- .../ml/previewdataframeanalytics/request.go | 4 +- .../ml/previewdataframeanalytics/response.go | 4 +- typedapi/ml/putcalendar/put_calendar.go | 2 +- typedapi/ml/putcalendar/request.go | 4 +- typedapi/ml/putcalendar/response.go | 4 +- .../ml/putcalendarjob/put_calendar_job.go | 2 +- typedapi/ml/putcalendarjob/response.go | 4 +- typedapi/ml/putdatafeed/put_datafeed.go | 2 +- typedapi/ml/putdatafeed/request.go | 4 +- typedapi/ml/putdatafeed/response.go | 4 +- .../put_data_frame_analytics.go | 2 +- typedapi/ml/putdataframeanalytics/request.go | 4 +- typedapi/ml/putdataframeanalytics/response.go | 4 +- typedapi/ml/putfilter/put_filter.go | 2 +- typedapi/ml/putfilter/request.go | 4 +- typedapi/ml/putfilter/response.go | 4 +- typedapi/ml/putjob/put_job.go | 2 +- typedapi/ml/putjob/request.go | 4 +- typedapi/ml/putjob/response.go | 4 +- .../ml/puttrainedmodel/put_trained_model.go | 2 +- typedapi/ml/puttrainedmodel/request.go | 4 +- typedapi/ml/puttrainedmodel/response.go | 21 +- .../put_trained_model_alias.go | 2 +- typedapi/ml/puttrainedmodelalias/response.go | 4 +- .../put_trained_model_definition_part.go | 2 +- .../puttrainedmodeldefinitionpart/request.go | 4 +- .../puttrainedmodeldefinitionpart/response.go | 4 +- .../put_trained_model_vocabulary.go | 2 +- .../ml/puttrainedmodelvocabulary/request.go | 4 +- .../ml/puttrainedmodelvocabulary/response.go | 4 +- typedapi/ml/resetjob/reset_job.go | 2 +- typedapi/ml/resetjob/response.go | 4 +- typedapi/ml/revertmodelsnapshot/request.go | 4 +- typedapi/ml/revertmodelsnapshot/response.go | 4 +- .../revert_model_snapshot.go | 2 +- typedapi/ml/setupgrademode/response.go | 4 +- .../ml/setupgrademode/set_upgrade_mode.go | 2 +- typedapi/ml/startdatafeed/request.go | 4 +- typedapi/ml/startdatafeed/response.go | 4 +- typedapi/ml/startdatafeed/start_datafeed.go | 2 +- .../ml/startdataframeanalytics/response.go | 4 +- .../start_data_frame_analytics.go | 2 +- .../ml/starttrainedmodeldeployment/request.go | 4 +- .../starttrainedmodeldeployment/response.go | 4 +- .../start_trained_model_deployment.go | 2 +- typedapi/ml/stopdatafeed/request.go | 4 +- typedapi/ml/stopdatafeed/response.go | 4 +- typedapi/ml/stopdatafeed/stop_datafeed.go | 2 +- .../ml/stopdataframeanalytics/response.go | 4 +- .../stop_data_frame_analytics.go | 2 +- .../ml/stoptrainedmodeldeployment/response.go | 4 +- .../stop_trained_model_deployment.go | 2 +- typedapi/ml/updatedatafeed/request.go | 4 +- typedapi/ml/updatedatafeed/response.go | 4 +- typedapi/ml/updatedatafeed/update_datafeed.go | 2 +- .../ml/updatedataframeanalytics/request.go | 4 +- .../ml/updatedataframeanalytics/response.go | 4 +- .../update_data_frame_analytics.go | 4 +- typedapi/ml/updatefilter/request.go | 4 +- typedapi/ml/updatefilter/response.go | 4 +- typedapi/ml/updatefilter/update_filter.go | 2 +- typedapi/ml/updatejob/request.go | 4 +- typedapi/ml/updatejob/response.go | 4 +- typedapi/ml/updatejob/update_job.go | 2 +- typedapi/ml/updatemodelsnapshot/request.go | 4 +- typedapi/ml/updatemodelsnapshot/response.go | 4 +- .../update_model_snapshot.go | 2 +- .../updatetrainedmodeldeployment/request.go | 4 +- .../updatetrainedmodeldeployment/response.go | 4 +- .../update_trained_model_deployment.go | 4 +- typedapi/ml/upgradejobsnapshot/response.go | 4 +- .../upgrade_job_snapshot.go | 2 +- typedapi/ml/validate/request.go | 4 +- typedapi/ml/validate/response.go | 4 +- typedapi/ml/validate/validate.go | 2 +- typedapi/ml/validatedetector/request.go | 4 +- typedapi/ml/validatedetector/response.go | 4 +- .../ml/validatedetector/validate_detector.go | 2 +- typedapi/monitoring/bulk/bulk.go | 2 +- typedapi/monitoring/bulk/request.go | 4 +- typedapi/monitoring/bulk/response.go | 4 +- .../clear_repositories_metering_archive.go | 2 +- .../response.go | 4 +- .../get_repositories_metering_info.go | 2 +- .../getrepositoriesmeteringinfo/response.go | 4 +- typedapi/nodes/hotthreads/hot_threads.go | 2 +- typedapi/nodes/hotthreads/response.go | 4 +- typedapi/nodes/info/info.go | 2 +- typedapi/nodes/info/response.go | 4 +- .../reload_secure_settings.go | 2 +- .../nodes/reloadsecuresettings/request.go | 4 +- .../nodes/reloadsecuresettings/response.go | 4 +- typedapi/nodes/stats/response.go | 4 +- typedapi/nodes/stats/stats.go | 2 +- typedapi/nodes/usage/response.go | 4 +- typedapi/nodes/usage/usage.go | 2 +- typedapi/profiling/flamegraph/flamegraph.go | 2 +- typedapi/profiling/stacktraces/stacktraces.go | 2 +- typedapi/profiling/status/status.go | 2 +- .../profiling/topnfunctions/topn_functions.go | 2 +- typedapi/queryrules/deleterule/delete_rule.go | 2 +- typedapi/queryrules/deleterule/response.go | 4 +- .../deleteruleset/delete_ruleset.go | 2 +- typedapi/queryrules/deleteruleset/response.go | 4 +- typedapi/queryrules/getrule/get_rule.go | 2 +- typedapi/queryrules/getrule/response.go | 4 +- typedapi/queryrules/getruleset/get_ruleset.go | 2 +- typedapi/queryrules/getruleset/response.go | 4 +- .../queryrules/listrulesets/list_rulesets.go | 2 +- typedapi/queryrules/listrulesets/response.go | 4 +- typedapi/queryrules/putrule/put_rule.go | 2 +- typedapi/queryrules/putrule/request.go | 4 +- typedapi/queryrules/putrule/response.go | 4 +- typedapi/queryrules/putruleset/put_ruleset.go | 2 +- typedapi/queryrules/putruleset/request.go | 4 +- typedapi/queryrules/putruleset/response.go | 4 +- typedapi/queryrules/test/request.go | 4 +- typedapi/queryrules/test/response.go | 4 +- typedapi/queryrules/test/test.go | 2 +- typedapi/rollup/deletejob/delete_job.go | 2 +- typedapi/rollup/deletejob/response.go | 4 +- typedapi/rollup/getjobs/get_jobs.go | 2 +- typedapi/rollup/getjobs/response.go | 4 +- .../rollup/getrollupcaps/get_rollup_caps.go | 2 +- typedapi/rollup/getrollupcaps/response.go | 4 +- .../get_rollup_index_caps.go | 2 +- .../rollup/getrollupindexcaps/response.go | 4 +- typedapi/rollup/putjob/put_job.go | 2 +- typedapi/rollup/putjob/request.go | 4 +- typedapi/rollup/putjob/response.go | 4 +- typedapi/rollup/rollupsearch/request.go | 4 +- typedapi/rollup/rollupsearch/response.go | 4 +- typedapi/rollup/rollupsearch/rollup_search.go | 2 +- typedapi/rollup/startjob/response.go | 4 +- typedapi/rollup/startjob/start_job.go | 2 +- typedapi/rollup/stopjob/response.go | 4 +- 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 +- typedapi/searchablesnapshots/mount/mount.go | 2 +- typedapi/searchablesnapshots/mount/request.go | 4 +- .../searchablesnapshots/mount/response.go | 4 +- .../searchablesnapshots/stats/response.go | 4 +- typedapi/searchablesnapshots/stats/stats.go | 2 +- typedapi/searchapplication/delete/delete.go | 2 +- typedapi/searchapplication/delete/response.go | 4 +- .../delete_behavioral_analytics.go | 2 +- .../deletebehavioralanalytics/response.go | 4 +- typedapi/searchapplication/get/get.go | 2 +- typedapi/searchapplication/get/response.go | 4 +- .../get_behavioral_analytics.go | 2 +- .../getbehavioralanalytics/response.go | 4 +- typedapi/searchapplication/list/list.go | 2 +- typedapi/searchapplication/list/response.go | 4 +- .../post_behavioral_analytics_event.go | 2 +- .../postbehavioralanalyticsevent/request.go | 4 +- .../postbehavioralanalyticsevent/response.go | 4 +- typedapi/searchapplication/put/put.go | 2 +- typedapi/searchapplication/put/request.go | 4 +- typedapi/searchapplication/put/response.go | 4 +- .../put_behavioral_analytics.go | 2 +- .../putbehavioralanalytics/response.go | 4 +- .../renderquery/render_query.go | 2 +- .../searchapplication/renderquery/request.go | 4 +- .../searchapplication/renderquery/response.go | 4 +- typedapi/searchapplication/search/request.go | 4 +- typedapi/searchapplication/search/response.go | 4 +- typedapi/searchapplication/search/search.go | 2 +- .../activate_user_profile.go | 2 +- .../security/activateuserprofile/request.go | 4 +- .../security/activateuserprofile/response.go | 4 +- .../security/authenticate/authenticate.go | 2 +- typedapi/security/authenticate/response.go | 4 +- .../bulkdeleterole/bulk_delete_role.go | 2 +- typedapi/security/bulkdeleterole/request.go | 4 +- typedapi/security/bulkdeleterole/response.go | 4 +- .../security/bulkputrole/bulk_put_role.go | 2 +- typedapi/security/bulkputrole/request.go | 4 +- typedapi/security/bulkputrole/response.go | 4 +- .../bulkupdateapikeys/bulk_update_api_keys.go | 2 +- .../security/bulkupdateapikeys/request.go | 4 +- .../security/bulkupdateapikeys/response.go | 4 +- .../changepassword/change_password.go | 2 +- typedapi/security/changepassword/request.go | 4 +- typedapi/security/changepassword/response.go | 4 +- .../clearapikeycache/clear_api_key_cache.go | 2 +- .../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 | 2 +- typedapi/security/createapikey/request.go | 4 +- typedapi/security/createapikey/response.go | 4 +- .../create_cross_cluster_api_key.go | 2 +- .../createcrossclusterapikey/request.go | 4 +- .../createcrossclusterapikey/response.go | 4 +- .../create_service_token.go | 2 +- .../security/createservicetoken/response.go | 4 +- typedapi/security/delegatepki/delegate_pki.go | 2 +- typedapi/security/delegatepki/request.go | 4 +- typedapi/security/delegatepki/response.go | 4 +- .../deleteprivileges/delete_privileges.go | 2 +- .../security/deleteprivileges/response.go | 4 +- typedapi/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 +- typedapi/security/deleteuser/delete_user.go | 2 +- typedapi/security/deleteuser/response.go | 4 +- typedapi/security/disableuser/disable_user.go | 2 +- typedapi/security/disableuser/response.go | 4 +- .../disable_user_profile.go | 2 +- .../security/disableuserprofile/response.go | 4 +- typedapi/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 | 2 +- typedapi/security/enrollkibana/response.go | 4 +- typedapi/security/enrollnode/enroll_node.go | 2 +- typedapi/security/enrollnode/response.go | 4 +- typedapi/security/getapikey/get_api_key.go | 2 +- typedapi/security/getapikey/response.go | 4 +- .../get_builtin_privileges.go | 2 +- .../security/getbuiltinprivileges/response.go | 4 +- .../security/getprivileges/get_privileges.go | 2 +- typedapi/security/getprivileges/response.go | 4 +- typedapi/security/getrole/get_role.go | 2 +- typedapi/security/getrole/response.go | 4 +- .../getrolemapping/get_role_mapping.go | 2 +- typedapi/security/getrolemapping/response.go | 4 +- .../get_service_accounts.go | 2 +- .../security/getserviceaccounts/response.go | 4 +- .../get_service_credentials.go | 2 +- .../getservicecredentials/response.go | 4 +- typedapi/security/getsettings/get_settings.go | 2 +- typedapi/security/getsettings/response.go | 4 +- typedapi/security/gettoken/get_token.go | 2 +- typedapi/security/gettoken/request.go | 4 +- typedapi/security/gettoken/response.go | 4 +- typedapi/security/getuser/get_user.go | 2 +- typedapi/security/getuser/response.go | 4 +- .../getuserprivileges/get_user_privileges.go | 2 +- .../security/getuserprivileges/response.go | 4 +- .../getuserprofile/get_user_profile.go | 2 +- typedapi/security/getuserprofile/response.go | 4 +- .../security/grantapikey/grant_api_key.go | 2 +- typedapi/security/grantapikey/request.go | 4 +- typedapi/security/grantapikey/response.go | 4 +- .../security/hasprivileges/has_privileges.go | 2 +- typedapi/security/hasprivileges/request.go | 4 +- typedapi/security/hasprivileges/response.go | 4 +- .../has_privileges_user_profile.go | 2 +- .../hasprivilegesuserprofile/request.go | 4 +- .../hasprivilegesuserprofile/response.go | 4 +- .../invalidateapikey/invalidate_api_key.go | 2 +- typedapi/security/invalidateapikey/request.go | 4 +- .../security/invalidateapikey/response.go | 4 +- .../invalidatetoken/invalidate_token.go | 2 +- typedapi/security/invalidatetoken/request.go | 4 +- typedapi/security/invalidatetoken/response.go | 4 +- .../oidcauthenticate/oidc_authenticate.go | 2 +- typedapi/security/oidcauthenticate/request.go | 4 +- .../security/oidcauthenticate/response.go | 4 +- typedapi/security/oidclogout/oidc_logout.go | 18 +- typedapi/security/oidclogout/request.go | 8 +- typedapi/security/oidclogout/response.go | 4 +- .../oidc_prepare_authentication.go | 2 +- .../oidcprepareauthentication/request.go | 4 +- .../oidcprepareauthentication/response.go | 4 +- .../security/putprivileges/put_privileges.go | 2 +- typedapi/security/putprivileges/request.go | 4 +- typedapi/security/putprivileges/response.go | 4 +- typedapi/security/putrole/put_role.go | 2 +- typedapi/security/putrole/request.go | 4 +- typedapi/security/putrole/response.go | 4 +- .../putrolemapping/put_role_mapping.go | 2 +- typedapi/security/putrolemapping/request.go | 4 +- typedapi/security/putrolemapping/response.go | 4 +- typedapi/security/putuser/put_user.go | 2 +- typedapi/security/putuser/request.go | 4 +- typedapi/security/putuser/response.go | 4 +- .../security/queryapikeys/query_api_keys.go | 2 +- typedapi/security/queryapikeys/request.go | 4 +- typedapi/security/queryapikeys/response.go | 4 +- typedapi/security/queryrole/query_role.go | 2 +- typedapi/security/queryrole/request.go | 4 +- typedapi/security/queryrole/response.go | 4 +- typedapi/security/queryuser/query_user.go | 2 +- typedapi/security/queryuser/request.go | 4 +- typedapi/security/queryuser/response.go | 4 +- typedapi/security/samlauthenticate/request.go | 4 +- .../security/samlauthenticate/response.go | 4 +- .../samlauthenticate/saml_authenticate.go | 2 +- .../security/samlcompletelogout/request.go | 4 +- .../saml_complete_logout.go | 2 +- typedapi/security/samlinvalidate/request.go | 4 +- typedapi/security/samlinvalidate/response.go | 4 +- .../samlinvalidate/saml_invalidate.go | 2 +- typedapi/security/samllogout/request.go | 4 +- typedapi/security/samllogout/response.go | 4 +- typedapi/security/samllogout/saml_logout.go | 2 +- .../samlprepareauthentication/request.go | 4 +- .../samlprepareauthentication/response.go | 4 +- .../saml_prepare_authentication.go | 2 +- .../samlserviceprovidermetadata/response.go | 4 +- .../saml_service_provider_metadata.go | 2 +- .../security/suggestuserprofiles/request.go | 4 +- .../security/suggestuserprofiles/response.go | 4 +- .../suggest_user_profiles.go | 2 +- typedapi/security/updateapikey/request.go | 4 +- typedapi/security/updateapikey/response.go | 4 +- .../security/updateapikey/update_api_key.go | 2 +- .../updatecrossclusterapikey/request.go | 4 +- .../updatecrossclusterapikey/response.go | 4 +- .../update_cross_cluster_api_key.go | 2 +- typedapi/security/updatesettings/request.go | 4 +- typedapi/security/updatesettings/response.go | 4 +- .../updatesettings/update_settings.go | 2 +- .../security/updateuserprofiledata/request.go | 4 +- .../updateuserprofiledata/response.go | 4 +- .../update_user_profile_data.go | 2 +- typedapi/shutdown/deletenode/delete_node.go | 2 +- typedapi/shutdown/deletenode/response.go | 4 +- typedapi/shutdown/getnode/get_node.go | 2 +- typedapi/shutdown/getnode/response.go | 4 +- typedapi/shutdown/putnode/put_node.go | 2 +- typedapi/shutdown/putnode/request.go | 4 +- typedapi/shutdown/putnode/response.go | 4 +- typedapi/simulate/ingest/ingest.go | 2 +- typedapi/simulate/ingest/request.go | 4 +- typedapi/simulate/ingest/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 +- typedapi/slm/getlifecycle/get_lifecycle.go | 2 +- typedapi/slm/getlifecycle/response.go | 4 +- typedapi/slm/getstats/get_stats.go | 2 +- typedapi/slm/getstats/response.go | 4 +- typedapi/slm/getstatus/get_status.go | 2 +- typedapi/slm/getstatus/response.go | 4 +- typedapi/slm/putlifecycle/put_lifecycle.go | 2 +- typedapi/slm/putlifecycle/request.go | 4 +- typedapi/slm/putlifecycle/response.go | 4 +- typedapi/slm/start/response.go | 4 +- typedapi/slm/start/start.go | 2 +- typedapi/slm/stop/response.go | 4 +- typedapi/slm/stop/stop.go | 2 +- .../cleanuprepository/cleanup_repository.go | 2 +- .../snapshot/cleanuprepository/response.go | 4 +- typedapi/snapshot/clone/clone.go | 2 +- typedapi/snapshot/clone/request.go | 4 +- typedapi/snapshot/clone/response.go | 4 +- typedapi/snapshot/create/create.go | 2 +- typedapi/snapshot/create/request.go | 4 +- typedapi/snapshot/create/response.go | 4 +- .../createrepository/create_repository.go | 2 +- typedapi/snapshot/createrepository/request.go | 4 +- .../snapshot/createrepository/response.go | 4 +- typedapi/snapshot/delete/delete.go | 2 +- typedapi/snapshot/delete/response.go | 4 +- .../deleterepository/delete_repository.go | 2 +- .../snapshot/deleterepository/response.go | 4 +- typedapi/snapshot/get/get.go | 2 +- typedapi/snapshot/get/response.go | 4 +- .../snapshot/getrepository/get_repository.go | 2 +- typedapi/snapshot/getrepository/response.go | 4 +- .../repositoryanalyze/repository_analyze.go | 2 +- .../snapshot/repositoryanalyze/response.go | 4 +- .../repository_verify_integrity.go | 2 +- .../repositoryverifyintegrity/response.go | 4 +- typedapi/snapshot/restore/request.go | 4 +- typedapi/snapshot/restore/response.go | 4 +- typedapi/snapshot/restore/restore.go | 2 +- typedapi/snapshot/status/response.go | 4 +- typedapi/snapshot/status/status.go | 2 +- .../snapshot/verifyrepository/response.go | 4 +- .../verifyrepository/verify_repository.go | 2 +- typedapi/sql/clearcursor/clear_cursor.go | 2 +- typedapi/sql/clearcursor/request.go | 4 +- typedapi/sql/clearcursor/response.go | 4 +- typedapi/sql/deleteasync/delete_async.go | 2 +- typedapi/sql/deleteasync/response.go | 4 +- typedapi/sql/getasync/get_async.go | 2 +- typedapi/sql/getasync/response.go | 4 +- .../sql/getasyncstatus/get_async_status.go | 2 +- typedapi/sql/getasyncstatus/response.go | 4 +- typedapi/sql/query/query.go | 2 +- typedapi/sql/query/request.go | 4 +- typedapi/sql/query/response.go | 4 +- typedapi/sql/translate/request.go | 4 +- typedapi/sql/translate/response.go | 4 +- typedapi/sql/translate/translate.go | 2 +- typedapi/ssl/certificates/certificates.go | 2 +- typedapi/ssl/certificates/response.go | 4 +- .../synonyms/deletesynonym/delete_synonym.go | 2 +- typedapi/synonyms/deletesynonym/response.go | 4 +- .../deletesynonymrule/delete_synonym_rule.go | 2 +- .../synonyms/deletesynonymrule/response.go | 4 +- typedapi/synonyms/getsynonym/get_synonym.go | 2 +- typedapi/synonyms/getsynonym/response.go | 4 +- .../getsynonymrule/get_synonym_rule.go | 2 +- typedapi/synonyms/getsynonymrule/response.go | 4 +- .../getsynonymssets/get_synonyms_sets.go | 2 +- typedapi/synonyms/getsynonymssets/response.go | 4 +- typedapi/synonyms/putsynonym/put_synonym.go | 2 +- typedapi/synonyms/putsynonym/request.go | 4 +- typedapi/synonyms/putsynonym/response.go | 4 +- .../putsynonymrule/put_synonym_rule.go | 2 +- typedapi/synonyms/putsynonymrule/request.go | 4 +- typedapi/synonyms/putsynonymrule/response.go | 4 +- typedapi/tasks/cancel/cancel.go | 2 +- typedapi/tasks/cancel/response.go | 4 +- typedapi/tasks/get/get.go | 2 +- typedapi/tasks/get/response.go | 4 +- typedapi/tasks/list/list.go | 2 +- typedapi/tasks/list/response.go | 4 +- .../find_field_structure.go | 2 +- .../findfieldstructure/response.go | 4 +- .../find_message_structure.go | 2 +- .../findmessagestructure/request.go | 4 +- .../findmessagestructure/response.go | 4 +- .../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 | 2 +- .../transform/deletetransform/response.go | 4 +- .../transform/getnodestats/get_node_stats.go | 2 +- .../transform/gettransform/get_transform.go | 2 +- typedapi/transform/gettransform/response.go | 4 +- .../gettransformstats/get_transform_stats.go | 2 +- .../transform/gettransformstats/response.go | 4 +- .../previewtransform/preview_transform.go | 2 +- .../transform/previewtransform/request.go | 4 +- .../transform/previewtransform/response.go | 4 +- .../transform/puttransform/put_transform.go | 2 +- typedapi/transform/puttransform/request.go | 4 +- typedapi/transform/puttransform/response.go | 4 +- .../resettransform/reset_transform.go | 2 +- typedapi/transform/resettransform/response.go | 4 +- .../schedulenowtransform/response.go | 4 +- .../schedule_now_transform.go | 2 +- typedapi/transform/starttransform/response.go | 4 +- .../starttransform/start_transform.go | 2 +- typedapi/transform/stoptransform/response.go | 4 +- .../transform/stoptransform/stop_transform.go | 2 +- typedapi/transform/updatetransform/request.go | 4 +- .../transform/updatetransform/response.go | 4 +- .../updatetransform/update_transform.go | 4 +- .../transform/upgradetransforms/response.go | 4 +- .../upgradetransforms/upgrade_transforms.go | 4 +- typedapi/types/access.go | 4 +- typedapi/types/acknowledgement.go | 4 +- typedapi/types/acknowledgestate.go | 4 +- typedapi/types/actionstatus.go | 4 +- typedapi/types/activationstate.go | 4 +- typedapi/types/activationstatus.go | 4 +- typedapi/types/adaptiveallocations.go | 128 +++++ typedapi/types/adaptiveallocationssettings.go | 4 +- typedapi/types/adaptiveselection.go | 4 +- typedapi/types/addaction.go | 4 +- typedapi/types/adjacencymatrixaggregate.go | 4 +- typedapi/types/adjacencymatrixaggregation.go | 4 +- typedapi/types/adjacencymatrixbucket.go | 4 +- typedapi/types/aggregate.go | 4 +- .../types/aggregatemetricdoubleproperty.go | 4 +- typedapi/types/aggregateorder.go | 4 +- typedapi/types/aggregateoutput.go | 4 +- typedapi/types/aggregationbreakdown.go | 4 +- typedapi/types/aggregationprofile.go | 4 +- typedapi/types/aggregationprofiledebug.go | 4 +- .../aggregationprofiledelegatedebugfilter.go | 4 +- typedapi/types/aggregationrange.go | 4 +- typedapi/types/aggregations.go | 4 +- typedapi/types/alias.go | 4 +- typedapi/types/aliasdefinition.go | 4 +- typedapi/types/aliasesrecord.go | 4 +- typedapi/types/alibabacloudservicesettings.go | 161 ++++++ typedapi/types/alibabacloudtasksettings.go | 112 ++++ typedapi/types/allfield.go | 4 +- typedapi/types/allocateaction.go | 4 +- typedapi/types/allocationdecision.go | 4 +- typedapi/types/allocationrecord.go | 4 +- typedapi/types/allocationstore.go | 4 +- typedapi/types/alwayscondition.go | 4 +- .../types/amazonbedrockservicesettings.go | 170 ++++++ typedapi/types/amazonbedrocktasksettings.go | 159 ++++++ typedapi/types/analysisconfig.go | 4 +- typedapi/types/analysisconfigread.go | 4 +- typedapi/types/analysislimits.go | 4 +- typedapi/types/analysismemorylimit.go | 4 +- typedapi/types/analytics.go | 4 +- typedapi/types/analyticscollection.go | 4 +- typedapi/types/analyticsstatistics.go | 4 +- typedapi/types/analyzedetail.go | 4 +- typedapi/types/analyzer.go | 4 +- typedapi/types/analyzerdetail.go | 4 +- typedapi/types/analyzetoken.go | 4 +- typedapi/types/anomaly.go | 4 +- typedapi/types/anomalycause.go | 4 +- typedapi/types/anomalydetectors.go | 4 +- typedapi/types/anomalyexplanation.go | 4 +- typedapi/types/anthropicservicesettings.go | 112 ++++ typedapi/types/anthropictasksettings.go | 157 ++++++ typedapi/types/apikey.go | 4 +- typedapi/types/apikeyaggregate.go | 4 +- typedapi/types/apikeyaggregationcontainer.go | 4 +- typedapi/types/apikeyauthorization.go | 4 +- typedapi/types/apikeyfiltersaggregation.go | 4 +- typedapi/types/apikeyquerycontainer.go | 4 +- typedapi/types/appendprocessor.go | 4 +- .../types/applicationglobaluserprivileges.go | 4 +- typedapi/types/applicationprivileges.go | 4 +- typedapi/types/applicationprivilegescheck.go | 4 +- typedapi/types/applicationsprivileges.go | 4 +- typedapi/types/arabicanalyzer.go | 4 +- typedapi/types/archive.go | 4 +- typedapi/types/armeniananalyzer.go | 4 +- typedapi/types/arraycomparecondition.go | 4 +- typedapi/types/arraycompareopparams.go | 4 +- typedapi/types/arraypercentilesitem.go | 4 +- typedapi/types/asciifoldingtokenfilter.go | 4 +- typedapi/types/asyncsearch.go | 4 +- typedapi/types/attachmentprocessor.go | 4 +- typedapi/types/audit.go | 4 +- typedapi/types/authenticateapikey.go | 4 +- typedapi/types/authenticateduser.go | 4 +- typedapi/types/authenticatetoken.go | 4 +- typedapi/types/authentication.go | 4 +- typedapi/types/authenticationprovider.go | 4 +- typedapi/types/authenticationrealm.go | 4 +- typedapi/types/autodatehistogramaggregate.go | 4 +- .../types/autodatehistogramaggregation.go | 4 +- typedapi/types/autofollowedcluster.go | 4 +- typedapi/types/autofollowpattern.go | 4 +- typedapi/types/autofollowpatternsummary.go | 4 +- typedapi/types/autofollowstats.go | 4 +- typedapi/types/autoscalingcapacity.go | 4 +- typedapi/types/autoscalingdecider.go | 4 +- typedapi/types/autoscalingdeciders.go | 4 +- typedapi/types/autoscalingnode.go | 4 +- typedapi/types/autoscalingpolicy.go | 4 +- typedapi/types/autoscalingresources.go | 4 +- typedapi/types/averageaggregation.go | 4 +- typedapi/types/averagebucketaggregation.go | 4 +- typedapi/types/avgaggregate.go | 4 +- .../types/azureaistudioservicesettings.go | 164 ++++++ typedapi/types/azureaistudiotasksettings.go | 169 ++++++ typedapi/types/azureopenaiservicesettings.go | 173 +++++++ typedapi/types/azureopenaitasksettings.go | 89 ++++ typedapi/types/azurerepository.go | 4 +- typedapi/types/azurerepositorysettings.go | 4 +- typedapi/types/base.go | 4 +- typedapi/types/basqueanalyzer.go | 4 +- typedapi/types/bengalianalyzer.go | 4 +- typedapi/types/binaryproperty.go | 4 +- typedapi/types/blobdetails.go | 4 +- typedapi/types/booleanproperty.go | 71 ++- typedapi/types/boolquery.go | 4 +- typedapi/types/boostingquery.go | 4 +- typedapi/types/boxplotaggregate.go | 4 +- typedapi/types/boxplotaggregation.go | 4 +- typedapi/types/braziliananalyzer.go | 4 +- typedapi/types/breaker.go | 4 +- .../types/bucketcorrelationaggregation.go | 4 +- typedapi/types/bucketcorrelationfunction.go | 4 +- ...cketcorrelationfunctioncountcorrelation.go | 4 +- ...lationfunctioncountcorrelationindicator.go | 4 +- typedapi/types/bucketinfluencer.go | 4 +- typedapi/types/bucketksaggregation.go | 4 +- typedapi/types/bucketmetricvalueaggregate.go | 4 +- .../types/bucketsadjacencymatrixbucket.go | 4 +- typedapi/types/bucketsapikeyquerycontainer.go | 4 +- typedapi/types/bucketscompositebucket.go | 4 +- typedapi/types/bucketscriptaggregation.go | 4 +- typedapi/types/bucketsdatehistogrambucket.go | 4 +- typedapi/types/bucketsdoubletermsbucket.go | 4 +- typedapi/types/bucketselectoraggregation.go | 4 +- typedapi/types/bucketsfiltersbucket.go | 4 +- .../types/bucketsfrequentitemsetsbucket.go | 4 +- typedapi/types/bucketsgeohashgridbucket.go | 4 +- typedapi/types/bucketsgeohexgridbucket.go | 4 +- typedapi/types/bucketsgeotilegridbucket.go | 4 +- typedapi/types/bucketshistogrambucket.go | 4 +- typedapi/types/bucketsipprefixbucket.go | 4 +- typedapi/types/bucketsiprangebucket.go | 4 +- typedapi/types/bucketslongraretermsbucket.go | 4 +- typedapi/types/bucketslongtermsbucket.go | 4 +- typedapi/types/bucketsmultitermsbucket.go | 4 +- typedapi/types/bucketsortaggregation.go | 4 +- typedapi/types/bucketspath.go | 4 +- typedapi/types/bucketsquery.go | 4 +- typedapi/types/bucketsrangebucket.go | 4 +- .../bucketssignificantlongtermsbucket.go | 4 +- .../bucketssignificantstringtermsbucket.go | 4 +- .../types/bucketsstringraretermsbucket.go | 4 +- typedapi/types/bucketsstringtermsbucket.go | 4 +- typedapi/types/bucketstimeseriesbucket.go | 4 +- typedapi/types/bucketsummary.go | 4 +- .../bucketsvariablewidthhistogrambucket.go | 4 +- typedapi/types/bucketsvoid.go | 4 +- typedapi/types/buildinformation.go | 4 +- typedapi/types/bulgariananalyzer.go | 4 +- typedapi/types/bulkerror.go | 4 +- typedapi/types/bulkindexbyscrollfailure.go | 4 +- typedapi/types/bulkstats.go | 4 +- typedapi/types/bytenumberproperty.go | 4 +- typedapi/types/bytesize.go | 4 +- typedapi/types/bytesprocessor.go | 4 +- typedapi/types/cachequeries.go | 4 +- typedapi/types/cachestats.go | 4 +- typedapi/types/calendar.go | 4 +- typedapi/types/calendarevent.go | 4 +- typedapi/types/cardinalityaggregate.go | 4 +- typedapi/types/cardinalityaggregation.go | 4 +- typedapi/types/catalananalyzer.go | 4 +- typedapi/types/catanonalydetectorcolumns.go | 4 +- typedapi/types/catcomponenttemplate.go | 4 +- typedapi/types/catdatafeedcolumns.go | 4 +- typedapi/types/catdfacolumns.go | 4 +- typedapi/types/categorizationanalyzer.go | 4 +- .../types/categorizationanalyzerdefinition.go | 4 +- typedapi/types/categorizetextaggregation.go | 4 +- typedapi/types/categorizetextanalyzer.go | 4 +- typedapi/types/category.go | 4 +- typedapi/types/cattrainedmodelscolumns.go | 4 +- typedapi/types/cattransformcolumns.go | 4 +- typedapi/types/ccr.go | 4 +- typedapi/types/ccrshardstats.go | 4 +- typedapi/types/certificateinformation.go | 4 +- typedapi/types/cgroup.go | 4 +- typedapi/types/cgroupcpu.go | 4 +- typedapi/types/cgroupcpustat.go | 4 +- typedapi/types/cgroupmemory.go | 4 +- typedapi/types/chaininput.go | 4 +- typedapi/types/charfilter.go | 4 +- typedapi/types/charfilterdefinition.go | 4 +- typedapi/types/charfilterdetail.go | 4 +- typedapi/types/charfiltertypes.go | 4 +- typedapi/types/chargrouptokenizer.go | 4 +- typedapi/types/checkpointing.go | 28 +- typedapi/types/checkpointstats.go | 4 +- typedapi/types/childrenaggregate.go | 4 +- typedapi/types/childrenaggregation.go | 4 +- typedapi/types/chineseanalyzer.go | 4 +- typedapi/types/chisquareheuristic.go | 4 +- typedapi/types/chunkingconfig.go | 4 +- typedapi/types/chunkingsettings.go | 147 ++++++ typedapi/types/circleprocessor.go | 4 +- typedapi/types/cjkanalyzer.go | 4 +- typedapi/types/classictokenizer.go | 4 +- .../types/classificationinferenceoptions.go | 4 +- typedapi/types/cleanuprepositoryresults.go | 4 +- typedapi/types/client.go | 4 +- typedapi/types/closeindexresult.go | 4 +- typedapi/types/closeshardresult.go | 4 +- typedapi/types/clusterappliedstats.go | 4 +- typedapi/types/clustercomponenttemplate.go | 4 +- typedapi/types/clusterdetails.go | 4 +- typedapi/types/clusterfilesystem.go | 4 +- typedapi/types/clusterindexingpressure.go | 4 +- typedapi/types/clusterindices.go | 4 +- typedapi/types/clusterindicesshards.go | 4 +- typedapi/types/clusterindicesshardsindex.go | 4 +- typedapi/types/clusterinfo.go | 4 +- typedapi/types/clusterinfotargets.go | 4 +- typedapi/types/clusteringest.go | 4 +- typedapi/types/clusterjvm.go | 4 +- typedapi/types/clusterjvmmemory.go | 4 +- typedapi/types/clusterjvmversion.go | 4 +- typedapi/types/clusternetworktypes.go | 4 +- typedapi/types/clusternode.go | 4 +- typedapi/types/clusternodecount.go | 4 +- typedapi/types/clusternodes.go | 4 +- typedapi/types/clusteroperatingsystem.go | 4 +- .../clusteroperatingsystemarchitecture.go | 4 +- typedapi/types/clusteroperatingsystemname.go | 4 +- .../types/clusteroperatingsystemprettyname.go | 4 +- typedapi/types/clusterpressurememory.go | 4 +- typedapi/types/clusterprocess.go | 4 +- typedapi/types/clusterprocesscpu.go | 4 +- .../clusterprocessopenfiledescriptors.go | 4 +- typedapi/types/clusterprocessor.go | 4 +- typedapi/types/clusterremoteinfo.go | 4 +- typedapi/types/clusterremoteproxyinfo.go | 4 +- typedapi/types/clusterremotesniffinfo.go | 4 +- typedapi/types/clusterruntimefieldtypes.go | 4 +- typedapi/types/clustershardmetrics.go | 4 +- typedapi/types/clusterstatequeue.go | 4 +- typedapi/types/clusterstateupdate.go | 4 +- typedapi/types/clusterstatistics.go | 4 +- typedapi/types/cohereservicesettings.go | 152 ++++++ typedapi/types/coheretasksettings.go | 147 ++++++ typedapi/types/collector.go | 4 +- typedapi/types/column.go | 4 +- typedapi/types/combinedfieldsquery.go | 4 +- typedapi/types/command.go | 4 +- .../types/commandallocateprimaryaction.go | 4 +- .../types/commandallocatereplicaaction.go | 4 +- typedapi/types/commandcancelaction.go | 4 +- typedapi/types/commandmoveaction.go | 4 +- typedapi/types/commongramstokenfilter.go | 4 +- typedapi/types/commontermsquery.go | 4 +- typedapi/types/communityidprocessor.go | 4 +- typedapi/types/compactnodeinfo.go | 4 +- typedapi/types/completioncontext.go | 4 +- typedapi/types/completionproperty.go | 4 +- typedapi/types/completionresult.go | 4 +- typedapi/types/completionstats.go | 4 +- typedapi/types/completionsuggest.go | 4 +- typedapi/types/completionsuggester.go | 4 +- typedapi/types/completionsuggestoption.go | 4 +- typedapi/types/completiontool.go | 4 +- typedapi/types/completiontoolchoice.go | 4 +- .../types/completiontoolchoicefunction.go | 4 +- typedapi/types/completiontoolfunction.go | 4 +- typedapi/types/completiontooltype.go | 4 +- typedapi/types/componenttemplatenode.go | 4 +- typedapi/types/componenttemplatesummary.go | 4 +- typedapi/types/compositeaggregate.go | 4 +- typedapi/types/compositeaggregatekey.go | 4 +- typedapi/types/compositeaggregation.go | 4 +- typedapi/types/compositeaggregationsource.go | 4 +- typedapi/types/compositebucket.go | 4 +- .../compositedatehistogramaggregation.go | 4 +- .../types/compositegeotilegridaggregation.go | 4 +- .../types/compositehistogramaggregation.go | 4 +- typedapi/types/compositesubfield.go | 4 +- typedapi/types/compositetermsaggregation.go | 4 +- typedapi/types/conditiontokenfilter.go | 4 +- typedapi/types/configuration.go | 4 +- typedapi/types/confusionmatrixitem.go | 4 +- typedapi/types/confusionmatrixprediction.go | 4 +- typedapi/types/confusionmatrixthreshold.go | 4 +- typedapi/types/connection.go | 4 +- typedapi/types/connector.go | 4 +- typedapi/types/connectorconfigproperties.go | 4 +- typedapi/types/connectorconfiguration.go | 4 +- typedapi/types/connectorcustomscheduling.go | 4 +- typedapi/types/connectorfeatures.go | 4 +- typedapi/types/connectorscheduling.go | 4 +- typedapi/types/connectorsyncjob.go | 4 +- typedapi/types/constantkeywordproperty.go | 4 +- typedapi/types/constantscorequery.go | 4 +- typedapi/types/contentobject.go | 4 +- typedapi/types/context.go | 4 +- typedapi/types/contextmethod.go | 4 +- typedapi/types/contextmethodparam.go | 4 +- typedapi/types/convertprocessor.go | 4 +- typedapi/types/coordinatorstats.go | 4 +- typedapi/types/coordsgeobounds.go | 4 +- typedapi/types/coreknnquery.go | 4 +- typedapi/types/countedkeywordproperty.go | 4 +- typedapi/types/counter.go | 4 +- typedapi/types/countrecord.go | 4 +- typedapi/types/cpu.go | 4 +- typedapi/types/cpuacct.go | 4 +- typedapi/types/createdstatus.go | 4 +- typedapi/types/createfrom.go | 4 +- typedapi/types/createoperation.go | 4 +- typedapi/types/csvprocessor.go | 4 +- .../types/cumulativecardinalityaggregate.go | 4 +- .../types/cumulativecardinalityaggregation.go | 4 +- typedapi/types/cumulativesumaggregation.go | 4 +- typedapi/types/currentnode.go | 4 +- typedapi/types/customanalyzer.go | 4 +- .../types/customcategorizetextanalyzer.go | 4 +- typedapi/types/customnormalizer.go | 4 +- typedapi/types/customscheduling.go | 4 +- .../customschedulingconfigurationoverrides.go | 4 +- typedapi/types/czechanalyzer.go | 4 +- typedapi/types/dailyschedule.go | 4 +- typedapi/types/danglingindex.go | 4 +- typedapi/types/danishanalyzer.go | 4 +- typedapi/types/databaseconfiguration.go | 4 +- typedapi/types/databaseconfigurationfull.go | 4 +- typedapi/types/datacounts.go | 4 +- typedapi/types/datadescription.go | 4 +- typedapi/types/dataemailattachment.go | 4 +- typedapi/types/datafeedauthorization.go | 4 +- typedapi/types/datafeedconfig.go | 4 +- typedapi/types/datafeedrunningstate.go | 4 +- typedapi/types/datafeeds.go | 4 +- typedapi/types/datafeedsrecord.go | 4 +- typedapi/types/datafeedstats.go | 4 +- typedapi/types/datafeedtimingstats.go | 4 +- .../types/dataframeanalysisanalyzedfields.go | 4 +- .../types/dataframeanalysisclassification.go | 4 +- typedapi/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 +- typedapi/types/dataframeanalysisregression.go | 4 +- typedapi/types/dataframeanalytics.go | 4 +- .../types/dataframeanalyticsauthorization.go | 4 +- .../types/dataframeanalyticsdestination.go | 4 +- .../types/dataframeanalyticsfieldselection.go | 4 +- .../dataframeanalyticsmemoryestimation.go | 4 +- typedapi/types/dataframeanalyticsrecord.go | 4 +- typedapi/types/dataframeanalyticssource.go | 4 +- .../types/dataframeanalyticsstatscontainer.go | 4 +- .../dataframeanalyticsstatsdatacounts.go | 4 +- .../dataframeanalyticsstatshyperparameters.go | 4 +- .../dataframeanalyticsstatsmemoryusage.go | 4 +- ...dataframeanalyticsstatsoutlierdetection.go | 4 +- .../types/dataframeanalyticsstatsprogress.go | 4 +- typedapi/types/dataframeanalyticssummary.go | 4 +- .../types/dataframeclassificationsummary.go | 4 +- .../dataframeclassificationsummaryaccuracy.go | 4 +- ...icationsummarymulticlassconfusionmatrix.go | 4 +- ...dataframeclassificationsummaryprecision.go | 4 +- .../dataframeclassificationsummaryrecall.go | 4 +- typedapi/types/dataframeevaluationclass.go | 4 +- .../dataframeevaluationclassification.go | 4 +- ...ataframeevaluationclassificationmetrics.go | 4 +- ...meevaluationclassificationmetricsaucroc.go | 4 +- .../types/dataframeevaluationcontainer.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 +- typedapi/types/dataframeevaluationvalue.go | 4 +- .../types/dataframeoutlierdetectionsummary.go | 4 +- typedapi/types/dataframepreviewconfig.go | 4 +- typedapi/types/dataframeregressionsummary.go | 4 +- typedapi/types/datapathstats.go | 4 +- typedapi/types/datastream.go | 4 +- typedapi/types/datastreamindex.go | 4 +- typedapi/types/datastreamlifecycle.go | 4 +- typedapi/types/datastreamlifecycledetails.go | 4 +- .../types/datastreamlifecycledownsampling.go | 4 +- typedapi/types/datastreamlifecycleexplain.go | 4 +- .../types/datastreamlifecycleindicator.go | 4 +- .../datastreamlifecyclerolloverconditions.go | 4 +- .../types/datastreamlifecyclewithrollover.go | 4 +- typedapi/types/datastreamnames.go | 4 +- typedapi/types/datastreams.go | 4 +- typedapi/types/datastreamsstatsitem.go | 4 +- typedapi/types/datastreamstats.go | 4 +- typedapi/types/datastreamtimestamp.go | 4 +- typedapi/types/datastreamtimestampfield.go | 4 +- typedapi/types/datastreamvisibility.go | 4 +- typedapi/types/datastreamwithlifecycle.go | 4 +- typedapi/types/datatierphasestatistics.go | 4 +- typedapi/types/datatiers.go | 4 +- typedapi/types/datedecayfunction.go | 4 +- typedapi/types/datedistancefeaturequery.go | 4 +- typedapi/types/datehistogramaggregate.go | 4 +- typedapi/types/datehistogramaggregation.go | 4 +- typedapi/types/datehistogrambucket.go | 4 +- typedapi/types/datehistogramgrouping.go | 4 +- typedapi/types/dateindexnameprocessor.go | 4 +- typedapi/types/datenanosproperty.go | 4 +- typedapi/types/dateprocessor.go | 4 +- typedapi/types/dateproperty.go | 4 +- typedapi/types/daterangeaggregate.go | 4 +- typedapi/types/daterangeaggregation.go | 4 +- typedapi/types/daterangeexpression.go | 4 +- typedapi/types/daterangeproperty.go | 4 +- typedapi/types/daterangequery.go | 4 +- typedapi/types/datetime.go | 4 +- typedapi/types/decayfunction.go | 4 +- typedapi/types/decayplacement.go | 4 +- .../types/decayplacementdatemathduration.go | 4 +- typedapi/types/decayplacementdoubledouble.go | 4 +- .../decayplacementgeolocationdistance.go | 4 +- typedapi/types/defaults.go | 4 +- typedapi/types/definition.go | 4 +- typedapi/types/delayeddatacheckconfig.go | 4 +- typedapi/types/deleteaction.go | 4 +- typedapi/types/deleteoperation.go | 4 +- typedapi/types/delimitedpayloadtokenfilter.go | 4 +- typedapi/types/densevectorindexoptions.go | 10 +- typedapi/types/densevectorproperty.go | 4 +- typedapi/types/dependency.go | 4 +- typedapi/types/deprecation.go | 4 +- typedapi/types/deprecationindexing.go | 4 +- typedapi/types/derivativeaggregate.go | 4 +- typedapi/types/derivativeaggregation.go | 4 +- typedapi/types/detailsinfo.go | 4 +- typedapi/types/detectionrule.go | 4 +- typedapi/types/detector.go | 4 +- typedapi/types/detectorread.go | 4 +- typedapi/types/detectorupdate.go | 4 +- typedapi/types/dfsknnprofile.go | 4 +- typedapi/types/dfsprofile.go | 4 +- typedapi/types/dfsstatisticsbreakdown.go | 4 +- typedapi/types/dfsstatisticsprofile.go | 4 +- typedapi/types/diagnosis.go | 4 +- typedapi/types/diagnosisaffectedresources.go | 4 +- .../dictionarydecompoundertokenfilter.go | 4 +- typedapi/types/directgenerator.go | 4 +- typedapi/types/discovery.go | 4 +- typedapi/types/discoverynode.go | 4 +- typedapi/types/discoverynodecompact.go | 4 +- typedapi/types/discoverynodecontent.go | 4 +- typedapi/types/diskindicator.go | 4 +- typedapi/types/diskindicatordetails.go | 4 +- typedapi/types/diskusage.go | 4 +- typedapi/types/dismaxquery.go | 4 +- typedapi/types/dissectprocessor.go | 4 +- typedapi/types/distancefeaturequery.go | 4 +- .../types/diversifiedsampleraggregation.go | 4 +- typedapi/types/docstats.go | 4 +- typedapi/types/document.go | 4 +- typedapi/types/documentrating.go | 4 +- typedapi/types/documentsimulation.go | 4 +- typedapi/types/dotexpanderprocessor.go | 4 +- typedapi/types/doublenumberproperty.go | 4 +- typedapi/types/doublerangeproperty.go | 4 +- typedapi/types/doubletermsaggregate.go | 4 +- typedapi/types/doubletermsbucket.go | 4 +- typedapi/types/downsampleaction.go | 4 +- typedapi/types/downsampleconfig.go | 4 +- typedapi/types/downsamplinground.go | 4 +- typedapi/types/dropprocessor.go | 4 +- typedapi/types/duration.go | 4 +- .../types/durationvalueunitfloatmillis.go | 4 +- typedapi/types/durationvalueunitmillis.go | 4 +- typedapi/types/durationvalueunitnanos.go | 4 +- typedapi/types/durationvalueunitseconds.go | 4 +- typedapi/types/dutchanalyzer.go | 4 +- typedapi/types/dynamicproperty.go | 4 +- typedapi/types/dynamictemplate.go | 4 +- typedapi/types/edgengramtokenfilter.go | 4 +- typedapi/types/edgengramtokenizer.go | 4 +- .../types/elasticsearchservicesettings.go | 164 ++++++ typedapi/types/elasticsearchtasksettings.go | 89 ++++ typedapi/types/elasticsearchversioninfo.go | 4 +- typedapi/types/elasticsearchversionmininfo.go | 4 +- typedapi/types/elisiontokenfilter.go | 4 +- typedapi/types/elserservicesettings.go | 137 +++++ typedapi/types/email.go | 4 +- typedapi/types/emailaction.go | 4 +- typedapi/types/emailattachmentcontainer.go | 4 +- typedapi/types/emailbody.go | 4 +- typedapi/types/emailresult.go | 4 +- typedapi/types/emptyobject.go | 4 +- typedapi/types/englishanalyzer.go | 4 +- typedapi/types/enrichpolicy.go | 4 +- typedapi/types/enrichprocessor.go | 4 +- typedapi/types/ensemble.go | 4 +- .../accesstokengranttype.go | 4 +- .../acknowledgementoptions.go | 4 +- .../actionexecutionmode.go | 4 +- .../actionstatusoptions.go | 4 +- typedapi/types/enums/actiontype/actiontype.go | 4 +- .../alibabacloudservicetype.go | 53 ++ .../alibabacloudtasktype.go | 65 +++ .../allocationexplaindecision.go | 4 +- .../amazonbedrockservicetype.go | 53 ++ .../amazonbedrocktasktype.go | 57 ++ .../anthropicservicetype.go | 53 ++ .../anthropictasktype/anthropictasktype.go | 53 ++ .../enums/apikeygranttype/apikeygranttype.go | 4 +- typedapi/types/enums/apikeytype/apikeytype.go | 4 +- typedapi/types/enums/appliesto/appliesto.go | 4 +- .../azureaistudioservicetype.go | 53 ++ .../azureaistudiotasktype.go | 57 ++ .../azureopenaiservicetype.go | 53 ++ .../azureopenaitasktype.go | 57 ++ .../enums/boundaryscanner/boundaryscanner.go | 4 +- 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 +- .../cohereembeddingtype.go | 61 +++ .../enums/cohereinputtype/cohereinputtype.go | 65 +++ .../cohereservicetype/cohereservicetype.go | 53 ++ .../coheresimilaritytype.go | 61 +++ .../enums/coheretasktype/coheretasktype.go | 61 +++ .../coheretruncatetype/coheretruncatetype.go | 61 +++ .../combinedfieldsoperator.go | 4 +- .../combinedfieldszeroterms.go | 4 +- .../types/enums/conditionop/conditionop.go | 4 +- .../conditionoperator/conditionoperator.go | 4 +- .../enums/conditiontype/conditiontype.go | 4 +- typedapi/types/enums/conflicts/conflicts.go | 4 +- .../connectionscheme/connectionscheme.go | 4 +- .../connectorfieldtype/connectorfieldtype.go | 4 +- .../enums/connectorstatus/connectorstatus.go | 4 +- .../types/enums/converttype/converttype.go | 4 +- .../dataattachmentformat.go | 4 +- .../enums/datafeedstate/datafeedstate.go | 4 +- .../enums/dataframestate/dataframestate.go | 4 +- typedapi/types/enums/day/day.go | 4 +- typedapi/types/enums/decision/decision.go | 4 +- .../delimitedpayloadencoding.go | 4 +- .../densevectorelementtype.go | 4 +- .../densevectorindexoptionstype.go | 12 +- .../densevectorsimilarity.go | 4 +- .../deploymentallocationstate.go | 4 +- .../deploymentassignmentstate.go | 4 +- .../deprecationlevel/deprecationlevel.go | 4 +- .../dfiindependencemeasure.go | 4 +- .../enums/dfraftereffect/dfraftereffect.go | 4 +- .../enums/dfrbasicmodel/dfrbasicmodel.go | 4 +- .../types/enums/displaytype/displaytype.go | 4 +- .../types/enums/distanceunit/distanceunit.go | 4 +- .../enums/dynamicmapping/dynamicmapping.go | 4 +- .../ecscompatibilitytype.go | 4 +- .../enums/edgengramside/edgengramside.go | 4 +- .../elasticsearchservicetype.go | 53 ++ .../elasticsearchtasktype.go | 61 +++ .../elserservicetype.go} | 28 +- .../enums/elsertasktype/elsertasktype.go | 53 ++ .../enums/emailpriority/emailpriority.go | 4 +- .../enrichpolicyphase/enrichpolicyphase.go | 8 +- typedapi/types/enums/esqlformat/esqlformat.go | 4 +- typedapi/types/enums/eventtype/eventtype.go | 4 +- .../enums/excludefrequent/excludefrequent.go | 4 +- .../enums/executionphase/executionphase.go | 4 +- .../enums/executionstatus/executionstatus.go | 4 +- .../enums/expandwildcard/expandwildcard.go | 4 +- .../failurestorestatus/failurestorestatus.go | 4 +- typedapi/types/enums/feature/feature.go | 4 +- .../fieldsortnumerictype.go | 4 +- typedapi/types/enums/fieldtype/fieldtype.go | 4 +- .../fieldvaluefactormodifier.go | 4 +- .../enums/filteringpolicy/filteringpolicy.go | 4 +- .../filteringrulerule/filteringrulerule.go | 4 +- .../filteringvalidationstate.go | 4 +- typedapi/types/enums/filtertype/filtertype.go | 4 +- .../fingerprintdigest/fingerprintdigest.go | 4 +- .../followerindexstatus.go | 4 +- typedapi/types/enums/formattype/formattype.go | 4 +- .../functionboostmode/functionboostmode.go | 4 +- .../functionscoremode/functionscoremode.go | 4 +- typedapi/types/enums/gappolicy/gappolicy.go | 4 +- .../enums/geodistancetype/geodistancetype.go | 4 +- .../types/enums/geoexecution/geoexecution.go | 4 +- .../geogridtargetformat.go | 4 +- .../enums/geogridtiletype/geogridtiletype.go | 4 +- .../enums/geoorientation/geoorientation.go | 4 +- .../geoshaperelation/geoshaperelation.go | 4 +- .../types/enums/geostrategy/geostrategy.go | 4 +- .../geovalidationmethod.go | 4 +- .../googleaiservicetype.go | 53 ++ .../googleaistudiotasktype.go | 57 ++ .../googlevertexaiservicetype.go | 53 ++ .../googlevertexaitasktype.go | 57 ++ typedapi/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 +- .../huggingfaceservicetype.go | 53 ++ .../huggingfacetasktype.go | 53 ++ .../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 +- typedapi/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 +- .../indicesblockoptions.go | 4 +- typedapi/types/enums/inputtype/inputtype.go | 4 +- .../jinaaiservicetype/jinaaiservicetype.go | 53 ++ .../jinaaisimilaritytype.go | 61 +++ .../enums/jinaaitasktype/jinaaitasktype.go | 57 ++ .../jinaaitextembeddingtask.go | 65 +++ .../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/level/level.go | 4 +- .../enums/licensestatus/licensestatus.go | 4 +- .../types/enums/licensetype/licensetype.go | 4 +- .../lifecycleoperationmode.go | 4 +- typedapi/types/enums/managedby/managedby.go | 4 +- typedapi/types/enums/matchtype/matchtype.go | 4 +- .../types/enums/memorystatus/memorystatus.go | 4 +- typedapi/types/enums/metric/metric.go | 4 +- .../enums/migrationstatus/migrationstatus.go | 4 +- .../enums/minimuminterval/minimuminterval.go | 4 +- .../types/enums/missingorder/missingorder.go | 4 +- .../mistralservicetype/mistralservicetype.go | 53 ++ .../enums/mistraltasktype/mistraltasktype.go | 53 ++ typedapi/types/enums/modeenum/modeenum.go | 4 +- 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 +- .../openaiservicetype/openaiservicetype.go | 53 ++ .../enums/openaitasktype/openaitasktype.go | 4 +- .../enums/operationtype/operationtype.go | 4 +- typedapi/types/enums/operator/operator.go | 4 +- typedapi/types/enums/optype/optype.go | 4 +- .../pagerdutycontexttype.go | 4 +- .../pagerdutyeventtype/pagerdutyeventtype.go | 4 +- .../enums/painlesscontext/painlesscontext.go | 4 +- .../enums/phoneticencoder/phoneticencoder.go | 4 +- .../phoneticlanguage/phoneticlanguage.go | 4 +- .../phoneticnametype/phoneticnametype.go | 4 +- .../phoneticruletype/phoneticruletype.go | 4 +- typedapi/types/enums/policytype/policytype.go | 4 +- typedapi/types/enums/quantifier/quantifier.go | 4 +- .../queryrulecriteriatype.go | 4 +- .../enums/queryruletype/queryruletype.go | 4 +- .../enums/rangerelation/rangerelation.go | 4 +- typedapi/types/enums/ratemode/ratemode.go | 4 +- typedapi/types/enums/refresh/refresh.go | 4 +- .../remoteclusterprivilege.go | 4 +- .../responsecontenttype.go | 4 +- .../restrictionworkflow.go | 4 +- typedapi/types/enums/result/result.go | 4 +- .../enums/resultposition/resultposition.go | 4 +- .../types/enums/routingstate/routingstate.go | 4 +- typedapi/types/enums/ruleaction/ruleaction.go | 4 +- .../runtimefieldtype/runtimefieldtype.go | 8 +- .../sampleraggregationexecutionhint.go | 4 +- typedapi/types/enums/scoremode/scoremode.go | 4 +- .../enums/scriptlanguage/scriptlanguage.go | 4 +- .../enums/scriptsorttype/scriptsorttype.go | 4 +- typedapi/types/enums/searchtype/searchtype.go | 4 +- .../segmentsortmissing/segmentsortmissing.go | 4 +- .../enums/segmentsortmode/segmentsortmode.go | 4 +- .../segmentsortorder/segmentsortorder.go | 4 +- typedapi/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 +- .../simplequerystringflag.go | 4 +- .../slicescalculation/slicescalculation.go | 4 +- .../types/enums/snapshotsort/snapshotsort.go | 4 +- .../snapshotupgradestate.go | 4 +- .../snowballlanguage/snowballlanguage.go | 4 +- typedapi/types/enums/sortmode/sortmode.go | 4 +- typedapi/types/enums/sortorder/sortorder.go | 4 +- .../enums/sourcefieldmode/sourcefieldmode.go | 4 +- typedapi/types/enums/sourcemode/sourcemode.go | 4 +- typedapi/types/enums/sqlformat/sqlformat.go | 4 +- typedapi/types/enums/statslevel/statslevel.go | 4 +- .../types/enums/storagetype/storagetype.go | 4 +- .../enums/stringdistance/stringdistance.go | 4 +- typedapi/types/enums/subobjects/subobjects.go | 4 +- .../types/enums/suggestmode/suggestmode.go | 4 +- .../types/enums/suggestsort/suggestsort.go | 4 +- .../syncjobtriggermethod.go | 4 +- .../types/enums/syncjobtype/syncjobtype.go | 4 +- typedapi/types/enums/syncstatus/syncstatus.go | 4 +- .../enums/synonymformat/synonymformat.go | 4 +- .../syntheticsourcekeepenum.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 +- typedapi/types/enums/threadtype/threadtype.go | 4 +- .../timeseriesmetrictype.go | 4 +- typedapi/types/enums/timeunit/timeunit.go | 4 +- typedapi/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 +- typedapi/types/enums/ttesttype/ttesttype.go | 4 +- typedapi/types/enums/type_/type_.go | 4 +- .../unassignedinformationreason.go | 4 +- .../useragentproperty/useragentproperty.go | 4 +- typedapi/types/enums/valuetype/valuetype.go | 4 +- .../types/enums/versiontype/versiontype.go | 4 +- .../voyageaiservicetype.go | 53 ++ .../voyageaitasktype/voyageaitasktype.go | 57 ++ .../waitforactiveshardoptions.go | 4 +- .../enums/waitforevents/waitforevents.go | 4 +- .../enums/watchermetric/watchermetric.go | 4 +- .../types/enums/watcherstate/watcherstate.go | 4 +- .../watsonxservicetype/watsonxservicetype.go | 53 ++ .../enums/watsonxtasktype/watsonxtasktype.go | 4 +- .../enums/xpackcategory/xpackcategory.go | 4 +- .../enums/zerotermsquery/zerotermsquery.go | 4 +- typedapi/types/epochtimeunitmillis.go | 4 +- typedapi/types/epochtimeunitseconds.go | 4 +- typedapi/types/eql.go | 4 +- typedapi/types/eqlfeatures.go | 4 +- typedapi/types/eqlfeaturesjoin.go | 4 +- typedapi/types/eqlfeatureskeys.go | 4 +- typedapi/types/eqlfeaturespipes.go | 4 +- typedapi/types/eqlfeaturessequences.go | 4 +- typedapi/types/eqlhits.go | 4 +- typedapi/types/errorcause.go | 4 +- typedapi/types/errorresponsebase.go | 4 +- typedapi/types/esqlresult.go | 4 +- typedapi/types/estoniananalyzer.go | 4 +- typedapi/types/eventdatastream.go | 4 +- typedapi/types/ewmamodelsettings.go | 4 +- .../types/ewmamovingaverageaggregation.go | 4 +- typedapi/types/executeenrichpolicystatus.go | 49 +- typedapi/types/executingpolicy.go | 4 +- typedapi/types/executionresult.go | 4 +- typedapi/types/executionresultaction.go | 4 +- typedapi/types/executionresultcondition.go | 4 +- typedapi/types/executionresultinput.go | 4 +- typedapi/types/executionstate.go | 4 +- typedapi/types/executionthreadpool.go | 4 +- typedapi/types/existsquery.go | 4 +- typedapi/types/expandwildcards.go | 4 +- typedapi/types/explainanalyzetoken.go | 4 +- typedapi/types/explanation.go | 4 +- typedapi/types/explanationdetail.go | 4 +- typedapi/types/explorecontrols.go | 4 +- .../exponentialaveragecalculationcontext.go | 4 +- typedapi/types/extendedboundsdouble.go | 4 +- typedapi/types/extendedboundsfielddatemath.go | 4 +- typedapi/types/extendedmemorystats.go | 4 +- typedapi/types/extendedstatsaggregate.go | 4 +- typedapi/types/extendedstatsaggregation.go | 4 +- .../types/extendedstatsbucketaggregate.go | 4 +- .../types/extendedstatsbucketaggregation.go | 4 +- typedapi/types/failprocessor.go | 4 +- typedapi/types/failurestore.go | 4 +- typedapi/types/feature.go | 4 +- typedapi/types/featureenabled.go | 4 +- typedapi/types/featureextractor.go | 30 ++ typedapi/types/features.go | 4 +- typedapi/types/featuretoggle.go | 4 +- typedapi/types/fetchprofile.go | 4 +- typedapi/types/fetchprofilebreakdown.go | 4 +- typedapi/types/fetchprofiledebug.go | 4 +- typedapi/types/fieldaliasproperty.go | 4 +- typedapi/types/fieldandformat.go | 4 +- typedapi/types/fieldcapability.go | 4 +- typedapi/types/fieldcollapse.go | 4 +- typedapi/types/fielddatafrequencyfilter.go | 4 +- typedapi/types/fielddatarecord.go | 4 +- typedapi/types/fielddatastats.go | 4 +- typedapi/types/fielddatemath.go | 4 +- typedapi/types/fieldlookup.go | 4 +- typedapi/types/fieldmapping.go | 4 +- typedapi/types/fieldmemoryusage.go | 4 +- typedapi/types/fieldmetric.go | 4 +- typedapi/types/fieldnamesfield.go | 4 +- typedapi/types/fieldrule.go | 4 +- typedapi/types/fields.go | 4 +- typedapi/types/fieldsecurity.go | 4 +- typedapi/types/fieldsizeusage.go | 4 +- typedapi/types/fieldsort.go | 4 +- typedapi/types/fieldstat.go | 4 +- typedapi/types/fieldstatistics.go | 4 +- typedapi/types/fieldsuggester.go | 4 +- typedapi/types/fieldsummary.go | 4 +- typedapi/types/fieldtypes.go | 4 +- typedapi/types/fieldtypesmappings.go | 4 +- typedapi/types/fieldvalue.go | 4 +- .../types/fieldvaluefactorscorefunction.go | 4 +- typedapi/types/filecountsnapshotstats.go | 4 +- typedapi/types/filedetails.go | 4 +- typedapi/types/filesystem.go | 4 +- typedapi/types/filesystemtotal.go | 4 +- typedapi/types/fillmaskinferenceoptions.go | 4 +- .../types/fillmaskinferenceupdateoptions.go | 4 +- typedapi/types/filteraggregate.go | 4 +- typedapi/types/filteringadvancedsnippet.go | 4 +- typedapi/types/filteringconfig.go | 4 +- typedapi/types/filteringrule.go | 4 +- typedapi/types/filteringrules.go | 4 +- typedapi/types/filteringrulesvalidation.go | 4 +- typedapi/types/filteringvalidation.go | 4 +- typedapi/types/filterref.go | 4 +- typedapi/types/filtersaggregate.go | 4 +- typedapi/types/filtersaggregation.go | 4 +- typedapi/types/filtersbucket.go | 4 +- typedapi/types/fingerprintanalyzer.go | 4 +- typedapi/types/fingerprintprocessor.go | 4 +- typedapi/types/fingerprinttokenfilter.go | 4 +- typedapi/types/finnishanalyzer.go | 4 +- typedapi/types/flattened.go | 4 +- typedapi/types/flattenedproperty.go | 4 +- typedapi/types/floatnumberproperty.go | 4 +- typedapi/types/floatrangeproperty.go | 4 +- typedapi/types/flushstats.go | 4 +- typedapi/types/followerindex.go | 4 +- typedapi/types/followerindexparameters.go | 4 +- typedapi/types/followindexstats.go | 4 +- typedapi/types/followstats.go | 4 +- typedapi/types/forcemergeaction.go | 4 +- typedapi/types/foreachprocessor.go | 4 +- typedapi/types/foundstatus.go | 4 +- typedapi/types/frenchanalyzer.go | 4 +- .../types/frequencyencodingpreprocessor.go | 4 +- typedapi/types/frequentitemsetsaggregate.go | 4 +- typedapi/types/frequentitemsetsaggregation.go | 4 +- typedapi/types/frequentitemsetsbucket.go | 4 +- typedapi/types/frequentitemsetsfield.go | 4 +- typedapi/types/frozenindices.go | 4 +- typedapi/types/functionscore.go | 4 +- typedapi/types/functionscorequery.go | 4 +- typedapi/types/fuzziness.go | 4 +- typedapi/types/fuzzyquery.go | 4 +- typedapi/types/galiciananalyzer.go | 4 +- typedapi/types/garbagecollector.go | 4 +- typedapi/types/garbagecollectortotal.go | 4 +- typedapi/types/gcsrepository.go | 4 +- typedapi/types/gcsrepositorysettings.go | 4 +- typedapi/types/geoboundingboxquery.go | 4 +- typedapi/types/geobounds.go | 4 +- typedapi/types/geoboundsaggregate.go | 4 +- typedapi/types/geoboundsaggregation.go | 4 +- typedapi/types/geocentroidaggregate.go | 4 +- typedapi/types/geocentroidaggregation.go | 4 +- typedapi/types/geodecayfunction.go | 4 +- typedapi/types/geodistanceaggregate.go | 4 +- typedapi/types/geodistanceaggregation.go | 4 +- typedapi/types/geodistancefeaturequery.go | 4 +- typedapi/types/geodistancequery.go | 4 +- typedapi/types/geodistancesort.go | 4 +- typedapi/types/geogridprocessor.go | 4 +- typedapi/types/geogridquery.go | 4 +- typedapi/types/geohashgridaggregate.go | 4 +- typedapi/types/geohashgridaggregation.go | 4 +- typedapi/types/geohashgridbucket.go | 4 +- typedapi/types/geohashlocation.go | 4 +- typedapi/types/geohashprecision.go | 4 +- typedapi/types/geohexgridaggregate.go | 4 +- typedapi/types/geohexgridaggregation.go | 4 +- typedapi/types/geohexgridbucket.go | 4 +- .../geoipdatabaseconfigurationmetadata.go | 4 +- typedapi/types/geoipdownloadstatistics.go | 4 +- typedapi/types/geoipnodedatabasename.go | 4 +- typedapi/types/geoipnodedatabases.go | 4 +- typedapi/types/geoipprocessor.go | 4 +- typedapi/types/geoline.go | 4 +- typedapi/types/geolineaggregate.go | 4 +- typedapi/types/geolineaggregation.go | 4 +- typedapi/types/geolinepoint.go | 4 +- typedapi/types/geolinesort.go | 4 +- typedapi/types/geolocation.go | 4 +- typedapi/types/geopointproperty.go | 4 +- typedapi/types/geopolygonpoints.go | 4 +- typedapi/types/geopolygonquery.go | 4 +- typedapi/types/georesults.go | 4 +- typedapi/types/geoshapefieldquery.go | 4 +- typedapi/types/geoshapeproperty.go | 20 +- typedapi/types/geoshapequery.go | 4 +- typedapi/types/geotilegridaggregate.go | 4 +- typedapi/types/geotilegridaggregation.go | 4 +- typedapi/types/geotilegridbucket.go | 4 +- typedapi/types/germananalyzer.go | 4 +- typedapi/types/getmigrationfeature.go | 4 +- typedapi/types/getresult.go | 4 +- typedapi/types/getscriptcontext.go | 4 +- typedapi/types/getstats.go | 4 +- typedapi/types/getuserprofileerrors.go | 4 +- typedapi/types/globalaggregate.go | 4 +- typedapi/types/globalaggregation.go | 4 +- typedapi/types/globalprivilege.go | 4 +- .../types/googleaistudioservicesettings.go | 112 ++++ .../googlenormalizeddistanceheuristic.go | 4 +- .../types/googlevertexaiservicesettings.go | 141 +++++ typedapi/types/googlevertexaitasksettings.go | 109 ++++ typedapi/types/grantapikey.go | 4 +- typedapi/types/greaterthanvalidation.go | 4 +- typedapi/types/greekanalyzer.go | 4 +- typedapi/types/grokprocessor.go | 4 +- typedapi/types/groupings.go | 4 +- typedapi/types/gsubprocessor.go | 4 +- typedapi/types/halffloatnumberproperty.go | 4 +- typedapi/types/haschildquery.go | 4 +- typedapi/types/hasparentquery.go | 4 +- .../types/hasprivilegesuserprofileerrors.go | 4 +- typedapi/types/hdrmethod.go | 4 +- typedapi/types/hdrpercentileranksaggregate.go | 6 +- typedapi/types/hdrpercentilesaggregate.go | 6 +- typedapi/types/healthrecord.go | 4 +- typedapi/types/healthstatistics.go | 4 +- typedapi/types/highlight.go | 4 +- typedapi/types/highlightfield.go | 4 +- typedapi/types/hindianalyzer.go | 4 +- typedapi/types/hint.go | 4 +- typedapi/types/histogramaggregate.go | 4 +- typedapi/types/histogramaggregation.go | 4 +- typedapi/types/histogrambucket.go | 4 +- typedapi/types/histogramgrouping.go | 4 +- typedapi/types/histogramproperty.go | 4 +- typedapi/types/hit.go | 4 +- typedapi/types/hitsevent.go | 4 +- typedapi/types/hitsmetadata.go | 4 +- typedapi/types/hitssequence.go | 4 +- typedapi/types/holtlinearmodelsettings.go | 4 +- .../types/holtmovingaverageaggregation.go | 4 +- typedapi/types/holtwintersmodelsettings.go | 4 +- .../holtwintersmovingaverageaggregation.go | 4 +- typedapi/types/hop.go | 4 +- typedapi/types/hourandminute.go | 4 +- typedapi/types/hourlyschedule.go | 4 +- typedapi/types/htmlstripcharfilter.go | 4 +- typedapi/types/htmlstripprocessor.go | 4 +- typedapi/types/http.go | 4 +- typedapi/types/httpemailattachment.go | 4 +- typedapi/types/httpheaders.go | 4 +- typedapi/types/httpinput.go | 4 +- typedapi/types/httpinputauthentication.go | 4 +- .../types/httpinputbasicauthentication.go | 4 +- typedapi/types/httpinputproxy.go | 4 +- typedapi/types/httpinputrequestdefinition.go | 4 +- typedapi/types/httpinputrequestresult.go | 4 +- typedapi/types/httpinputresponseresult.go | 4 +- typedapi/types/httproute.go | 4 +- typedapi/types/httprouterequests.go | 4 +- typedapi/types/httprouteresponses.go | 4 +- typedapi/types/huggingfaceservicesettings.go | 119 +++++ typedapi/types/hungariananalyzer.go | 4 +- typedapi/types/hunspelltokenfilter.go | 4 +- typedapi/types/hyperparameter.go | 4 +- typedapi/types/hyperparameters.go | 4 +- .../hyphenationdecompoundertokenfilter.go | 4 +- typedapi/types/icuanalyzer.go | 4 +- typedapi/types/icucollationproperty.go | 4 +- typedapi/types/icucollationtokenfilter.go | 4 +- typedapi/types/icufoldingtokenfilter.go | 4 +- typedapi/types/icunormalizationcharfilter.go | 4 +- typedapi/types/icunormalizationtokenfilter.go | 4 +- typedapi/types/icutokenizer.go | 4 +- typedapi/types/icutransformtokenfilter.go | 4 +- typedapi/types/ids.go | 4 +- typedapi/types/idsquery.go | 4 +- typedapi/types/ilm.go | 4 +- typedapi/types/ilmactions.go | 4 +- typedapi/types/ilmindicator.go | 4 +- typedapi/types/ilmindicatordetails.go | 4 +- typedapi/types/ilmpolicy.go | 4 +- typedapi/types/ilmpolicystatistics.go | 4 +- typedapi/types/impact.go | 4 +- typedapi/types/includedinvalidation.go | 4 +- typedapi/types/indexaction.go | 4 +- typedapi/types/indexaliases.go | 4 +- typedapi/types/indexanddatastreamaction.go | 4 +- typedapi/types/indexcapabilities.go | 4 +- typedapi/types/indexdetails.go | 4 +- typedapi/types/indexfield.go | 4 +- typedapi/types/indexhealthstats.go | 4 +- .../types/indexingpressurememorysummary.go | 4 +- typedapi/types/indexingslowlogsettings.go | 4 +- typedapi/types/indexingslowlogtresholds.go | 4 +- typedapi/types/indexingstats.go | 4 +- typedapi/types/indexmappingrecord.go | 4 +- typedapi/types/indexoperation.go | 4 +- typedapi/types/indexprivilegescheck.go | 4 +- typedapi/types/indexresult.go | 4 +- typedapi/types/indexresultsummary.go | 4 +- typedapi/types/indexrouting.go | 4 +- typedapi/types/indexroutingallocation.go | 4 +- typedapi/types/indexroutingallocationdisk.go | 4 +- .../types/indexroutingallocationinclude.go | 4 +- .../indexroutingallocationinitialrecovery.go | 4 +- typedapi/types/indexroutingrebalance.go | 4 +- typedapi/types/indexsegment.go | 4 +- typedapi/types/indexsegmentsort.go | 4 +- typedapi/types/indexsettingblocks.go | 4 +- typedapi/types/indexsettings.go | 4 +- typedapi/types/indexsettingsanalysis.go | 4 +- typedapi/types/indexsettingslifecycle.go | 4 +- typedapi/types/indexsettingslifecyclestep.go | 4 +- typedapi/types/indexsettingstimeseries.go | 4 +- typedapi/types/indexstate.go | 4 +- typedapi/types/indexstats.go | 4 +- typedapi/types/indextemplate.go | 4 +- .../indextemplatedatastreamconfiguration.go | 4 +- typedapi/types/indextemplateitem.go | 4 +- typedapi/types/indextemplatemapping.go | 4 +- typedapi/types/indextemplatesummary.go | 4 +- typedapi/types/indexversioning.go | 4 +- typedapi/types/indicatornode.go | 4 +- typedapi/types/indicators.go | 4 +- typedapi/types/indices.go | 4 +- typedapi/types/indicesaction.go | 4 +- typedapi/types/indicesblockstatus.go | 4 +- typedapi/types/indicesindexingpressure.go | 4 +- .../types/indicesindexingpressurememory.go | 4 +- typedapi/types/indicesmodifyaction.go | 4 +- typedapi/types/indicesoptions.go | 4 +- typedapi/types/indicesprivileges.go | 4 +- typedapi/types/indicesprivilegesquery.go | 4 +- typedapi/types/indicesrecord.go | 4 +- typedapi/types/indicesshardsstats.go | 4 +- typedapi/types/indicesshardstats.go | 4 +- typedapi/types/indicesshardstores.go | 4 +- typedapi/types/indicesstats.go | 4 +- .../types/indicesvalidationexplanation.go | 4 +- typedapi/types/indicesversions.go | 4 +- typedapi/types/indonesiananalyzer.go | 4 +- typedapi/types/inferenceaggregate.go | 4 +- typedapi/types/inferenceaggregation.go | 4 +- typedapi/types/inferencechunkingsettings.go | 39 +- typedapi/types/inferenceclassimportance.go | 4 +- typedapi/types/inferenceconfig.go | 4 +- .../types/inferenceconfigclassification.go | 4 +- typedapi/types/inferenceconfigcontainer.go | 4 +- .../types/inferenceconfigcreatecontainer.go | 7 +- typedapi/types/inferenceconfigregression.go | 4 +- .../types/inferenceconfigupdatecontainer.go | 4 +- typedapi/types/inferenceendpoint.go | 4 +- typedapi/types/inferenceendpointinfo.go | 4 +- typedapi/types/inferencefeatureimportance.go | 4 +- typedapi/types/inferenceprocessor.go | 44 +- typedapi/types/inferenceresponseresult.go | 4 +- typedapi/types/inferencetopclassentry.go | 4 +- typedapi/types/influence.go | 4 +- typedapi/types/influencer.go | 4 +- typedapi/types/infofeaturestate.go | 4 +- typedapi/types/ingest.go | 4 +- typedapi/types/ingestdocumentsimulation.go | 4 +- typedapi/types/ingestpipeline.go | 4 +- typedapi/types/ingestpipelineparams.go | 4 +- typedapi/types/ingeststats.go | 4 +- typedapi/types/ingesttotal.go | 4 +- typedapi/types/inlineget.go | 4 +- typedapi/types/inlinegetdictuserdefined.go | 4 +- typedapi/types/innerhits.go | 4 +- typedapi/types/innerhitsresult.go | 4 +- typedapi/types/inprogress.go | 4 +- typedapi/types/input.go | 4 +- typedapi/types/inputconfig.go | 99 ++++ typedapi/types/integernumberproperty.go | 4 +- typedapi/types/integerrangeproperty.go | 4 +- typedapi/types/intervals.go | 4 +- typedapi/types/intervalsallof.go | 4 +- typedapi/types/intervalsanyof.go | 4 +- typedapi/types/intervalsfilter.go | 4 +- typedapi/types/intervalsfuzzy.go | 4 +- typedapi/types/intervalsmatch.go | 4 +- typedapi/types/intervalsprefix.go | 4 +- typedapi/types/intervalsquery.go | 4 +- typedapi/types/intervalswildcard.go | 4 +- typedapi/types/invertedindex.go | 4 +- typedapi/types/invocation.go | 4 +- typedapi/types/invocations.go | 4 +- typedapi/types/iostatdevice.go | 4 +- typedapi/types/iostats.go | 4 +- typedapi/types/ipfilter.go | 4 +- typedapi/types/ipinfo.go | 4 +- ...iplocationdatabaseconfigurationmetadata.go | 4 +- typedapi/types/iplocationprocessor.go | 4 +- typedapi/types/ipprefixaggregate.go | 4 +- typedapi/types/ipprefixaggregation.go | 4 +- typedapi/types/ipprefixbucket.go | 4 +- typedapi/types/ipproperty.go | 4 +- typedapi/types/iprangeaggregate.go | 4 +- typedapi/types/iprangeaggregation.go | 4 +- typedapi/types/iprangeaggregationrange.go | 4 +- typedapi/types/iprangebucket.go | 4 +- typedapi/types/iprangeproperty.go | 4 +- typedapi/types/irishanalyzer.go | 4 +- typedapi/types/italiananalyzer.go | 4 +- typedapi/types/jinaaiservicesettings.go | 133 +++++ typedapi/types/jinaaitasksettings.go | 127 +++++ typedapi/types/job.go | 4 +- typedapi/types/jobblocked.go | 4 +- typedapi/types/jobconfig.go | 4 +- typedapi/types/jobforecaststatistics.go | 4 +- typedapi/types/jobsrecord.go | 4 +- typedapi/types/jobstatistics.go | 4 +- typedapi/types/jobstats.go | 4 +- typedapi/types/jobtimingstats.go | 4 +- typedapi/types/jobusage.go | 4 +- typedapi/types/joinprocessor.go | 4 +- typedapi/types/joinproperty.go | 4 +- typedapi/types/jsonprocessor.go | 4 +- typedapi/types/jvm.go | 4 +- typedapi/types/jvmclasses.go | 4 +- typedapi/types/jvmmemorystats.go | 4 +- typedapi/types/jvmstats.go | 4 +- typedapi/types/jvmthreads.go | 4 +- typedapi/types/keeptypestokenfilter.go | 4 +- typedapi/types/keepwordstokenfilter.go | 4 +- typedapi/types/keyedpercentiles.go | 4 +- typedapi/types/keyedprocessor.go | 4 +- typedapi/types/keyvalueprocessor.go | 4 +- typedapi/types/keywordanalyzer.go | 4 +- typedapi/types/keywordmarkertokenfilter.go | 4 +- typedapi/types/keywordproperty.go | 4 +- typedapi/types/keywordtokenizer.go | 4 +- typedapi/types/kibanatoken.go | 4 +- typedapi/types/knncollectorresult.go | 4 +- typedapi/types/knnquery.go | 4 +- typedapi/types/knnqueryprofilebreakdown.go | 4 +- typedapi/types/knnqueryprofileresult.go | 4 +- typedapi/types/knnretriever.go | 4 +- typedapi/types/knnsearch.go | 4 +- typedapi/types/kstemtokenfilter.go | 4 +- typedapi/types/kuromojianalyzer.go | 4 +- .../types/kuromojiiterationmarkcharfilter.go | 4 +- .../types/kuromojipartofspeechtokenfilter.go | 4 +- .../types/kuromojireadingformtokenfilter.go | 4 +- typedapi/types/kuromojistemmertokenfilter.go | 4 +- typedapi/types/kuromojitokenizer.go | 4 +- typedapi/types/languagecontext.go | 4 +- typedapi/types/laplacesmoothingmodel.go | 4 +- typedapi/types/latest.go | 4 +- typedapi/types/latlongeolocation.go | 4 +- typedapi/types/latviananalyzer.go | 4 +- typedapi/types/learningtorank.go | 4 +- typedapi/types/learningtorankconfig.go | 107 ++++ typedapi/types/lengthtokenfilter.go | 4 +- typedapi/types/lessthanvalidation.go | 4 +- typedapi/types/lettertokenizer.go | 4 +- typedapi/types/license.go | 4 +- typedapi/types/licenseinformation.go | 4 +- typedapi/types/lifecycle.go | 4 +- typedapi/types/lifecycleexplain.go | 4 +- typedapi/types/lifecycleexplainmanaged.go | 4 +- .../types/lifecycleexplainphaseexecution.go | 4 +- typedapi/types/lifecycleexplainunmanaged.go | 4 +- typedapi/types/like.go | 4 +- typedapi/types/likedocument.go | 4 +- typedapi/types/limits.go | 4 +- typedapi/types/limittokencounttokenfilter.go | 4 +- .../linearinterpolationsmoothingmodel.go | 4 +- .../types/linearmovingaverageaggregation.go | 4 +- typedapi/types/listtypevalidation.go | 4 +- typedapi/types/lithuaniananalyzer.go | 4 +- typedapi/types/local.go | 4 +- typedapi/types/loggingaction.go | 4 +- typedapi/types/loggingresult.go | 4 +- typedapi/types/logstashpipeline.go | 4 +- typedapi/types/longnumberproperty.go | 4 +- typedapi/types/longrangeproperty.go | 4 +- typedapi/types/longraretermsaggregate.go | 4 +- typedapi/types/longraretermsbucket.go | 4 +- typedapi/types/longtermsaggregate.go | 4 +- typedapi/types/longtermsbucket.go | 4 +- typedapi/types/lowercasenormalizer.go | 4 +- typedapi/types/lowercaseprocessor.go | 4 +- typedapi/types/lowercasetokenfilter.go | 4 +- typedapi/types/lowercasetokenizer.go | 4 +- typedapi/types/machinelearning.go | 4 +- typedapi/types/manageuserprivileges.go | 4 +- typedapi/types/mapboxvectortiles.go | 4 +- typedapi/types/mappingcharfilter.go | 4 +- typedapi/types/mappinglimitsettings.go | 4 +- typedapi/types/mappinglimitsettingsdepth.go | 4 +- .../mappinglimitsettingsdimensionfields.go | 4 +- .../mappinglimitsettingsfieldnamelength.go | 4 +- .../types/mappinglimitsettingsnestedfields.go | 4 +- .../mappinglimitsettingsnestedobjects.go | 4 +- .../types/mappinglimitsettingssourcefields.go | 4 +- .../types/mappinglimitsettingstotalfields.go | 4 +- typedapi/types/mappingstats.go | 4 +- typedapi/types/masterisstableindicator.go | 4 +- ...erisstableindicatorclusterformationnode.go | 4 +- .../types/masterisstableindicatordetails.go | 4 +- ...stableindicatorexceptionfetchinghistory.go | 4 +- typedapi/types/masterrecord.go | 4 +- typedapi/types/matchallquery.go | 4 +- typedapi/types/matchboolprefixquery.go | 4 +- typedapi/types/matchedfield.go | 4 +- typedapi/types/matchedtext.go | 4 +- typedapi/types/matchnonequery.go | 4 +- typedapi/types/matchonlytextproperty.go | 4 +- typedapi/types/matchphraseprefixquery.go | 4 +- typedapi/types/matchphrasequery.go | 4 +- typedapi/types/matchquery.go | 4 +- typedapi/types/matrixstatsaggregate.go | 4 +- typedapi/types/matrixstatsaggregation.go | 4 +- typedapi/types/matrixstatsfields.go | 4 +- typedapi/types/maxaggregate.go | 4 +- typedapi/types/maxaggregation.go | 4 +- typedapi/types/maxbucketaggregation.go | 4 +- typedapi/types/maxmind.go | 4 +- .../types/medianabsolutedeviationaggregate.go | 4 +- .../medianabsolutedeviationaggregation.go | 4 +- typedapi/types/memmlstats.go | 4 +- typedapi/types/memory.go | 4 +- typedapi/types/memorystats.go | 4 +- typedapi/types/memstats.go | 4 +- typedapi/types/merge.go | 4 +- typedapi/types/mergescheduler.go | 4 +- typedapi/types/mergesstats.go | 4 +- typedapi/types/message.go | 4 +- typedapi/types/messagecontent.go | 4 +- typedapi/types/metadata.go | 4 +- typedapi/types/metrics.go | 4 +- typedapi/types/mgetoperation.go | 4 +- typedapi/types/mgetresponseitem.go | 4 +- typedapi/types/migrateaction.go | 4 +- typedapi/types/migratereindex.go | 4 +- typedapi/types/migrationfeatureindexinfo.go | 4 +- typedapi/types/minaggregate.go | 4 +- typedapi/types/minaggregation.go | 4 +- typedapi/types/minbucketaggregation.go | 4 +- typedapi/types/minimallicenseinformation.go | 4 +- typedapi/types/minimumshouldmatch.go | 4 +- typedapi/types/missing.go | 4 +- typedapi/types/missingaggregate.go | 4 +- typedapi/types/missingaggregation.go | 4 +- typedapi/types/mistralservicesettings.go | 140 +++++ typedapi/types/mlcounter.go | 4 +- typedapi/types/mldatafeed.go | 4 +- typedapi/types/mldataframeanalyticsjobs.go | 4 +- .../types/mldataframeanalyticsjobsanalysis.go | 4 +- .../types/mldataframeanalyticsjobscount.go | 4 +- .../types/mldataframeanalyticsjobsmemory.go | 4 +- typedapi/types/mlfilter.go | 4 +- typedapi/types/mlinference.go | 4 +- typedapi/types/mlinferencedeployments.go | 4 +- .../types/mlinferencedeploymentstimems.go | 4 +- typedapi/types/mlinferenceingestprocessor.go | 4 +- .../types/mlinferenceingestprocessorcount.go | 4 +- typedapi/types/mlinferencetrainedmodels.go | 4 +- .../types/mlinferencetrainedmodelscount.go | 4 +- typedapi/types/mljobforecasts.go | 4 +- typedapi/types/modelpackageconfig.go | 4 +- typedapi/types/modelplotconfig.go | 4 +- typedapi/types/modelsizestats.go | 4 +- typedapi/types/modelsnapshot.go | 4 +- typedapi/types/modelsnapshotupgrade.go | 4 +- typedapi/types/monitoring.go | 4 +- typedapi/types/morelikethisquery.go | 4 +- typedapi/types/mountedsnapshot.go | 4 +- typedapi/types/movingaverageaggregation.go | 4 +- typedapi/types/movingfunctionaggregation.go | 4 +- .../types/movingpercentilesaggregation.go | 4 +- typedapi/types/msearchrequestitem.go | 4 +- typedapi/types/msearchresponseitem.go | 4 +- typedapi/types/mtermvectorsoperation.go | 4 +- typedapi/types/multigeterror.go | 4 +- typedapi/types/multimatchquery.go | 4 +- typedapi/types/multiplexertokenfilter.go | 4 +- typedapi/types/multisearchbody.go | 9 +- typedapi/types/multisearchheader.go | 4 +- typedapi/types/multisearchitem.go | 4 +- typedapi/types/multitermlookup.go | 4 +- typedapi/types/multitermsaggregate.go | 4 +- typedapi/types/multitermsaggregation.go | 4 +- typedapi/types/multitermsbucket.go | 4 +- typedapi/types/murmur3hashproperty.go | 4 +- typedapi/types/mutualinformationheuristic.go | 4 +- typedapi/types/names.go | 4 +- typedapi/types/nativecode.go | 4 +- typedapi/types/nativecodeinformation.go | 4 +- typedapi/types/nerinferenceoptions.go | 4 +- typedapi/types/nerinferenceupdateoptions.go | 4 +- typedapi/types/nestedaggregate.go | 4 +- typedapi/types/nestedaggregation.go | 4 +- typedapi/types/nestedidentity.go | 4 +- typedapi/types/nestedproperty.go | 4 +- typedapi/types/nestedquery.go | 4 +- typedapi/types/nestedsortvalue.go | 4 +- typedapi/types/networkdirectionprocessor.go | 4 +- typedapi/types/nevercondition.go | 4 +- typedapi/types/ngramtokenfilter.go | 4 +- typedapi/types/ngramtokenizer.go | 4 +- typedapi/types/nlpberttokenizationconfig.go | 4 +- .../types/nlprobertatokenizationconfig.go | 4 +- .../types/nlptokenizationupdateoptions.go | 4 +- typedapi/types/node.go | 4 +- typedapi/types/nodeallocationexplanation.go | 4 +- typedapi/types/nodeattributes.go | 4 +- typedapi/types/nodeattributesrecord.go | 4 +- typedapi/types/nodebufferpool.go | 4 +- typedapi/types/nodediskusage.go | 4 +- typedapi/types/nodeids.go | 4 +- typedapi/types/nodeinfo.go | 4 +- typedapi/types/nodeinfoaction.go | 4 +- typedapi/types/nodeinfoaggregation.go | 4 +- typedapi/types/nodeinfobootstrap.go | 4 +- typedapi/types/nodeinfoclient.go | 4 +- typedapi/types/nodeinfodiscover.go | 4 +- typedapi/types/nodeinfohttp.go | 4 +- typedapi/types/nodeinfoingest.go | 4 +- typedapi/types/nodeinfoingestdownloader.go | 4 +- typedapi/types/nodeinfoingestinfo.go | 4 +- typedapi/types/nodeinfoingestprocessor.go | 4 +- typedapi/types/nodeinfojvmmemory.go | 4 +- typedapi/types/nodeinfomemory.go | 4 +- typedapi/types/nodeinfonetwork.go | 4 +- typedapi/types/nodeinfonetworkinterface.go | 4 +- typedapi/types/nodeinfooscpu.go | 4 +- typedapi/types/nodeinfopath.go | 4 +- typedapi/types/nodeinforepositories.go | 4 +- typedapi/types/nodeinforepositoriesurl.go | 4 +- typedapi/types/nodeinfoscript.go | 4 +- typedapi/types/nodeinfosearch.go | 4 +- typedapi/types/nodeinfosearchremote.go | 4 +- typedapi/types/nodeinfosettings.go | 4 +- typedapi/types/nodeinfosettingscluster.go | 4 +- .../types/nodeinfosettingsclusterelection.go | 4 +- typedapi/types/nodeinfosettingshttp.go | 4 +- typedapi/types/nodeinfosettingshttptype.go | 4 +- typedapi/types/nodeinfosettingsingest.go | 4 +- typedapi/types/nodeinfosettingsnetwork.go | 4 +- typedapi/types/nodeinfosettingsnode.go | 4 +- typedapi/types/nodeinfosettingstransport.go | 4 +- .../nodeinfosettingstransportfeatures.go | 4 +- .../types/nodeinfosettingstransporttype.go | 4 +- typedapi/types/nodeinfotransport.go | 4 +- typedapi/types/nodeinfoxpack.go | 4 +- typedapi/types/nodeinfoxpacklicense.go | 4 +- typedapi/types/nodeinfoxpacklicensetype.go | 4 +- typedapi/types/nodeinfoxpackml.go | 4 +- typedapi/types/nodeinfoxpacksecurity.go | 4 +- typedapi/types/nodeinfoxpacksecurityauthc.go | 4 +- .../types/nodeinfoxpacksecurityauthcrealms.go | 4 +- .../nodeinfoxpacksecurityauthcrealmsstatus.go | 4 +- .../types/nodeinfoxpacksecurityauthctoken.go | 4 +- typedapi/types/nodeinfoxpacksecurityssl.go | 4 +- typedapi/types/nodejvminfo.go | 4 +- typedapi/types/nodeoperatingsysteminfo.go | 4 +- typedapi/types/nodepackagingtype.go | 4 +- typedapi/types/nodeprocessinfo.go | 4 +- typedapi/types/nodereloadresult.go | 4 +- typedapi/types/nodescontext.go | 4 +- typedapi/types/nodescredentials.go | 4 +- typedapi/types/nodescredentialsfiletoken.go | 4 +- typedapi/types/nodeshard.go | 4 +- typedapi/types/nodeshutdownstatus.go | 4 +- typedapi/types/nodesindexingpressure.go | 4 +- typedapi/types/nodesindexingpressurememory.go | 4 +- typedapi/types/nodesingest.go | 4 +- typedapi/types/nodesrecord.go | 4 +- typedapi/types/nodestatistics.go | 4 +- typedapi/types/nodetasks.go | 4 +- typedapi/types/nodethreadpoolinfo.go | 4 +- typedapi/types/nodeusage.go | 4 +- typedapi/types/norianalyzer.go | 4 +- typedapi/types/noripartofspeechtokenfilter.go | 4 +- typedapi/types/noritokenizer.go | 4 +- typedapi/types/normalizeaggregation.go | 4 +- typedapi/types/normalizer.go | 4 +- typedapi/types/norwegiananalyzer.go | 4 +- typedapi/types/numberrangequery.go | 4 +- typedapi/types/numericdecayfunction.go | 4 +- typedapi/types/numericfielddata.go | 4 +- typedapi/types/objectproperty.go | 4 +- typedapi/types/onehotencodingpreprocessor.go | 4 +- typedapi/types/openaiservicesettings.go | 4 +- typedapi/types/openaitasksettings.go | 6 +- typedapi/types/operatingsystem.go | 4 +- typedapi/types/operatingsystemmemoryinfo.go | 4 +- typedapi/types/operationcontainer.go | 4 +- typedapi/types/outlierdetectionparameters.go | 4 +- typedapi/types/overallbucket.go | 4 +- typedapi/types/overallbucketjob.go | 4 +- typedapi/types/overlapping.go | 4 +- typedapi/types/page.go | 4 +- typedapi/types/pagerdutyaction.go | 4 +- typedapi/types/pagerdutycontext.go | 4 +- typedapi/types/pagerdutyevent.go | 4 +- typedapi/types/pagerdutyeventproxy.go | 4 +- typedapi/types/pagerdutyresult.go | 4 +- typedapi/types/painlesscontextsetup.go | 4 +- typedapi/types/parentaggregate.go | 4 +- typedapi/types/parentaggregation.go | 4 +- typedapi/types/parentidquery.go | 4 +- typedapi/types/parenttaskinfo.go | 4 +- typedapi/types/passthroughinferenceoptions.go | 4 +- .../passthroughinferenceupdateoptions.go | 4 +- typedapi/types/passthroughobjectproperty.go | 4 +- typedapi/types/pathhierarchytokenizer.go | 4 +- typedapi/types/patternanalyzer.go | 4 +- typedapi/types/patterncapturetokenfilter.go | 4 +- typedapi/types/patternreplacecharfilter.go | 4 +- typedapi/types/patternreplacetokenfilter.go | 4 +- typedapi/types/patterntokenizer.go | 4 +- typedapi/types/pendingtask.go | 4 +- typedapi/types/pendingtasksrecord.go | 4 +- typedapi/types/percentage.go | 4 +- typedapi/types/percentagescoreheuristic.go | 4 +- typedapi/types/percentileranksaggregation.go | 4 +- typedapi/types/percentiles.go | 4 +- typedapi/types/percentilesaggregation.go | 4 +- typedapi/types/percentilesbucketaggregate.go | 6 +- .../types/percentilesbucketaggregation.go | 4 +- typedapi/types/percolatequery.go | 4 +- typedapi/types/percolatorproperty.go | 4 +- typedapi/types/perpartitioncategorization.go | 4 +- typedapi/types/persiananalyzer.go | 4 +- typedapi/types/persistenttaskstatus.go | 4 +- typedapi/types/phase.go | 4 +- typedapi/types/phases.go | 4 +- typedapi/types/phonetictokenfilter.go | 4 +- typedapi/types/phrasesuggest.go | 4 +- typedapi/types/phrasesuggestcollate.go | 4 +- typedapi/types/phrasesuggestcollatequery.go | 4 +- typedapi/types/phrasesuggester.go | 4 +- typedapi/types/phrasesuggesthighlight.go | 4 +- typedapi/types/phrasesuggestoption.go | 4 +- typedapi/types/pinneddoc.go | 4 +- typedapi/types/pinnedquery.go | 4 +- typedapi/types/pipelineconfig.go | 4 +- typedapi/types/pipelinemetadata.go | 4 +- typedapi/types/pipelineprocessor.go | 4 +- typedapi/types/pipelinesettings.go | 33 +- typedapi/types/pipelinesimulation.go | 4 +- ...pipeseparatedflagssimplequerystringflag.go | 4 +- typedapi/types/pivot.go | 4 +- typedapi/types/pivotgroupbycontainer.go | 4 +- typedapi/types/pluginsrecord.go | 4 +- typedapi/types/pluginsstatus.go | 4 +- typedapi/types/pluginstats.go | 4 +- typedapi/types/pointintimereference.go | 4 +- typedapi/types/pointproperty.go | 4 +- typedapi/types/pool.go | 4 +- typedapi/types/porterstemtokenfilter.go | 4 +- typedapi/types/portugueseanalyzer.go | 4 +- typedapi/types/postmigrationfeature.go | 4 +- typedapi/types/predicatetokenfilter.go | 4 +- typedapi/types/predictedvalue.go | 4 +- typedapi/types/prefixquery.go | 4 +- typedapi/types/preprocessor.go | 4 +- typedapi/types/pressurememory.go | 4 +- typedapi/types/privileges.go | 4 +- typedapi/types/privilegesactions.go | 4 +- typedapi/types/privilegescheck.go | 4 +- typedapi/types/process.go | 4 +- typedapi/types/processor.go | 4 +- typedapi/types/processorcontainer.go | 4 +- typedapi/types/profile.go | 4 +- typedapi/types/property.go | 4 +- typedapi/types/publishedclusterstates.go | 4 +- typedapi/types/queries.go | 4 +- typedapi/types/query.go | 4 +- typedapi/types/querybreakdown.go | 4 +- typedapi/types/querycachestats.go | 4 +- typedapi/types/queryfeatureextractor.go | 109 ++++ typedapi/types/queryprofile.go | 4 +- typedapi/types/queryrole.go | 4 +- typedapi/types/queryrule.go | 4 +- typedapi/types/queryruleactions.go | 4 +- typedapi/types/queryrulecriteria.go | 4 +- typedapi/types/queryrulesetlistitem.go | 4 +- typedapi/types/queryrulesetmatchedrule.go | 4 +- typedapi/types/querystringquery.go | 4 +- typedapi/types/queryuser.go | 4 +- typedapi/types/queryvectorbuilder.go | 4 +- typedapi/types/querywatch.go | 4 +- .../questionansweringinferenceoptions.go | 4 +- ...questionansweringinferenceupdateoptions.go | 4 +- typedapi/types/randomsampleraggregation.go | 4 +- typedapi/types/randomscorefunction.go | 4 +- typedapi/types/rangeaggregate.go | 4 +- typedapi/types/rangeaggregation.go | 4 +- typedapi/types/rangebucket.go | 4 +- typedapi/types/rangequery.go | 4 +- typedapi/types/rankcontainer.go | 4 +- typedapi/types/rankeddocument.go | 4 +- typedapi/types/rankevalhit.go | 4 +- typedapi/types/rankevalhititem.go | 4 +- typedapi/types/rankevalmetric.go | 4 +- typedapi/types/rankevalmetricdetail.go | 4 +- .../rankevalmetricdiscountedcumulativegain.go | 4 +- .../rankevalmetricexpectedreciprocalrank.go | 4 +- .../types/rankevalmetricmeanreciprocalrank.go | 4 +- typedapi/types/rankevalmetricprecision.go | 4 +- typedapi/types/rankevalmetricrecall.go | 4 +- typedapi/types/rankevalquery.go | 4 +- typedapi/types/rankevalrequestitem.go | 4 +- typedapi/types/rankfeaturefunctionlinear.go | 4 +- .../types/rankfeaturefunctionlogarithm.go | 4 +- .../types/rankfeaturefunctionsaturation.go | 4 +- typedapi/types/rankfeaturefunctionsigmoid.go | 4 +- typedapi/types/rankfeatureproperty.go | 4 +- typedapi/types/rankfeaturequery.go | 4 +- typedapi/types/rankfeaturesproperty.go | 4 +- typedapi/types/raretermsaggregation.go | 4 +- typedapi/types/rateaggregate.go | 4 +- typedapi/types/rateaggregation.go | 4 +- typedapi/types/ratelimitsetting.go | 4 +- typedapi/types/readblobdetails.go | 4 +- typedapi/types/readexception.go | 4 +- typedapi/types/readonlyurlrepository.go | 4 +- .../types/readonlyurlrepositorysettings.go | 4 +- typedapi/types/readsummaryinfo.go | 4 +- typedapi/types/realmcache.go | 4 +- typedapi/types/realminfo.go | 4 +- typedapi/types/recording.go | 4 +- typedapi/types/recoverybytes.go | 4 +- typedapi/types/recoveryfiles.go | 4 +- typedapi/types/recoveryindexstatus.go | 4 +- typedapi/types/recoveryorigin.go | 4 +- typedapi/types/recoveryrecord.go | 4 +- typedapi/types/recoverystartstatus.go | 4 +- typedapi/types/recoverystats.go | 4 +- typedapi/types/recoverystatus.go | 4 +- typedapi/types/redact.go | 4 +- typedapi/types/redactprocessor.go | 4 +- typedapi/types/refreshstats.go | 4 +- typedapi/types/regexoptions.go | 4 +- typedapi/types/regexpquery.go | 4 +- typedapi/types/regexvalidation.go | 4 +- typedapi/types/registereddomainprocessor.go | 4 +- typedapi/types/regressioninferenceoptions.go | 4 +- typedapi/types/reindexdestination.go | 4 +- typedapi/types/reindexnode.go | 4 +- typedapi/types/reindexsource.go | 4 +- typedapi/types/reindexstatus.go | 4 +- typedapi/types/reindextask.go | 4 +- typedapi/types/reloaddetails.go | 4 +- typedapi/types/reloadresult.go | 4 +- typedapi/types/relocationfailureinfo.go | 4 +- typedapi/types/remoteclusterprivileges.go | 4 +- typedapi/types/remoteindicesprivileges.go | 4 +- typedapi/types/remotesource.go | 4 +- typedapi/types/remoteuserindicesprivileges.go | 4 +- typedapi/types/removeaction.go | 4 +- typedapi/types/removeduplicatestokenfilter.go | 4 +- typedapi/types/removeindexaction.go | 4 +- typedapi/types/removeprocessor.go | 4 +- typedapi/types/renameprocessor.go | 4 +- typedapi/types/replicationaccess.go | 4 +- typedapi/types/reportingemailattachment.go | 4 +- typedapi/types/repositoriesrecord.go | 4 +- typedapi/types/repository.go | 4 +- .../types/repositoryintegrityindicator.go | 4 +- .../repositoryintegrityindicatordetails.go | 4 +- typedapi/types/repositorylocation.go | 4 +- .../types/repositorymeteringinformation.go | 4 +- typedapi/types/requestcachestats.go | 4 +- typedapi/types/requestchatcompletion.go | 201 ++++++++ typedapi/types/requestcounts.go | 4 +- typedapi/types/requestitem.go | 4 +- typedapi/types/reroutedecision.go | 4 +- typedapi/types/rerouteexplanation.go | 4 +- typedapi/types/rerouteparameters.go | 4 +- typedapi/types/rerouteprocessor.go | 4 +- typedapi/types/rescore.go | 4 +- typedapi/types/rescorequery.go | 4 +- typedapi/types/rescorevector.go | 4 +- typedapi/types/reservedsize.go | 4 +- typedapi/types/resolveclusterinfo.go | 4 +- typedapi/types/resolveindexaliasitem.go | 4 +- typedapi/types/resolveindexdatastreamsitem.go | 4 +- typedapi/types/resolveindexitem.go | 4 +- typedapi/types/resourceprivileges.go | 4 +- typedapi/types/responseitem.go | 4 +- typedapi/types/restriction.go | 4 +- typedapi/types/retention.go | 4 +- typedapi/types/retentionlease.go | 4 +- typedapi/types/retentionpolicy.go | 4 +- typedapi/types/retentionpolicycontainer.go | 4 +- typedapi/types/retries.go | 4 +- typedapi/types/retrievercontainer.go | 4 +- typedapi/types/reversenestedaggregate.go | 4 +- typedapi/types/reversenestedaggregation.go | 4 +- typedapi/types/reversetokenfilter.go | 4 +- typedapi/types/role.go | 4 +- typedapi/types/roledescriptor.go | 4 +- typedapi/types/roledescriptorread.go | 4 +- typedapi/types/roledescriptorwrapper.go | 4 +- typedapi/types/rolemappingrule.go | 4 +- typedapi/types/rolequerycontainer.go | 4 +- typedapi/types/roletemplate.go | 4 +- typedapi/types/roletemplateinlinequery.go | 4 +- typedapi/types/roletemplatequery.go | 4 +- typedapi/types/roletemplatescript.go | 4 +- typedapi/types/rolloveraction.go | 4 +- typedapi/types/rolloverconditions.go | 4 +- typedapi/types/rollupcapabilities.go | 4 +- typedapi/types/rollupcapabilitysummary.go | 4 +- typedapi/types/rollupfieldsummary.go | 4 +- typedapi/types/rollupjob.go | 4 +- typedapi/types/rollupjobconfiguration.go | 4 +- typedapi/types/rollupjobstats.go | 4 +- typedapi/types/rollupjobstatus.go | 4 +- typedapi/types/rollupjobsummary.go | 4 +- typedapi/types/rollupjobsummaryfield.go | 4 +- typedapi/types/romaniananalyzer.go | 4 +- typedapi/types/routingfield.go | 4 +- typedapi/types/rrfrank.go | 4 +- typedapi/types/rrfretriever.go | 4 +- typedapi/types/rulecondition.go | 4 +- typedapi/types/rulequery.go | 4 +- typedapi/types/ruleretriever.go | 4 +- typedapi/types/runningstatesearchinterval.go | 4 +- typedapi/types/runtimefield.go | 4 +- typedapi/types/runtimefieldfetchfields.go | 4 +- typedapi/types/runtimefields.go | 4 +- typedapi/types/runtimefieldstype.go | 4 +- typedapi/types/russiananalyzer.go | 4 +- typedapi/types/s3repository.go | 4 +- typedapi/types/s3repositorysettings.go | 4 +- typedapi/types/samplediversity.go | 4 +- typedapi/types/sampleraggregate.go | 4 +- typedapi/types/sampleraggregation.go | 4 +- typedapi/types/scalarvalue.go | 4 +- typedapi/types/scaledfloatnumberproperty.go | 4 +- typedapi/types/schedulecontainer.go | 4 +- typedapi/types/scheduletimeofday.go | 4 +- typedapi/types/scheduletriggerevent.go | 4 +- typedapi/types/schedulingconfiguration.go | 4 +- typedapi/types/scoresort.go | 4 +- typedapi/types/script.go | 4 +- typedapi/types/scriptcache.go | 4 +- typedapi/types/scriptcondition.go | 4 +- typedapi/types/scriptedheuristic.go | 4 +- typedapi/types/scriptedmetricaggregate.go | 4 +- typedapi/types/scriptedmetricaggregation.go | 4 +- typedapi/types/scriptfield.go | 4 +- typedapi/types/scripting.go | 4 +- typedapi/types/scriptprocessor.go | 4 +- typedapi/types/scriptquery.go | 4 +- typedapi/types/scriptscorefunction.go | 4 +- typedapi/types/scriptscorequery.go | 4 +- typedapi/types/scriptsort.go | 4 +- typedapi/types/scripttransform.go | 4 +- typedapi/types/scrollids.go | 4 +- typedapi/types/searchablesnapshotaction.go | 4 +- typedapi/types/searchablesnapshots.go | 4 +- typedapi/types/searchaccess.go | 4 +- typedapi/types/searchapplication.go | 4 +- typedapi/types/searchapplicationparameters.go | 4 +- typedapi/types/searchapplicationtemplate.go | 4 +- typedapi/types/searchasyoutypeproperty.go | 4 +- typedapi/types/searchidle.go | 4 +- typedapi/types/searchinput.go | 4 +- typedapi/types/searchinputrequestbody.go | 4 +- .../types/searchinputrequestdefinition.go | 4 +- typedapi/types/searchprofile.go | 4 +- typedapi/types/searchshardsnodeattributes.go | 4 +- typedapi/types/searchstats.go | 4 +- typedapi/types/searchtemplaterequestbody.go | 4 +- typedapi/types/searchtransform.go | 4 +- typedapi/types/security.go | 4 +- typedapi/types/securityrolemapping.go | 4 +- typedapi/types/securityroles.go | 4 +- typedapi/types/securityrolesdls.go | 4 +- typedapi/types/securityrolesdlsbitsetcache.go | 4 +- typedapi/types/securityrolesfile.go | 4 +- typedapi/types/securityrolesnative.go | 4 +- typedapi/types/securitysettings.go | 4 +- typedapi/types/segment.go | 4 +- typedapi/types/segmentsrecord.go | 4 +- typedapi/types/segmentsstats.go | 4 +- typedapi/types/selectoption.go | 4 +- typedapi/types/semanticquery.go | 4 +- typedapi/types/semantictextproperty.go | 16 +- typedapi/types/serbiananalyzer.go | 4 +- .../types/serialdifferencingaggregation.go | 4 +- typedapi/types/serializedclusterstate.go | 4 +- .../types/serializedclusterstatedetail.go | 4 +- typedapi/types/servicetoken.go | 4 +- typedapi/types/setpriorityaction.go | 4 +- typedapi/types/setprocessor.go | 4 +- typedapi/types/setsecurityuserprocessor.go | 4 +- typedapi/types/settings.go | 4 +- typedapi/types/settingsanalyze.go | 4 +- typedapi/types/settingshighlight.go | 4 +- typedapi/types/settingsquerystring.go | 4 +- typedapi/types/settingssearch.go | 4 +- typedapi/types/settingssimilarity.go | 4 +- typedapi/types/settingssimilaritybm25.go | 4 +- typedapi/types/settingssimilarityboolean.go | 4 +- typedapi/types/settingssimilaritydfi.go | 4 +- typedapi/types/settingssimilaritydfr.go | 4 +- typedapi/types/settingssimilarityib.go | 4 +- typedapi/types/settingssimilaritylmd.go | 4 +- typedapi/types/settingssimilaritylmj.go | 4 +- typedapi/types/settingssimilarityscripted.go | 4 +- typedapi/types/shapefieldquery.go | 4 +- typedapi/types/shapeproperty.go | 4 +- typedapi/types/shapequery.go | 4 +- typedapi/types/shardcommit.go | 4 +- typedapi/types/shardfailure.go | 4 +- typedapi/types/shardfilesizeinfo.go | 4 +- typedapi/types/shardhealthstats.go | 4 +- typedapi/types/shardlease.go | 4 +- typedapi/types/shardmigrationstatus.go | 4 +- typedapi/types/shardpath.go | 4 +- typedapi/types/shardprofile.go | 4 +- typedapi/types/shardquerycache.go | 4 +- typedapi/types/shardrecovery.go | 4 +- typedapi/types/shardretentionleases.go | 4 +- typedapi/types/shardrouting.go | 4 +- typedapi/types/shardsavailabilityindicator.go | 4 +- .../shardsavailabilityindicatordetails.go | 4 +- typedapi/types/shardscapacityindicator.go | 4 +- .../types/shardscapacityindicatordetails.go | 4 +- .../shardscapacityindicatortierdetail.go | 4 +- typedapi/types/shardsegmentrouting.go | 4 +- typedapi/types/shardsequencenumber.go | 4 +- typedapi/types/shardsrecord.go | 4 +- typedapi/types/shardssegment.go | 4 +- typedapi/types/shardsstatssummary.go | 4 +- typedapi/types/shardsstatssummaryitem.go | 4 +- typedapi/types/shardstatistics.go | 4 +- typedapi/types/shardstore.go | 4 +- typedapi/types/shardstoreexception.go | 4 +- typedapi/types/shardstoreindex.go | 4 +- typedapi/types/shardstorenode.go | 4 +- typedapi/types/shardstorewrapper.go | 4 +- typedapi/types/shardstotalstats.go | 4 +- typedapi/types/shared.go | 4 +- typedapi/types/sharedfilesystemrepository.go | 4 +- .../sharedfilesystemrepositorysettings.go | 4 +- typedapi/types/shingletokenfilter.go | 4 +- typedapi/types/shortnumberproperty.go | 4 +- typedapi/types/shrinkaction.go | 4 +- .../types/significantlongtermsaggregate.go | 4 +- typedapi/types/significantlongtermsbucket.go | 4 +- .../types/significantstringtermsaggregate.go | 4 +- .../types/significantstringtermsbucket.go | 4 +- typedapi/types/significanttermsaggregation.go | 4 +- typedapi/types/significanttextaggregation.go | 4 +- typedapi/types/simpleanalyzer.go | 4 +- .../types/simplemovingaverageaggregation.go | 4 +- typedapi/types/simplepatternsplittokenizer.go | 4 +- typedapi/types/simplepatterntokenizer.go | 4 +- typedapi/types/simplequerystringflags.go | 4 +- typedapi/types/simplequerystringquery.go | 4 +- typedapi/types/simplevalueaggregate.go | 4 +- typedapi/types/simulatedactions.go | 4 +- typedapi/types/simulatedocumentresult.go | 4 +- .../types/simulateingestdocumentresult.go | 4 +- typedapi/types/sizefield.go | 4 +- typedapi/types/sizehttphistogram.go | 4 +- typedapi/types/slackaction.go | 4 +- typedapi/types/slackattachment.go | 4 +- typedapi/types/slackattachmentfield.go | 4 +- typedapi/types/slackdynamicattachment.go | 4 +- typedapi/types/slackmessage.go | 4 +- typedapi/types/slackresult.go | 4 +- typedapi/types/slicedscroll.go | 4 +- typedapi/types/slices.go | 4 +- typedapi/types/slm.go | 4 +- typedapi/types/slmindicator.go | 4 +- typedapi/types/slmindicatordetails.go | 4 +- .../types/slmindicatorunhealthypolicies.go | 4 +- typedapi/types/slmpolicy.go | 4 +- typedapi/types/slowlogsettings.go | 4 +- typedapi/types/slowlogtresholdlevels.go | 4 +- typedapi/types/slowlogtresholds.go | 4 +- typedapi/types/smoothingmodelcontainer.go | 4 +- typedapi/types/snapshotindexstats.go | 4 +- typedapi/types/snapshotinfo.go | 4 +- typedapi/types/snapshotlifecycle.go | 4 +- typedapi/types/snapshotnodeinfo.go | 4 +- typedapi/types/snapshotresponseitem.go | 4 +- typedapi/types/snapshotrestore.go | 4 +- typedapi/types/snapshotshardfailure.go | 4 +- typedapi/types/snapshotshardsstats.go | 4 +- typedapi/types/snapshotshardsstatus.go | 4 +- typedapi/types/snapshotsrecord.go | 4 +- typedapi/types/snapshotstats.go | 4 +- typedapi/types/snowballanalyzer.go | 4 +- typedapi/types/snowballtokenfilter.go | 4 +- typedapi/types/softdeletes.go | 4 +- typedapi/types/soranianalyzer.go | 4 +- typedapi/types/sort.go | 4 +- typedapi/types/sortcombinations.go | 4 +- typedapi/types/sortoptions.go | 4 +- typedapi/types/sortprocessor.go | 4 +- typedapi/types/sourceconfig.go | 4 +- typedapi/types/sourceconfigparam.go | 4 +- typedapi/types/sourcefield.go | 4 +- typedapi/types/sourcefilter.go | 4 +- typedapi/types/sourceindex.go | 4 +- typedapi/types/sourceonlyrepository.go | 4 +- .../types/sourceonlyrepositorysettings.go | 4 +- typedapi/types/spancontainingquery.go | 4 +- typedapi/types/spanfieldmaskingquery.go | 4 +- typedapi/types/spanfirstquery.go | 4 +- typedapi/types/spangapquery.go | 4 +- typedapi/types/spanishanalyzer.go | 4 +- typedapi/types/spanmultitermquery.go | 4 +- typedapi/types/spannearquery.go | 4 +- typedapi/types/spannotquery.go | 4 +- typedapi/types/spanorquery.go | 4 +- typedapi/types/spanquery.go | 4 +- typedapi/types/spantermquery.go | 4 +- typedapi/types/spanwithinquery.go | 4 +- typedapi/types/sparseembeddingresult.go | 4 +- typedapi/types/sparsevector.go | 4 +- typedapi/types/sparsevectorproperty.go | 4 +- typedapi/types/sparsevectorquery.go | 4 +- typedapi/types/splitprocessor.go | 4 +- typedapi/types/sql.go | 4 +- typedapi/types/ssl.go | 4 +- typedapi/types/stagnatingbackingindices.go | 4 +- typedapi/types/standardanalyzer.go | 4 +- typedapi/types/standarddeviationbounds.go | 4 +- .../types/standarddeviationboundsasstring.go | 4 +- typedapi/types/standardretriever.go | 4 +- typedapi/types/standardtokenizer.go | 4 +- typedapi/types/statistics.go | 4 +- typedapi/types/stats.go | 4 +- typedapi/types/statsaggregate.go | 4 +- typedapi/types/statsaggregation.go | 4 +- typedapi/types/statsbucketaggregate.go | 4 +- typedapi/types/statsbucketaggregation.go | 4 +- typedapi/types/status.go | 4 +- typedapi/types/statuserror.go | 4 +- typedapi/types/statusinprogress.go | 4 +- typedapi/types/stemmeroverridetokenfilter.go | 4 +- typedapi/types/stemmertokenfilter.go | 4 +- typedapi/types/stepkey.go | 4 +- typedapi/types/stopanalyzer.go | 4 +- typedapi/types/stoptokenfilter.go | 4 +- typedapi/types/stopwords.go | 4 +- typedapi/types/storage.go | 4 +- typedapi/types/storedscript.go | 4 +- typedapi/types/storestats.go | 4 +- typedapi/types/streamresult.go | 4 +- typedapi/types/stringifiedboolean.go | 4 +- typedapi/types/stringifieddouble.go | 4 +- .../types/stringifiedepochtimeunitmillis.go | 4 +- .../types/stringifiedepochtimeunitseconds.go | 4 +- typedapi/types/stringifiedinteger.go | 4 +- typedapi/types/stringifiedversionnumber.go | 4 +- typedapi/types/stringraretermsaggregate.go | 4 +- typedapi/types/stringraretermsbucket.go | 4 +- typedapi/types/stringstatsaggregate.go | 4 +- typedapi/types/stringstatsaggregation.go | 4 +- typedapi/types/stringtermsaggregate.go | 4 +- typedapi/types/stringtermsbucket.go | 4 +- typedapi/types/stupidbackoffsmoothingmodel.go | 4 +- typedapi/types/suggest.go | 4 +- typedapi/types/suggestcontext.go | 4 +- typedapi/types/suggester.go | 4 +- typedapi/types/suggestfuzziness.go | 4 +- typedapi/types/sumaggregate.go | 4 +- typedapi/types/sumaggregation.go | 4 +- typedapi/types/sumbucketaggregation.go | 4 +- typedapi/types/summary.go | 4 +- typedapi/types/summaryinfo.go | 4 +- typedapi/types/swedishanalyzer.go | 4 +- typedapi/types/synccontainer.go | 4 +- typedapi/types/syncjobconnectorreference.go | 4 +- typedapi/types/syncrulesfeature.go | 4 +- typedapi/types/synonymgraphtokenfilter.go | 4 +- typedapi/types/synonymrule.go | 4 +- typedapi/types/synonymruleread.go | 4 +- typedapi/types/synonymssetitem.go | 4 +- typedapi/types/synonymtokenfilter.go | 4 +- typedapi/types/tablevaluescontainer.go | 4 +- typedapi/types/tablevaluesintegervalue.go | 4 +- typedapi/types/tablevalueskeywordvalue.go | 4 +- typedapi/types/tablevalueslongdouble.go | 4 +- typedapi/types/tablevalueslongvalue.go | 4 +- .../types/targetmeanencodingpreprocessor.go | 4 +- typedapi/types/taskfailure.go | 4 +- typedapi/types/taskid.go | 4 +- typedapi/types/taskinfo.go | 4 +- typedapi/types/taskinfos.go | 4 +- typedapi/types/tasksrecord.go | 4 +- typedapi/types/tdigest.go | 4 +- .../types/tdigestpercentileranksaggregate.go | 6 +- typedapi/types/tdigestpercentilesaggregate.go | 6 +- typedapi/types/template.go | 4 +- typedapi/types/templateconfig.go | 4 +- typedapi/types/templatemapping.go | 4 +- typedapi/types/templatesrecord.go | 4 +- typedapi/types/term.go | 4 +- typedapi/types/terminateprocessor.go | 4 +- typedapi/types/termquery.go | 4 +- typedapi/types/termrangequery.go | 4 +- typedapi/types/termsaggregation.go | 4 +- typedapi/types/termsexclude.go | 4 +- typedapi/types/termsgrouping.go | 4 +- typedapi/types/termsinclude.go | 4 +- typedapi/types/termslookup.go | 4 +- typedapi/types/termspartition.go | 4 +- typedapi/types/termsquery.go | 4 +- typedapi/types/termsqueryfield.go | 4 +- typedapi/types/termssetquery.go | 4 +- typedapi/types/termsuggest.go | 4 +- typedapi/types/termsuggester.go | 4 +- typedapi/types/termsuggestoption.go | 4 +- typedapi/types/termvector.go | 4 +- typedapi/types/termvectorsfilter.go | 4 +- typedapi/types/termvectorsresult.go | 4 +- typedapi/types/termvectorstoken.go | 4 +- typedapi/types/testpopulation.go | 4 +- .../textclassificationinferenceoptions.go | 10 +- ...extclassificationinferenceupdateoptions.go | 4 +- typedapi/types/textembedding.go | 4 +- typedapi/types/textembeddingbyteresult.go | 4 +- .../types/textembeddinginferenceoptions.go | 4 +- .../textembeddinginferenceupdateoptions.go | 4 +- typedapi/types/textembeddingresult.go | 4 +- .../types/textexpansioninferenceoptions.go | 4 +- .../textexpansioninferenceupdateoptions.go | 4 +- typedapi/types/textexpansionquery.go | 4 +- typedapi/types/textindexprefixes.go | 4 +- typedapi/types/textproperty.go | 4 +- typedapi/types/textsimilarityreranker.go | 4 +- typedapi/types/texttoanalyze.go | 4 +- typedapi/types/thaianalyzer.go | 4 +- typedapi/types/thaitokenizer.go | 4 +- typedapi/types/threadcount.go | 4 +- typedapi/types/threadpoolrecord.go | 4 +- typedapi/types/throttlestate.go | 4 +- typedapi/types/timehttphistogram.go | 4 +- typedapi/types/timeofmonth.go | 4 +- typedapi/types/timeofweek.go | 4 +- typedapi/types/timeofyear.go | 4 +- typedapi/types/timeseriesaggregate.go | 4 +- typedapi/types/timeseriesaggregation.go | 4 +- typedapi/types/timeseriesbucket.go | 4 +- typedapi/types/timesync.go | 4 +- typedapi/types/timingstats.go | 4 +- typedapi/types/tokencountproperty.go | 4 +- typedapi/types/tokendetail.go | 4 +- typedapi/types/tokenfilter.go | 4 +- typedapi/types/tokenfilterdefinition.go | 4 +- typedapi/types/tokenizationconfigcontainer.go | 7 +- typedapi/types/tokenizer.go | 4 +- typedapi/types/tokenizerdefinition.go | 4 +- typedapi/types/tokenpruningconfig.go | 4 +- typedapi/types/toolcall.go | 4 +- typedapi/types/toolcallfunction.go | 4 +- typedapi/types/topclassentry.go | 4 +- typedapi/types/tophit.go | 4 +- typedapi/types/tophitsaggregate.go | 4 +- typedapi/types/tophitsaggregation.go | 4 +- typedapi/types/topleftbottomrightgeobounds.go | 4 +- typedapi/types/topmetrics.go | 4 +- typedapi/types/topmetricsaggregate.go | 4 +- typedapi/types/topmetricsaggregation.go | 4 +- typedapi/types/topmetricsvalue.go | 4 +- typedapi/types/toprightbottomleftgeobounds.go | 4 +- typedapi/types/totalfeatureimportance.go | 4 +- typedapi/types/totalfeatureimportanceclass.go | 4 +- .../types/totalfeatureimportancestatistics.go | 4 +- typedapi/types/totaluserprofiles.go | 4 +- typedapi/types/trackhits.go | 4 +- typedapi/types/trainedmodel.go | 4 +- typedapi/types/trainedmodelassignment.go | 4 +- ...nedmodelassignmentroutingstateandreason.go | 89 ++++ .../trainedmodelassignmentroutingtable.go | 4 +- .../trainedmodelassignmenttaskparameters.go | 4 +- typedapi/types/trainedmodelconfig.go | 21 +- typedapi/types/trainedmodelconfiginput.go | 4 +- typedapi/types/trainedmodelconfigmetadata.go | 4 +- .../trainedmodeldeploymentallocationstatus.go | 4 +- .../types/trainedmodeldeploymentnodesstats.go | 18 +- typedapi/types/trainedmodeldeploymentstats.go | 4 +- typedapi/types/trainedmodelentities.go | 4 +- .../trainedmodelinferenceclassimportance.go | 4 +- .../trainedmodelinferencefeatureimportance.go | 4 +- typedapi/types/trainedmodelinferencestats.go | 4 +- typedapi/types/trainedmodellocation.go | 4 +- typedapi/types/trainedmodellocationindex.go | 4 +- typedapi/types/trainedmodelprefixstrings.go | 4 +- typedapi/types/trainedmodelsizestats.go | 4 +- typedapi/types/trainedmodelsrecord.go | 4 +- typedapi/types/trainedmodelstats.go | 4 +- typedapi/types/trainedmodeltree.go | 4 +- typedapi/types/trainedmodeltreenode.go | 4 +- typedapi/types/transformauthorization.go | 4 +- typedapi/types/transformcontainer.go | 4 +- typedapi/types/transformdestination.go | 4 +- typedapi/types/transformhealthissue.go | 138 +++++ typedapi/types/transformindexerstats.go | 4 +- typedapi/types/transformprogress.go | 4 +- typedapi/types/transformsource.go | 4 +- typedapi/types/transformsrecord.go | 4 +- typedapi/types/transformstats.go | 4 +- typedapi/types/transformstatshealth.go | 7 +- typedapi/types/transformsummary.go | 12 +- typedapi/types/translog.go | 4 +- typedapi/types/translogretention.go | 4 +- typedapi/types/translogstats.go | 4 +- typedapi/types/translogstatus.go | 4 +- typedapi/types/transport.go | 4 +- typedapi/types/transporthistogram.go | 4 +- typedapi/types/triggercontainer.go | 4 +- typedapi/types/triggereventcontainer.go | 4 +- typedapi/types/triggereventresult.go | 4 +- typedapi/types/trimprocessor.go | 4 +- typedapi/types/trimtokenfilter.go | 4 +- typedapi/types/truncatetokenfilter.go | 4 +- typedapi/types/ttestaggregate.go | 4 +- typedapi/types/ttestaggregation.go | 4 +- typedapi/types/turkishanalyzer.go | 4 +- typedapi/types/typefieldmappings.go | 4 +- typedapi/types/typemapping.go | 4 +- typedapi/types/typequery.go | 4 +- typedapi/types/uaxemailurltokenizer.go | 4 +- typedapi/types/unassignedinformation.go | 4 +- typedapi/types/uniquetokenfilter.go | 4 +- typedapi/types/unmappedraretermsaggregate.go | 4 +- typedapi/types/unmappedsampleraggregate.go | 4 +- .../unmappedsignificanttermsaggregate.go | 4 +- typedapi/types/unmappedtermsaggregate.go | 4 +- typedapi/types/unrateddocument.go | 4 +- typedapi/types/unsignedlongnumberproperty.go | 4 +- typedapi/types/untypeddecayfunction.go | 4 +- typedapi/types/untypeddistancefeaturequery.go | 4 +- typedapi/types/untypedrangequery.go | 4 +- typedapi/types/updateaction.go | 4 +- typedapi/types/updatebyqueryrethrottlenode.go | 4 +- typedapi/types/updateoperation.go | 4 +- typedapi/types/uppercaseprocessor.go | 4 +- typedapi/types/uppercasetokenfilter.go | 4 +- typedapi/types/uripartsprocessor.go | 4 +- typedapi/types/urldecodeprocessor.go | 4 +- typedapi/types/usagephase.go | 4 +- typedapi/types/usagephases.go | 4 +- typedapi/types/usagestatsindex.go | 4 +- typedapi/types/usagestatsshards.go | 4 +- typedapi/types/user.go | 4 +- typedapi/types/useragentprocessor.go | 4 +- typedapi/types/userindicesprivileges.go | 4 +- typedapi/types/userprofile.go | 4 +- typedapi/types/userprofilehitmetadata.go | 4 +- typedapi/types/userprofileuser.go | 4 +- typedapi/types/userprofilewithmetadata.go | 4 +- typedapi/types/userquerycontainer.go | 4 +- typedapi/types/userrealm.go | 4 +- typedapi/types/validation.go | 4 +- typedapi/types/validationloss.go | 4 +- typedapi/types/valuecountaggregate.go | 4 +- typedapi/types/valuecountaggregation.go | 4 +- .../types/variablewidthhistogramaggregate.go | 4 +- .../variablewidthhistogramaggregation.go | 4 +- .../types/variablewidthhistogrambucket.go | 4 +- typedapi/types/vector.go | 4 +- typedapi/types/verifyindex.go | 4 +- typedapi/types/versionproperty.go | 4 +- typedapi/types/vertex.go | 4 +- typedapi/types/vertexdefinition.go | 4 +- typedapi/types/vertexinclude.go | 4 +- typedapi/types/vocabulary.go | 4 +- typedapi/types/voyageaiservicesettings.go | 143 ++++++ typedapi/types/voyageaitasksettings.go | 143 ++++++ typedapi/types/waitforactiveshards.go | 4 +- typedapi/types/waitfornodes.go | 29 ++ typedapi/types/waitforsnapshotaction.go | 4 +- typedapi/types/warmerstats.go | 4 +- typedapi/types/watch.go | 4 +- typedapi/types/watcher.go | 4 +- typedapi/types/watcheraction.go | 4 +- typedapi/types/watcheractions.go | 4 +- typedapi/types/watcheractiontotals.go | 4 +- typedapi/types/watchercondition.go | 4 +- typedapi/types/watcherinput.go | 4 +- typedapi/types/watchernodestats.go | 4 +- typedapi/types/watcherstatusactions.go | 4 +- typedapi/types/watcherwatch.go | 4 +- typedapi/types/watcherwatchtrigger.go | 4 +- typedapi/types/watcherwatchtriggerschedule.go | 4 +- typedapi/types/watchrecord.go | 4 +- typedapi/types/watchrecordqueuedstats.go | 4 +- typedapi/types/watchrecordstats.go | 4 +- typedapi/types/watchstatus.go | 4 +- typedapi/types/watsonxservicesettings.go | 4 +- typedapi/types/web.go | 4 +- typedapi/types/webhookaction.go | 4 +- typedapi/types/webhookresult.go | 4 +- typedapi/types/weightedaverageaggregation.go | 4 +- typedapi/types/weightedaveragevalue.go | 4 +- typedapi/types/weightedavgaggregate.go | 4 +- typedapi/types/weightedtokensquery.go | 4 +- typedapi/types/weights.go | 4 +- typedapi/types/whitespaceanalyzer.go | 4 +- typedapi/types/whitespacetokenizer.go | 4 +- typedapi/types/wildcardproperty.go | 4 +- typedapi/types/wildcardquery.go | 4 +- typedapi/types/wktgeobounds.go | 4 +- .../types/worddelimitergraphtokenfilter.go | 4 +- typedapi/types/worddelimitertokenfilter.go | 4 +- typedapi/types/wrapperquery.go | 4 +- typedapi/types/writesummaryinfo.go | 4 +- .../types/xlmrobertatokenizationconfig.go | 152 ++++++ typedapi/types/xpackdatafeed.go | 4 +- typedapi/types/xpackfeature.go | 4 +- typedapi/types/xpackfeatures.go | 4 +- typedapi/types/xpackquery.go | 4 +- typedapi/types/xpackrealm.go | 4 +- typedapi/types/xpackrolemapping.go | 4 +- typedapi/types/xpackruntimefieldtypes.go | 4 +- .../zeroshotclassificationinferenceoptions.go | 4 +- ...hotclassificationinferenceupdateoptions.go | 4 +- typedapi/watcher/ackwatch/ack_watch.go | 4 +- typedapi/watcher/ackwatch/response.go | 4 +- .../watcher/activatewatch/activate_watch.go | 4 +- typedapi/watcher/activatewatch/response.go | 4 +- .../deactivatewatch/deactivate_watch.go | 4 +- typedapi/watcher/deactivatewatch/response.go | 4 +- typedapi/watcher/deletewatch/delete_watch.go | 4 +- typedapi/watcher/deletewatch/response.go | 4 +- .../watcher/executewatch/execute_watch.go | 4 +- typedapi/watcher/executewatch/request.go | 4 +- typedapi/watcher/executewatch/response.go | 4 +- typedapi/watcher/getsettings/get_settings.go | 4 +- typedapi/watcher/getsettings/response.go | 4 +- typedapi/watcher/getwatch/get_watch.go | 4 +- typedapi/watcher/getwatch/response.go | 4 +- typedapi/watcher/putwatch/put_watch.go | 4 +- typedapi/watcher/putwatch/request.go | 4 +- typedapi/watcher/putwatch/response.go | 4 +- .../watcher/querywatches/query_watches.go | 4 +- typedapi/watcher/querywatches/request.go | 4 +- typedapi/watcher/querywatches/response.go | 4 +- typedapi/watcher/start/response.go | 4 +- typedapi/watcher/start/start.go | 4 +- typedapi/watcher/stats/response.go | 4 +- typedapi/watcher/stats/stats.go | 4 +- typedapi/watcher/stop/response.go | 4 +- typedapi/watcher/stop/stop.go | 4 +- typedapi/watcher/updatesettings/request.go | 4 +- typedapi/watcher/updatesettings/response.go | 4 +- .../watcher/updatesettings/update_settings.go | 20 +- typedapi/xpack/info/info.go | 2 +- typedapi/xpack/info/response.go | 4 +- typedapi/xpack/usage/response.go | 4 +- typedapi/xpack/usage/usage.go | 4 +- 3452 files changed, 22697 insertions(+), 6618 deletions(-) create mode 100644 typedapi/inference/inference/inference.go create mode 100644 typedapi/inference/inference/request.go create mode 100644 typedapi/inference/inference/response.go create mode 100644 typedapi/inference/putalibabacloud/put_alibabacloud.go create mode 100644 typedapi/inference/putalibabacloud/request.go create mode 100644 typedapi/inference/putalibabacloud/response.go create mode 100644 typedapi/inference/putamazonbedrock/put_amazonbedrock.go create mode 100644 typedapi/inference/putamazonbedrock/request.go create mode 100644 typedapi/inference/putamazonbedrock/response.go create mode 100644 typedapi/inference/putanthropic/put_anthropic.go create mode 100644 typedapi/inference/putanthropic/request.go create mode 100644 typedapi/inference/putanthropic/response.go create mode 100644 typedapi/inference/putazureaistudio/put_azureaistudio.go create mode 100644 typedapi/inference/putazureaistudio/request.go create mode 100644 typedapi/inference/putazureaistudio/response.go create mode 100644 typedapi/inference/putazureopenai/put_azureopenai.go create mode 100644 typedapi/inference/putazureopenai/request.go create mode 100644 typedapi/inference/putazureopenai/response.go create mode 100644 typedapi/inference/putcohere/put_cohere.go create mode 100644 typedapi/inference/putcohere/request.go create mode 100644 typedapi/inference/putcohere/response.go create mode 100644 typedapi/inference/putelasticsearch/put_elasticsearch.go create mode 100644 typedapi/inference/putelasticsearch/request.go create mode 100644 typedapi/inference/putelasticsearch/response.go create mode 100644 typedapi/inference/putelser/put_elser.go create mode 100644 typedapi/inference/putelser/request.go create mode 100644 typedapi/inference/putelser/response.go create mode 100644 typedapi/inference/putgoogleaistudio/put_googleaistudio.go create mode 100644 typedapi/inference/putgoogleaistudio/request.go create mode 100644 typedapi/inference/putgoogleaistudio/response.go create mode 100644 typedapi/inference/putgooglevertexai/put_googlevertexai.go create mode 100644 typedapi/inference/putgooglevertexai/request.go create mode 100644 typedapi/inference/putgooglevertexai/response.go create mode 100644 typedapi/inference/puthuggingface/put_hugging_face.go create mode 100644 typedapi/inference/puthuggingface/request.go create mode 100644 typedapi/inference/puthuggingface/response.go create mode 100644 typedapi/inference/putjinaai/put_jinaai.go create mode 100644 typedapi/inference/putjinaai/request.go create mode 100644 typedapi/inference/putjinaai/response.go create mode 100644 typedapi/inference/putmistral/put_mistral.go create mode 100644 typedapi/inference/putmistral/request.go create mode 100644 typedapi/inference/putmistral/response.go create mode 100644 typedapi/inference/putvoyageai/put_voyageai.go create mode 100644 typedapi/inference/putvoyageai/request.go create mode 100644 typedapi/inference/putvoyageai/response.go create mode 100644 typedapi/types/adaptiveallocations.go create mode 100644 typedapi/types/alibabacloudservicesettings.go create mode 100644 typedapi/types/alibabacloudtasksettings.go create mode 100644 typedapi/types/amazonbedrockservicesettings.go create mode 100644 typedapi/types/amazonbedrocktasksettings.go create mode 100644 typedapi/types/anthropicservicesettings.go create mode 100644 typedapi/types/anthropictasksettings.go create mode 100644 typedapi/types/azureaistudioservicesettings.go create mode 100644 typedapi/types/azureaistudiotasksettings.go create mode 100644 typedapi/types/azureopenaiservicesettings.go create mode 100644 typedapi/types/azureopenaitasksettings.go create mode 100644 typedapi/types/chunkingsettings.go create mode 100644 typedapi/types/cohereservicesettings.go create mode 100644 typedapi/types/coheretasksettings.go create mode 100644 typedapi/types/elasticsearchservicesettings.go create mode 100644 typedapi/types/elasticsearchtasksettings.go create mode 100644 typedapi/types/elserservicesettings.go create mode 100644 typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.go create mode 100644 typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go create mode 100644 typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.go create mode 100644 typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go create mode 100644 typedapi/types/enums/anthropicservicetype/anthropicservicetype.go create mode 100644 typedapi/types/enums/anthropictasktype/anthropictasktype.go create mode 100644 typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.go create mode 100644 typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go create mode 100644 typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go create mode 100644 typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go create mode 100644 typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.go create mode 100644 typedapi/types/enums/cohereinputtype/cohereinputtype.go create mode 100644 typedapi/types/enums/cohereservicetype/cohereservicetype.go create mode 100644 typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go create mode 100644 typedapi/types/enums/coheretasktype/coheretasktype.go create mode 100644 typedapi/types/enums/coheretruncatetype/coheretruncatetype.go create mode 100644 typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go create mode 100644 typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go rename typedapi/types/enums/{servicetype/servicetype.go => elserservicetype/elserservicetype.go} (60%) create mode 100644 typedapi/types/enums/elsertasktype/elsertasktype.go create mode 100644 typedapi/types/enums/googleaiservicetype/googleaiservicetype.go create mode 100644 typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go create mode 100644 typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go create mode 100644 typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go create mode 100644 typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.go create mode 100644 typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go create mode 100644 typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go create mode 100644 typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go create mode 100644 typedapi/types/enums/jinaaitasktype/jinaaitasktype.go create mode 100644 typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go create mode 100644 typedapi/types/enums/mistralservicetype/mistralservicetype.go create mode 100644 typedapi/types/enums/mistraltasktype/mistraltasktype.go create mode 100644 typedapi/types/enums/openaiservicetype/openaiservicetype.go create mode 100644 typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.go create mode 100644 typedapi/types/enums/voyageaitasktype/voyageaitasktype.go create mode 100644 typedapi/types/enums/watsonxservicetype/watsonxservicetype.go create mode 100644 typedapi/types/featureextractor.go create mode 100644 typedapi/types/googleaistudioservicesettings.go create mode 100644 typedapi/types/googlevertexaiservicesettings.go create mode 100644 typedapi/types/googlevertexaitasksettings.go create mode 100644 typedapi/types/huggingfaceservicesettings.go create mode 100644 typedapi/types/inputconfig.go create mode 100644 typedapi/types/jinaaiservicesettings.go create mode 100644 typedapi/types/jinaaitasksettings.go create mode 100644 typedapi/types/learningtorankconfig.go create mode 100644 typedapi/types/mistralservicesettings.go create mode 100644 typedapi/types/queryfeatureextractor.go create mode 100644 typedapi/types/requestchatcompletion.go create mode 100644 typedapi/types/trainedmodelassignmentroutingstateandreason.go create mode 100644 typedapi/types/transformhealthissue.go create mode 100644 typedapi/types/voyageaiservicesettings.go create mode 100644 typedapi/types/voyageaitasksettings.go create mode 100644 typedapi/types/waitfornodes.go create mode 100644 typedapi/types/xlmrobertatokenizationconfig.go diff --git a/typedapi/api._.go b/typedapi/api._.go index 88f7357f7e..93a558f89d 100644 --- a/typedapi/api._.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package typedapi @@ -264,8 +264,23 @@ import ( inference_completion "github.com/elastic/go-elasticsearch/v8/typedapi/inference/completion" 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 "github.com/elastic/go-elasticsearch/v8/typedapi/inference/put" + inference_put_alibabacloud "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putalibabacloud" + inference_put_amazonbedrock "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putamazonbedrock" + inference_put_anthropic "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putanthropic" + inference_put_azureaistudio "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putazureaistudio" + inference_put_azureopenai "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putazureopenai" + inference_put_cohere "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putcohere" + inference_put_elasticsearch "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putelasticsearch" + inference_put_elser "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putelser" + inference_put_googleaistudio "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putgoogleaistudio" + inference_put_googlevertexai "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putgooglevertexai" + inference_put_hugging_face "github.com/elastic/go-elasticsearch/v8/typedapi/inference/puthuggingface" + inference_put_jinaai "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putjinaai" + inference_put_mistral "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putmistral" inference_put_openai "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putopenai" + inference_put_voyageai "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putvoyageai" inference_put_watsonx "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putwatsonx" inference_rerank "github.com/elastic/go-elasticsearch/v8/typedapi/inference/rerank" inference_sparse_embedding "github.com/elastic/go-elasticsearch/v8/typedapi/inference/sparseembedding" @@ -1091,7 +1106,7 @@ type Cluster struct { DeleteComponentTemplate cluster_delete_component_template.NewDeleteComponentTemplate // Clear cluster voting config exclusions. // Remove master-eligible nodes from the voting configuration exclusion list. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions DeleteVotingConfigExclusions cluster_delete_voting_config_exclusions.NewDeleteVotingConfigExclusions // Check component templates. // Returns information about whether a particular component template exists. @@ -1179,7 +1194,7 @@ type Cluster struct { // the master-eligible nodes from a cluster in a short time period. // They are not required when removing master-ineligible nodes or when removing // fewer than half of the master-eligible nodes. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions PostVotingConfigExclusions cluster_post_voting_config_exclusions.NewPostVotingConfigExclusions // Create or update a component template. // Component templates are building blocks for constructing index templates that @@ -4932,6 +4947,28 @@ type Inference struct { // Get an inference endpoint // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-api.html Get inference_get.NewGet + // Perform inference on the service. + // + // This API enables you to use machine learning models to perform specific tasks + // on data that you provide as an input. + // It returns a response with the results of the tasks. + // The inference endpoint you use can perform one specific task that has been + // defined when the endpoint was created with the create inference API. + // + // For details about using this API with a service, such as Amazon Bedrock, + // Anthropic, or HuggingFace, refer to the service-specific documentation. + // + // > info + // > The inference APIs enable you to use certain services, such as built-in + // machine learning models (ELSER, E5), models uploaded through Eland, Cohere, + // OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or + // Hugging Face. For built-in models and models uploaded through Eland, the + // inference APIs offer an alternative way to use and manage trained models. + // However, if you do not plan to use the inference APIs to use these models or + // if you want to use non-NLP models, use the machine learning trained model + // APIs. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/post-inference-api.html + Inference inference_inference.NewInference // Create an inference endpoint. // When you create an inference endpoint, the associated machine learning model // is automatically deployed if it is not already running. @@ -4954,10 +4991,288 @@ type Inference struct { // APIs. // https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html Put inference_put.NewPut + // Create an AlibabaCloud AI Search inference endpoint. + // + // Create an inference endpoint to perform an inference task with the + // `alibabacloud-ai-search` service. + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-alibabacloud-ai-search.html + PutAlibabacloud inference_put_alibabacloud.NewPutAlibabacloud + // Create an Amazon Bedrock inference endpoint. + // + // Creates an inference endpoint to perform an inference task with the + // `amazonbedrock` service. + // + // >info + // > You need to provide the access and secret keys only once, during the + // inference model creation. The get inference API does not retrieve your access + // or secret keys. After creating the inference model, you cannot change the + // associated key pairs. If you want to use a different access and secret key + // pair, delete the inference model and recreate it with the same name and the + // updated keys. + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-amazon-bedrock.html + PutAmazonbedrock inference_put_amazonbedrock.NewPutAmazonbedrock + // Create an Anthropic inference endpoint. + // + // Create an inference endpoint to perform an inference task with the + // `anthropic` service. + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-anthropic.html + PutAnthropic inference_put_anthropic.NewPutAnthropic + // Create an Azure AI studio inference endpoint. + // + // Create an inference endpoint to perform an inference task with the + // `azureaistudio` service. + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-azure-ai-studio.html + PutAzureaistudio inference_put_azureaistudio.NewPutAzureaistudio + // Create an Azure OpenAI inference endpoint. + // + // Create an inference endpoint to perform an inference task with the + // `azureopenai` service. + // + // The list of chat completion models that you can choose from in your Azure + // OpenAI deployment include: + // + // * [GPT-4 and GPT-4 Turbo + // models](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models) + // * + // [GPT-3.5](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35) + // + // The list of embeddings models that you can choose from in your deployment can + // be found in the [Azure models + // documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings). + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-azure-openai.html + PutAzureopenai inference_put_azureopenai.NewPutAzureopenai + // Create a Cohere inference endpoint. + // + // Create an inference endpoint to perform an inference task with the `cohere` + // service. + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-cohere.html + PutCohere inference_put_cohere.NewPutCohere + // Create an Elasticsearch inference endpoint. + // + // Create an inference endpoint to perform an inference task with the + // `elasticsearch` service. + // + // > info + // > Your Elasticsearch deployment contains preconfigured ELSER and E5 inference + // endpoints, you only need to create the enpoints using the API if you want to + // customize the settings. + // + // If you use the ELSER or the E5 model through the `elasticsearch` service, the + // API request will automatically download and deploy the model if it isn't + // downloaded yet. + // + // > info + // > You might see a 502 bad gateway error in the response when using the Kibana + // Console. This error usually just reflects a timeout, while the model + // downloads in the background. You can check the download progress in the + // Machine Learning UI. If using the Python client, you can set the timeout + // parameter to a higher value. + // + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elasticsearch.html + PutElasticsearch inference_put_elasticsearch.NewPutElasticsearch + // Create an ELSER inference endpoint. + // + // Create an inference endpoint to perform an inference task with the `elser` + // service. + // You can also deploy ELSER by using the Elasticsearch inference integration. + // + // > info + // > Your Elasticsearch deployment contains a preconfigured ELSER inference + // endpoint, you only need to create the enpoint using the API if you want to + // customize the settings. + // + // The API request will automatically download and deploy the ELSER model if it + // isn't already downloaded. + // + // > info + // > You might see a 502 bad gateway error in the response when using the Kibana + // Console. This error usually just reflects a timeout, while the model + // downloads in the background. You can check the download progress in the + // Machine Learning UI. If using the Python client, you can set the timeout + // parameter to a higher value. + // + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elser.html + PutElser inference_put_elser.NewPutElser + // Create an Google AI Studio inference endpoint. + // + // Create an inference endpoint to perform an inference task with the + // `googleaistudio` service. + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-google-ai-studio.html + PutGoogleaistudio inference_put_googleaistudio.NewPutGoogleaistudio + // Create a Google Vertex AI inference endpoint. + // + // Create an inference endpoint to perform an inference task with the + // `googlevertexai` service. + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-google-vertex-ai.html + PutGooglevertexai inference_put_googlevertexai.NewPutGooglevertexai + // Create a Hugging Face inference endpoint. + // + // Create an inference endpoint to perform an inference task with the + // `hugging_face` service. + // + // You must first create an inference endpoint on the Hugging Face endpoint page + // to get an endpoint URL. + // Select the model you want to use on the new endpoint creation page (for + // example `intfloat/e5-small-v2`), then select the sentence embeddings task + // under the advanced configuration section. + // Create the endpoint and copy the URL after the endpoint initialization has + // been finished. + // + // The following models are recommended for the Hugging Face service: + // + // * `all-MiniLM-L6-v2` + // * `all-MiniLM-L12-v2` + // * `all-mpnet-base-v2` + // * `e5-base-v2` + // * `e5-small-v2` + // * `multilingual-e5-base` + // * `multilingual-e5-small` + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-hugging-face.html + PutHuggingFace inference_put_hugging_face.NewPutHuggingFace + // Create an JinaAI inference endpoint. + // + // Create an inference endpoint to perform an inference task with the `jinaai` + // service. + // + // To review the available `rerank` models, refer to . + // To review the available `text_embedding` models, refer to the + // . + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-jinaai.html + PutJinaai inference_put_jinaai.NewPutJinaai + // Create a Mistral inference endpoint. + // + // Creates an inference endpoint to perform an inference task with the `mistral` + // service. + // + // When you create an inference endpoint, the associated machine learning model + // is automatically deployed if it is not already running. + // After creating the endpoint, wait for the model deployment to complete before + // using it. + // To verify the deployment status, use the get trained model statistics API. + // Look for `"state": "fully_allocated"` in the response and ensure that the + // `"allocation_count"` matches the `"target_allocation_count"`. + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-mistral.html + PutMistral inference_put_mistral.NewPutMistral // Create an OpenAI inference endpoint. // // Create an inference endpoint to perform an inference task with the `openai` - // service. + // service or `openai` compatible APIs. // // When you create an inference endpoint, the associated machine learning model // is automatically deployed if it is not already running. @@ -4970,6 +5285,15 @@ type Inference struct { // endpoint consumes significant resources. // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-openai.html PutOpenai inference_put_openai.NewPutOpenai + // Create a VoyageAI inference endpoint. + // + // Create an inference endpoint to perform an inference task with the `voyageai` + // service. + // + // Avoid creating multiple endpoints for the same model unless required, as each + // endpoint consumes significant resources. + // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-voyageai.html + PutVoyageai inference_put_voyageai.NewPutVoyageai // Create a Watsonx inference endpoint. // // Create an inference endpoint to perform an inference task with the @@ -5140,7 +5464,7 @@ type License struct { // before you install the license. // If the operator privileges feature is enabled, only operator users can use // this API. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-license.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-license-post Post license_post.NewPost // Start a basic license. // @@ -5719,7 +6043,7 @@ type Ml struct { // https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-trained-model-deployment.html StopTrainedModelDeployment ml_stop_trained_model_deployment.NewStopTrainedModelDeployment // Update a data frame analytics job. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ml-update-data-frame-analytics UpdateDataFrameAnalytics ml_update_data_frame_analytics.NewUpdateDataFrameAnalytics // Update a datafeed. // You must stop and start the datafeed for the changes to be applied. @@ -5744,7 +6068,7 @@ type Ml struct { // https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html UpdateModelSnapshot ml_update_model_snapshot.NewUpdateModelSnapshot // Update a trained model deployment. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ml-update-trained-model-deployment UpdateTrainedModelDeployment ml_update_trained_model_deployment.NewUpdateTrainedModelDeployment // Upgrade a snapshot. // Upgrade an anomaly detection model snapshot to the latest major version. @@ -8045,7 +8369,7 @@ type Transform struct { // 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 + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-transform-update-transform UpdateTransform transform_update_transform.NewUpdateTransform // Upgrade all transforms. // @@ -8071,7 +8395,7 @@ type Transform struct { // of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade // transforms before upgrading the cluster. // You may want to perform a recent cluster backup prior to the upgrade. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/upgrade-transforms.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-transform-upgrade-transforms UpgradeTransforms transform_upgrade_transforms.NewUpgradeTransforms } @@ -8092,15 +8416,15 @@ type Watcher struct { // `ack.state` is reset to `awaits_successful_execution`. // This happens when the condition of the watch is not met (the condition // evaluates to false). - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-ack-watch AckWatch watcher_ack_watch.NewAckWatch // Activate a watch. // A watch can be either active or inactive. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-activate-watch ActivateWatch watcher_activate_watch.NewActivateWatch // Deactivate a watch. // A watch can be either active or inactive. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-deactivate-watch DeactivateWatch watcher_deactivate_watch.NewDeactivateWatch // Delete a watch. // When the watch is removed, the document representing the watch in the @@ -8114,7 +8438,7 @@ type Watcher struct { // Elasticsearch delete document API // When Elasticsearch security features are enabled, make sure no write // privileges are granted to anyone for the `.watches` index. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-delete-watch DeleteWatch watcher_delete_watch.NewDeleteWatch // Run a watch. // This API can be used to force execution of the watch outside of its @@ -8140,16 +8464,16 @@ type Watcher struct { // When using the run watch API, the authorization data of the user that called // the API will be used as a base, instead of the information who stored the // watch. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-execute-watch ExecuteWatch watcher_execute_watch.NewExecuteWatch // Get Watcher index settings. // Get settings for the Watcher internal index (`.watches`). // Only a subset of settings are shown, for example `index.auto_expand_replicas` // and `index.number_of_replicas`. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-settings.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-get-settings GetSettings watcher_get_settings.NewGetSettings // Get a watch. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-get-watch GetWatch watcher_get_watch.NewGetWatch // Create or update a watch. // When a watch is registered, a new document that represents the watch is added @@ -8171,33 +8495,39 @@ type Watcher struct { // privileges. // If the user is able to read index `a`, but not index `b`, the same will apply // when the watch runs. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-put-watch PutWatch watcher_put_watch.NewPutWatch // Query watches. // Get all registered watches in a paginated manner and optionally filter // watches by a query. // // Note that only the `_id` and `metadata.*` fields are queryable or sortable. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-query-watches.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-query-watches QueryWatches watcher_query_watches.NewQueryWatches // Start the watch service. // Start the Watcher service if it is not already running. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-start Start watcher_start.NewStart // Get Watcher statistics. // This API always returns basic metrics. // You retrieve more metrics by using the metric parameter. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stats Stats watcher_stats.NewStats // Stop the watch service. // Stop the Watcher service if it is running. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stop Stop watcher_stop.NewStop // Update Watcher index settings. // Update settings for the Watcher internal index (`.watches`). // Only a subset of settings can be modified. - // This includes `index.auto_expand_replicas` and `index.number_of_replicas`. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-update-settings.html + // This includes `index.auto_expand_replicas`, `index.number_of_replicas`, + // `index.routing.allocation.exclude.*`, + // `index.routing.allocation.include.*` and + // `index.routing.allocation.require.*`. + // Modification of `index.routing.allocation.include._tier_preference` is an + // exception and is not allowed as the + // Watcher shards must always be in the `data_content` tier. + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-update-settings UpdateSettings watcher_update_settings.NewUpdateSettings } @@ -8215,7 +8545,7 @@ type Xpack struct { // Get information about the features that are currently enabled and available // under the current license. // The API also provides some usage statistics. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html + // https://www.elastic.co/docs/api/doc/elasticsearch/v8/group/endpoint-xpack Usage xpack_usage.NewUsage } @@ -10488,8 +10818,23 @@ func New(tp elastictransport.Interface) *API { Completion: inference_completion.NewCompletionFunc(tp), Delete: inference_delete.NewDeleteFunc(tp), Get: inference_get.NewGetFunc(tp), + Inference: inference_inference.NewInferenceFunc(tp), Put: inference_put.NewPutFunc(tp), + PutAlibabacloud: inference_put_alibabacloud.NewPutAlibabacloudFunc(tp), + PutAmazonbedrock: inference_put_amazonbedrock.NewPutAmazonbedrockFunc(tp), + PutAnthropic: inference_put_anthropic.NewPutAnthropicFunc(tp), + PutAzureaistudio: inference_put_azureaistudio.NewPutAzureaistudioFunc(tp), + PutAzureopenai: inference_put_azureopenai.NewPutAzureopenaiFunc(tp), + PutCohere: inference_put_cohere.NewPutCohereFunc(tp), + PutElasticsearch: inference_put_elasticsearch.NewPutElasticsearchFunc(tp), + PutElser: inference_put_elser.NewPutElserFunc(tp), + PutGoogleaistudio: inference_put_googleaistudio.NewPutGoogleaistudioFunc(tp), + PutGooglevertexai: inference_put_googlevertexai.NewPutGooglevertexaiFunc(tp), + PutHuggingFace: inference_put_hugging_face.NewPutHuggingFaceFunc(tp), + PutJinaai: inference_put_jinaai.NewPutJinaaiFunc(tp), + PutMistral: inference_put_mistral.NewPutMistralFunc(tp), PutOpenai: inference_put_openai.NewPutOpenaiFunc(tp), + PutVoyageai: inference_put_voyageai.NewPutVoyageaiFunc(tp), PutWatsonx: inference_put_watsonx.NewPutWatsonxFunc(tp), Rerank: inference_rerank.NewRerankFunc(tp), SparseEmbedding: inference_sparse_embedding.NewSparseEmbeddingFunc(tp), diff --git a/typedapi/asyncsearch/delete/delete.go b/typedapi/asyncsearch/delete/delete.go index f770a10eb6..daee1376e3 100644 --- a/typedapi/asyncsearch/delete/delete.go +++ b/typedapi/asyncsearch/delete/delete.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an async search. // diff --git a/typedapi/asyncsearch/delete/response.go b/typedapi/asyncsearch/delete/response.go index b208424ae2..93165603e2 100644 --- a/typedapi/asyncsearch/delete/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/async_search/delete/AsyncSearchDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/asyncsearch/get/get.go b/typedapi/asyncsearch/get/get.go index 9e525487e7..6f2c534c48 100644 --- a/typedapi/asyncsearch/get/get.go +++ b/typedapi/asyncsearch/get/get.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get async search results. // diff --git a/typedapi/asyncsearch/get/response.go b/typedapi/asyncsearch/get/response.go index 9fb0729c5b..638f531817 100644 --- a/typedapi/asyncsearch/get/response.go +++ b/typedapi/asyncsearch/get/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L24 type Response struct { // CompletionTime Indicates when the async search completed. diff --git a/typedapi/asyncsearch/status/response.go b/typedapi/asyncsearch/status/response.go index b4418bcb95..89b9e79f91 100644 --- a/typedapi/asyncsearch/status/response.go +++ b/typedapi/asyncsearch/status/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package status @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L41 type Response struct { // Clusters_ Metadata about clusters involved in the cross-cluster search. diff --git a/typedapi/asyncsearch/status/status.go b/typedapi/asyncsearch/status/status.go index 9dac906b23..0b45fbe523 100644 --- a/typedapi/asyncsearch/status/status.go +++ b/typedapi/asyncsearch/status/status.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the async search status. // diff --git a/typedapi/asyncsearch/submit/request.go b/typedapi/asyncsearch/submit/request.go index af5cbfb43f..08eb216468 100644 --- a/typedapi/asyncsearch/submit/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package submit @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L55-L296 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L55-L296 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` @@ -59,7 +59,7 @@ type Request struct { // Knn Defines the approximate kNN search to run. Knn []types.KnnSearch `json:"knn,omitempty"` // MinScore Minimum _score for matching documents. Documents with a lower _score are - // not included in the search results. + // not included in search results and results collected by aggregations. MinScore *types.Float64 `json:"min_score,omitempty"` // Pit Limits the search to a point in time (PIT). If you provide a PIT, you // cannot specify an in the request path. diff --git a/typedapi/asyncsearch/submit/response.go b/typedapi/asyncsearch/submit/response.go index 92f1acf499..2dcf99622d 100644 --- a/typedapi/asyncsearch/submit/response.go +++ b/typedapi/asyncsearch/submit/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package submit @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24 type Response struct { // CompletionTime Indicates when the async search completed. diff --git a/typedapi/asyncsearch/submit/submit.go b/typedapi/asyncsearch/submit/submit.go index e94205769c..f4f19695c2 100644 --- a/typedapi/asyncsearch/submit/submit.go +++ b/typedapi/asyncsearch/submit/submit.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run an async search. // @@ -828,7 +828,7 @@ func (r *Submit) Knn(knns ...types.KnnSearchVariant) *Submit { } // Minimum _score for matching documents. Documents with a lower _score are -// not included in the search results. +// not included in search results and results collected by aggregations. // API name: min_score func (r *Submit) MinScore(minscore types.Float64) *Submit { // Initialize the request if it is not already initialized diff --git a/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go b/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go index cd3fb6723c..32493f875a 100644 --- a/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an autoscaling policy. // diff --git a/typedapi/autoscaling/deleteautoscalingpolicy/response.go b/typedapi/autoscaling/deleteautoscalingpolicy/response.go index 5fa9ca393a..e5c63e32e1 100644 --- a/typedapi/autoscaling/deleteautoscalingpolicy/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteautoscalingpolicy // Response holds the response body struct for the package deleteautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go b/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go index 478cb7742b..a6f8193230 100644 --- a/typedapi/autoscaling/getautoscalingcapacity/get_autoscaling_capacity.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the autoscaling capacity. // diff --git a/typedapi/autoscaling/getautoscalingcapacity/response.go b/typedapi/autoscaling/getautoscalingcapacity/response.go index 1bd40165e8..53026bfa8c 100644 --- a/typedapi/autoscaling/getautoscalingcapacity/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getautoscalingcapacity @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautoscalingcapacity // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29 type Response struct { Policies map[string]types.AutoscalingDeciders `json:"policies"` } diff --git a/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go b/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go index f22994185f..08dc6293a2 100644 --- a/typedapi/autoscaling/getautoscalingpolicy/get_autoscaling_policy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get an autoscaling policy. // diff --git a/typedapi/autoscaling/getautoscalingpolicy/response.go b/typedapi/autoscaling/getautoscalingpolicy/response.go index 2cdddd66bb..19c6a8d5bf 100644 --- a/typedapi/autoscaling/getautoscalingpolicy/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getautoscalingpolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24 type Response struct { // Deciders Decider settings. diff --git a/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go b/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go index 85f6f5427d..fbe0ca0b4e 100644 --- a/typedapi/autoscaling/putautoscalingpolicy/put_autoscaling_policy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update an autoscaling policy. // diff --git a/typedapi/autoscaling/putautoscalingpolicy/request.go b/typedapi/autoscaling/putautoscalingpolicy/request.go index d2c5f436ae..91e4b3dd55 100644 --- a/typedapi/autoscaling/putautoscalingpolicy/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putautoscalingpolicy @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L57 type Request = types.AutoscalingPolicy // NewRequest returns a Request diff --git a/typedapi/autoscaling/putautoscalingpolicy/response.go b/typedapi/autoscaling/putautoscalingpolicy/response.go index 98db3974a3..081bcc7bb0 100644 --- a/typedapi/autoscaling/putautoscalingpolicy/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putautoscalingpolicy // Response holds the response body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/capabilities/capabilities.go b/typedapi/capabilities/capabilities.go index 0df3c40ffa..9d5602df99 100644 --- a/typedapi/capabilities/capabilities.go +++ b/typedapi/capabilities/capabilities.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Checks if the specified combination of method, API, parameters, and arbitrary // capabilities are supported diff --git a/typedapi/cat/aliases/aliases.go b/typedapi/cat/aliases/aliases.go index 37bb4233a2..f83ec974ec 100644 --- a/typedapi/cat/aliases/aliases.go +++ b/typedapi/cat/aliases/aliases.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get aliases. // diff --git a/typedapi/cat/aliases/response.go b/typedapi/cat/aliases/response.go index 9ce41f56ba..270d2a6014 100644 --- a/typedapi/cat/aliases/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package aliases @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package aliases // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/aliases/CatAliasesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/aliases/CatAliasesResponse.ts#L22-L24 type Response []types.AliasesRecord diff --git a/typedapi/cat/allocation/allocation.go b/typedapi/cat/allocation/allocation.go index 2a56247711..45f0275d0f 100644 --- a/typedapi/cat/allocation/allocation.go +++ b/typedapi/cat/allocation/allocation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get shard allocation information. // diff --git a/typedapi/cat/allocation/response.go b/typedapi/cat/allocation/response.go index 030f2a92e9..368b33bcb4 100644 --- a/typedapi/cat/allocation/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package allocation @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package allocation // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/allocation/CatAllocationResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/allocation/CatAllocationResponse.ts#L22-L24 type Response []types.AllocationRecord diff --git a/typedapi/cat/componenttemplates/component_templates.go b/typedapi/cat/componenttemplates/component_templates.go index e526eb233b..bf0ee12810 100644 --- a/typedapi/cat/componenttemplates/component_templates.go +++ b/typedapi/cat/componenttemplates/component_templates.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get component templates. // diff --git a/typedapi/cat/componenttemplates/response.go b/typedapi/cat/componenttemplates/response.go index 2b122fc08b..6fdf73cc03 100644 --- a/typedapi/cat/componenttemplates/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package componenttemplates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package componenttemplates // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L24 type Response []types.CatComponentTemplate diff --git a/typedapi/cat/count/count.go b/typedapi/cat/count/count.go index 8dc6307890..7f9340bad8 100644 --- a/typedapi/cat/count/count.go +++ b/typedapi/cat/count/count.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a document count. // diff --git a/typedapi/cat/count/response.go b/typedapi/cat/count/response.go index 358f1e0fb8..bdee2d188d 100644 --- a/typedapi/cat/count/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package count @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/count/CatCountResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/count/CatCountResponse.ts#L22-L24 type Response []types.CountRecord diff --git a/typedapi/cat/fielddata/fielddata.go b/typedapi/cat/fielddata/fielddata.go index 2820ce32cb..132f3e3fa3 100644 --- a/typedapi/cat/fielddata/fielddata.go +++ b/typedapi/cat/fielddata/fielddata.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get field data cache information. // diff --git a/typedapi/cat/fielddata/response.go b/typedapi/cat/fielddata/response.go index d98ae7d62d..5e8952c877 100644 --- a/typedapi/cat/fielddata/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package fielddata @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package fielddata // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/fielddata/CatFielddataResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/fielddata/CatFielddataResponse.ts#L22-L24 type Response []types.FielddataRecord diff --git a/typedapi/cat/health/health.go b/typedapi/cat/health/health.go index d282fc079a..168880cff4 100644 --- a/typedapi/cat/health/health.go +++ b/typedapi/cat/health/health.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the cluster health status. // diff --git a/typedapi/cat/health/response.go b/typedapi/cat/health/response.go index e3268b94c6..a7adaba632 100644 --- a/typedapi/cat/health/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package health @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/health/CatHealthResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/health/CatHealthResponse.ts#L22-L24 type Response []types.HealthRecord diff --git a/typedapi/cat/help/help.go b/typedapi/cat/help/help.go index ef8be1c6e7..e849f3b063 100644 --- a/typedapi/cat/help/help.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get CAT help. // diff --git a/typedapi/cat/help/response.go b/typedapi/cat/help/response.go index 0040428303..1e979afbe1 100644 --- a/typedapi/cat/help/response.go +++ b/typedapi/cat/help/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package help // Response holds the response body struct for the package help // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/help/CatHelpResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/help/CatHelpResponse.ts#L20-L25 type Response struct { } diff --git a/typedapi/cat/indices/indices.go b/typedapi/cat/indices/indices.go index 36163cd0ec..f7b0ccbc70 100644 --- a/typedapi/cat/indices/indices.go +++ b/typedapi/cat/indices/indices.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index information. // diff --git a/typedapi/cat/indices/response.go b/typedapi/cat/indices/response.go index 24242ce947..67f70a7dc8 100644 --- a/typedapi/cat/indices/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package indices @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package indices // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/indices/CatIndicesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/indices/CatIndicesResponse.ts#L22-L24 type Response []types.IndicesRecord diff --git a/typedapi/cat/master/master.go b/typedapi/cat/master/master.go index 2baa260ede..5d47b29dae 100644 --- a/typedapi/cat/master/master.go +++ b/typedapi/cat/master/master.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get master node information. // diff --git a/typedapi/cat/master/response.go b/typedapi/cat/master/response.go index 7a7f98df4a..c2e3949042 100644 --- a/typedapi/cat/master/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package master @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package master // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/master/CatMasterResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/master/CatMasterResponse.ts#L22-L24 type Response []types.MasterRecord diff --git a/typedapi/cat/mldatafeeds/ml_datafeeds.go b/typedapi/cat/mldatafeeds/ml_datafeeds.go index f515a1a4d8..f99c0d7fe6 100644 --- a/typedapi/cat/mldatafeeds/ml_datafeeds.go +++ b/typedapi/cat/mldatafeeds/ml_datafeeds.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get datafeeds. // diff --git a/typedapi/cat/mldatafeeds/response.go b/typedapi/cat/mldatafeeds/response.go index 09aa20b7d0..350cc9d9ef 100644 --- a/typedapi/cat/mldatafeeds/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mldatafeeds @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mldatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L24 type Response []types.DatafeedsRecord diff --git a/typedapi/cat/mldataframeanalytics/ml_data_frame_analytics.go b/typedapi/cat/mldataframeanalytics/ml_data_frame_analytics.go index c7fec5ed70..07760fb5fe 100644 --- a/typedapi/cat/mldataframeanalytics/ml_data_frame_analytics.go +++ b/typedapi/cat/mldataframeanalytics/ml_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get data frame analytics jobs. // diff --git a/typedapi/cat/mldataframeanalytics/response.go b/typedapi/cat/mldataframeanalytics/response.go index 5a3f3b3434..9174623077 100644 --- a/typedapi/cat/mldataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mldataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mldataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24 type Response []types.DataFrameAnalyticsRecord diff --git a/typedapi/cat/mljobs/ml_jobs.go b/typedapi/cat/mljobs/ml_jobs.go index 98316e4ec0..76a580fcd9 100644 --- a/typedapi/cat/mljobs/ml_jobs.go +++ b/typedapi/cat/mljobs/ml_jobs.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get anomaly detection jobs. // diff --git a/typedapi/cat/mljobs/response.go b/typedapi/cat/mljobs/response.go index 9cad4298a7..e9f9e92d7b 100644 --- a/typedapi/cat/mljobs/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mljobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mljobs // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L24 type Response []types.JobsRecord diff --git a/typedapi/cat/mltrainedmodels/ml_trained_models.go b/typedapi/cat/mltrainedmodels/ml_trained_models.go index e60c912a6b..58b0ce6808 100644 --- a/typedapi/cat/mltrainedmodels/ml_trained_models.go +++ b/typedapi/cat/mltrainedmodels/ml_trained_models.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get trained models. // diff --git a/typedapi/cat/mltrainedmodels/response.go b/typedapi/cat/mltrainedmodels/response.go index a34686cffa..49f6d2da35 100644 --- a/typedapi/cat/mltrainedmodels/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mltrainedmodels @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mltrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24 type Response []types.TrainedModelsRecord diff --git a/typedapi/cat/nodeattrs/nodeattrs.go b/typedapi/cat/nodeattrs/nodeattrs.go index 7d04d83f15..0787e01696 100644 --- a/typedapi/cat/nodeattrs/nodeattrs.go +++ b/typedapi/cat/nodeattrs/nodeattrs.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get node attribute information. // diff --git a/typedapi/cat/nodeattrs/response.go b/typedapi/cat/nodeattrs/response.go index 6a2321541a..dbc4134746 100644 --- a/typedapi/cat/nodeattrs/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package nodeattrs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package nodeattrs // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24 type Response []types.NodeAttributesRecord diff --git a/typedapi/cat/nodes/nodes.go b/typedapi/cat/nodes/nodes.go index a8749db0cc..7b0a2c4076 100644 --- a/typedapi/cat/nodes/nodes.go +++ b/typedapi/cat/nodes/nodes.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get node information. // diff --git a/typedapi/cat/nodes/response.go b/typedapi/cat/nodes/response.go index 78186e5ade..8fa2333e6b 100644 --- a/typedapi/cat/nodes/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package nodes @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package nodes // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/nodes/CatNodesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/nodes/CatNodesResponse.ts#L22-L24 type Response []types.NodesRecord diff --git a/typedapi/cat/pendingtasks/pending_tasks.go b/typedapi/cat/pendingtasks/pending_tasks.go index f1bb6212b4..7889c6e21c 100644 --- a/typedapi/cat/pendingtasks/pending_tasks.go +++ b/typedapi/cat/pendingtasks/pending_tasks.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get pending task information. // diff --git a/typedapi/cat/pendingtasks/response.go b/typedapi/cat/pendingtasks/response.go index 8d6ccf30fa..404c728a79 100644 --- a/typedapi/cat/pendingtasks/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package pendingtasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L24 type Response []types.PendingTasksRecord diff --git a/typedapi/cat/plugins/plugins.go b/typedapi/cat/plugins/plugins.go index 9f7cd15edb..4e2fa07441 100644 --- a/typedapi/cat/plugins/plugins.go +++ b/typedapi/cat/plugins/plugins.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get plugin information. // diff --git a/typedapi/cat/plugins/response.go b/typedapi/cat/plugins/response.go index 65c7361a8a..8ba133ad54 100644 --- a/typedapi/cat/plugins/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package plugins @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package plugins // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/plugins/CatPluginsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/plugins/CatPluginsResponse.ts#L22-L24 type Response []types.PluginsRecord diff --git a/typedapi/cat/recovery/recovery.go b/typedapi/cat/recovery/recovery.go index 26baf8ea61..7ca9e4ddca 100644 --- a/typedapi/cat/recovery/recovery.go +++ b/typedapi/cat/recovery/recovery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get shard recovery information. // diff --git a/typedapi/cat/recovery/response.go b/typedapi/cat/recovery/response.go index 6ff6810e41..65c0a915f4 100644 --- a/typedapi/cat/recovery/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package recovery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/recovery/CatRecoveryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/recovery/CatRecoveryResponse.ts#L22-L24 type Response []types.RecoveryRecord diff --git a/typedapi/cat/repositories/repositories.go b/typedapi/cat/repositories/repositories.go index b9d83f28ca..d65a810f31 100644 --- a/typedapi/cat/repositories/repositories.go +++ b/typedapi/cat/repositories/repositories.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get snapshot repository information. // diff --git a/typedapi/cat/repositories/response.go b/typedapi/cat/repositories/response.go index 7514834388..1c9b051f2c 100644 --- a/typedapi/cat/repositories/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package repositories @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositories // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L24 type Response []types.RepositoriesRecord diff --git a/typedapi/cat/segments/response.go b/typedapi/cat/segments/response.go index a032d5d304..782516c8b4 100644 --- a/typedapi/cat/segments/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package segments @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/segments/CatSegmentsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/segments/CatSegmentsResponse.ts#L22-L24 type Response []types.SegmentsRecord diff --git a/typedapi/cat/segments/segments.go b/typedapi/cat/segments/segments.go index 91d5fa191d..4b95c5141f 100644 --- a/typedapi/cat/segments/segments.go +++ b/typedapi/cat/segments/segments.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get segment information. // diff --git a/typedapi/cat/shards/response.go b/typedapi/cat/shards/response.go index 0365d062ba..bc5dde1ff0 100644 --- a/typedapi/cat/shards/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package shards @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package shards // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/shards/CatShardsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/shards/CatShardsResponse.ts#L22-L24 type Response []types.ShardsRecord diff --git a/typedapi/cat/shards/shards.go b/typedapi/cat/shards/shards.go index f77b32f6f9..2927c66b6e 100644 --- a/typedapi/cat/shards/shards.go +++ b/typedapi/cat/shards/shards.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get shard information. // diff --git a/typedapi/cat/snapshots/response.go b/typedapi/cat/snapshots/response.go index 391e82af6f..40d9f3a9a5 100644 --- a/typedapi/cat/snapshots/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package snapshots @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package snapshots // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L24 type Response []types.SnapshotsRecord diff --git a/typedapi/cat/snapshots/snapshots.go b/typedapi/cat/snapshots/snapshots.go index 8112d9ff04..78883b6224 100644 --- a/typedapi/cat/snapshots/snapshots.go +++ b/typedapi/cat/snapshots/snapshots.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get snapshot information. // diff --git a/typedapi/cat/tasks/response.go b/typedapi/cat/tasks/response.go index 5ac6aaad40..b59e75db69 100644 --- a/typedapi/cat/tasks/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package tasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package tasks // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/tasks/CatTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/tasks/CatTasksResponse.ts#L22-L24 type Response []types.TasksRecord diff --git a/typedapi/cat/tasks/tasks.go b/typedapi/cat/tasks/tasks.go index c80dc98041..5e1dc50d7e 100644 --- a/typedapi/cat/tasks/tasks.go +++ b/typedapi/cat/tasks/tasks.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get task information. // diff --git a/typedapi/cat/templates/response.go b/typedapi/cat/templates/response.go index 22721f8d13..a9c6f48490 100644 --- a/typedapi/cat/templates/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package templates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package templates // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/templates/CatTemplatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/templates/CatTemplatesResponse.ts#L22-L24 type Response []types.TemplatesRecord diff --git a/typedapi/cat/templates/templates.go b/typedapi/cat/templates/templates.go index d2fb79cea7..e902c9c549 100644 --- a/typedapi/cat/templates/templates.go +++ b/typedapi/cat/templates/templates.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index template information. // diff --git a/typedapi/cat/threadpool/response.go b/typedapi/cat/threadpool/response.go index ef00d54b36..7463655220 100644 --- a/typedapi/cat/threadpool/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package threadpool @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package threadpool // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L24 type Response []types.ThreadPoolRecord diff --git a/typedapi/cat/threadpool/thread_pool.go b/typedapi/cat/threadpool/thread_pool.go index 47939ca0ab..62c152dfcc 100644 --- a/typedapi/cat/threadpool/thread_pool.go +++ b/typedapi/cat/threadpool/thread_pool.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get thread pool statistics. // diff --git a/typedapi/cat/transforms/response.go b/typedapi/cat/transforms/response.go index 7dd9cea523..524f0251ec 100644 --- a/typedapi/cat/transforms/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package transforms @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package transforms // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/transforms/CatTransformsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/transforms/CatTransformsResponse.ts#L22-L24 type Response []types.TransformsRecord diff --git a/typedapi/cat/transforms/transforms.go b/typedapi/cat/transforms/transforms.go index 3b854b6e84..d40603679c 100644 --- a/typedapi/cat/transforms/transforms.go +++ b/typedapi/cat/transforms/transforms.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get transform information. // diff --git a/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go b/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go index 08ed348640..293adcf8ab 100644 --- a/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete auto-follow patterns. // diff --git a/typedapi/ccr/deleteautofollowpattern/response.go b/typedapi/ccr/deleteautofollowpattern/response.go index 6540c6a5e7..30ab0410aa 100644 --- a/typedapi/ccr/deleteautofollowpattern/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteautofollowpattern // Response holds the response body struct for the package deleteautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ccr/follow/follow.go b/typedapi/ccr/follow/follow.go index 55ac2a8b72..2236c164c4 100644 --- a/typedapi/ccr/follow/follow.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a follower. // Create a cross-cluster replication follower index that follows a specific diff --git a/typedapi/ccr/follow/request.go b/typedapi/ccr/follow/request.go index 8d636978f0..5f5e196048 100644 --- a/typedapi/ccr/follow/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package follow @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/follow/CreateFollowIndexRequest.ts#L26-L124 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/follow/CreateFollowIndexRequest.ts#L26-L124 type Request struct { // DataStreamName If the leader index is part of a data stream, the name to which the local diff --git a/typedapi/ccr/follow/response.go b/typedapi/ccr/follow/response.go index b54ac74df4..a86655aa46 100644 --- a/typedapi/ccr/follow/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package follow // Response holds the response body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/follow/CreateFollowIndexResponse.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ccr/followinfo/follow_info.go b/typedapi/ccr/followinfo/follow_info.go index 84616e1217..7ea373fa0e 100644 --- a/typedapi/ccr/followinfo/follow_info.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get follower information. // diff --git a/typedapi/ccr/followinfo/response.go b/typedapi/ccr/followinfo/response.go index c323439191..0ff646ff61 100644 --- a/typedapi/ccr/followinfo/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package followinfo @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package followinfo // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/follow_info/FollowInfoResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/follow_info/FollowInfoResponse.ts#L22-L24 type Response struct { FollowerIndices []types.FollowerIndex `json:"follower_indices"` } diff --git a/typedapi/ccr/followstats/follow_stats.go b/typedapi/ccr/followstats/follow_stats.go index b5af7ce4a3..dcd0809ef2 100644 --- a/typedapi/ccr/followstats/follow_stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get follower stats. // diff --git a/typedapi/ccr/followstats/response.go b/typedapi/ccr/followstats/response.go index 856ce563ee..4bb55f2bee 100644 --- a/typedapi/ccr/followstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package followstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package followstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L27 type Response struct { // Indices An array of follower index statistics. diff --git a/typedapi/ccr/forgetfollower/forget_follower.go b/typedapi/ccr/forgetfollower/forget_follower.go index 31df9f34be..7bdcdcca47 100644 --- a/typedapi/ccr/forgetfollower/forget_follower.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Forget a follower. // Remove the cross-cluster replication follower retention leases from the diff --git a/typedapi/ccr/forgetfollower/request.go b/typedapi/ccr/forgetfollower/request.go index 2bea2faa04..894efdd927 100644 --- a/typedapi/ccr/forgetfollower/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package forgetfollower @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L65 type Request struct { FollowerCluster *string `json:"follower_cluster,omitempty"` FollowerIndex *string `json:"follower_index,omitempty"` diff --git a/typedapi/ccr/forgetfollower/response.go b/typedapi/ccr/forgetfollower/response.go index 14bcf83264..5a01dcf9f7 100644 --- a/typedapi/ccr/forgetfollower/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package forgetfollower @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24 type Response struct { Shards_ types.ShardStatistics `json:"_shards"` } diff --git a/typedapi/ccr/getautofollowpattern/get_auto_follow_pattern.go b/typedapi/ccr/getautofollowpattern/get_auto_follow_pattern.go index 4c15173bab..46d322d12d 100644 --- a/typedapi/ccr/getautofollowpattern/get_auto_follow_pattern.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get auto-follow patterns. // diff --git a/typedapi/ccr/getautofollowpattern/response.go b/typedapi/ccr/getautofollowpattern/response.go index 82a656fd5b..f044bf8b87 100644 --- a/typedapi/ccr/getautofollowpattern/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getautofollowpattern @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24 type Response struct { Patterns []types.AutoFollowPattern `json:"patterns"` } diff --git a/typedapi/ccr/pauseautofollowpattern/pause_auto_follow_pattern.go b/typedapi/ccr/pauseautofollowpattern/pause_auto_follow_pattern.go index a858a41694..17108f775d 100644 --- a/typedapi/ccr/pauseautofollowpattern/pause_auto_follow_pattern.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Pause an auto-follow pattern. // diff --git a/typedapi/ccr/pauseautofollowpattern/response.go b/typedapi/ccr/pauseautofollowpattern/response.go index 2e9f6b9930..30a3c1208d 100644 --- a/typedapi/ccr/pauseautofollowpattern/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package pauseautofollowpattern // Response holds the response body struct for the package pauseautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ccr/pausefollow/pause_follow.go b/typedapi/ccr/pausefollow/pause_follow.go index 1e2a6f9ca4..9ffff38406 100644 --- a/typedapi/ccr/pausefollow/pause_follow.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Pause a follower. // diff --git a/typedapi/ccr/pausefollow/response.go b/typedapi/ccr/pausefollow/response.go index 61fe79f8bb..7febf71403 100644 --- a/typedapi/ccr/pausefollow/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package pausefollow // Response holds the response body struct for the package pausefollow // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ccr/putautofollowpattern/put_auto_follow_pattern.go b/typedapi/ccr/putautofollowpattern/put_auto_follow_pattern.go index 7558ad1c0d..797b5c08b1 100644 --- a/typedapi/ccr/putautofollowpattern/put_auto_follow_pattern.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update auto-follow patterns. // Create a collection of cross-cluster replication auto-follow patterns for a diff --git a/typedapi/ccr/putautofollowpattern/request.go b/typedapi/ccr/putautofollowpattern/request.go index 3ccd6db348..a11307f906 100644 --- a/typedapi/ccr/putautofollowpattern/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putautofollowpattern @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L133 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L133 type Request struct { // FollowIndexPattern The name of follower index. The template {{leader_index}} can be used to diff --git a/typedapi/ccr/putautofollowpattern/response.go b/typedapi/ccr/putautofollowpattern/response.go index a02ad338ae..d9596d64c5 100644 --- a/typedapi/ccr/putautofollowpattern/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putautofollowpattern // Response holds the response body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ccr/resumeautofollowpattern/response.go b/typedapi/ccr/resumeautofollowpattern/response.go index 2566528c39..171231cff8 100644 --- a/typedapi/ccr/resumeautofollowpattern/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package resumeautofollowpattern // Response holds the response body struct for the package resumeautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ccr/resumeautofollowpattern/resume_auto_follow_pattern.go b/typedapi/ccr/resumeautofollowpattern/resume_auto_follow_pattern.go index 43ba950fbf..d398c0c6af 100644 --- a/typedapi/ccr/resumeautofollowpattern/resume_auto_follow_pattern.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Resume an auto-follow pattern. // diff --git a/typedapi/ccr/resumefollow/request.go b/typedapi/ccr/resumefollow/request.go index 4f0dc3a764..3eda8e38f1 100644 --- a/typedapi/ccr/resumefollow/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package resumefollow @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L65 type Request struct { MaxOutstandingReadRequests *int64 `json:"max_outstanding_read_requests,omitempty"` MaxOutstandingWriteRequests *int64 `json:"max_outstanding_write_requests,omitempty"` diff --git a/typedapi/ccr/resumefollow/response.go b/typedapi/ccr/resumefollow/response.go index a8061ff7f0..d78f3e3cad 100644 --- a/typedapi/ccr/resumefollow/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package resumefollow // Response holds the response body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ccr/resumefollow/resume_follow.go b/typedapi/ccr/resumefollow/resume_follow.go index d278a71fca..0528a14b7f 100644 --- a/typedapi/ccr/resumefollow/resume_follow.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Resume a follower. // Resume a cross-cluster replication follower index that was paused. diff --git a/typedapi/ccr/stats/response.go b/typedapi/ccr/stats/response.go index 4f4029fda0..344657199e 100644 --- a/typedapi/ccr/stats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/stats/CcrStatsResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/stats/CcrStatsResponse.ts#L22-L29 type Response struct { // AutoFollowStats Statistics for the auto-follow coordinator. diff --git a/typedapi/ccr/stats/stats.go b/typedapi/ccr/stats/stats.go index 192b676eeb..804b2da013 100644 --- a/typedapi/ccr/stats/stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get cross-cluster replication stats. // diff --git a/typedapi/ccr/unfollow/response.go b/typedapi/ccr/unfollow/response.go index 0b0f924899..e931351a9e 100644 --- a/typedapi/ccr/unfollow/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package unfollow // Response holds the response body struct for the package unfollow // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/unfollow/UnfollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ccr/unfollow/unfollow.go b/typedapi/ccr/unfollow/unfollow.go index a371ecfdde..ef2b942d86 100644 --- a/typedapi/ccr/unfollow/unfollow.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Unfollow an index. // diff --git a/typedapi/cluster/allocationexplain/allocation_explain.go b/typedapi/cluster/allocationexplain/allocation_explain.go index 52c9256e3a..6681429fde 100644 --- a/typedapi/cluster/allocationexplain/allocation_explain.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Explain the shard allocations. // Get explanations for shard allocations in the cluster. diff --git a/typedapi/cluster/allocationexplain/request.go b/typedapi/cluster/allocationexplain/request.go index 8050f9c334..a63607ddbf 100644 --- a/typedapi/cluster/allocationexplain/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package allocationexplain @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L79 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L79 type Request struct { // CurrentNode Specifies the node ID or the name of the node to only explain a shard that is diff --git a/typedapi/cluster/allocationexplain/response.go b/typedapi/cluster/allocationexplain/response.go index 0734cf803d..1c0abdec56 100644 --- a/typedapi/cluster/allocationexplain/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package allocationexplain @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/cluster/deletecomponenttemplate/delete_component_template.go b/typedapi/cluster/deletecomponenttemplate/delete_component_template.go index ac5a361a1b..aab553a230 100644 --- a/typedapi/cluster/deletecomponenttemplate/delete_component_template.go +++ b/typedapi/cluster/deletecomponenttemplate/delete_component_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete component templates. // Component templates are building blocks for constructing index templates that diff --git a/typedapi/cluster/deletecomponenttemplate/response.go b/typedapi/cluster/deletecomponenttemplate/response.go index bed5f5cc38..294a3086c3 100644 --- a/typedapi/cluster/deletecomponenttemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletecomponenttemplate // Response holds the response body struct for the package deletecomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/cluster/deletevotingconfigexclusions/delete_voting_config_exclusions.go b/typedapi/cluster/deletevotingconfigexclusions/delete_voting_config_exclusions.go index 414c4e031b..7d038b2ef1 100644 --- a/typedapi/cluster/deletevotingconfigexclusions/delete_voting_config_exclusions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear cluster voting config exclusions. // Remove master-eligible nodes from the voting configuration exclusion list. @@ -70,7 +70,7 @@ func NewDeleteVotingConfigExclusionsFunc(tp elastictransport.Interface) NewDelet // Clear cluster voting config exclusions. // Remove master-eligible nodes from the voting configuration exclusion list. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions func New(tp elastictransport.Interface) *DeleteVotingConfigExclusions { r := &DeleteVotingConfigExclusions{ transport: tp, diff --git a/typedapi/cluster/existscomponenttemplate/exists_component_template.go b/typedapi/cluster/existscomponenttemplate/exists_component_template.go index 16a81a4d4a..2cdf66b6e2 100644 --- a/typedapi/cluster/existscomponenttemplate/exists_component_template.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check component templates. // Returns information about whether a particular component template exists. diff --git a/typedapi/cluster/getcomponenttemplate/get_component_template.go b/typedapi/cluster/getcomponenttemplate/get_component_template.go index f77b1a2866..c32fe4ac33 100644 --- a/typedapi/cluster/getcomponenttemplate/get_component_template.go +++ b/typedapi/cluster/getcomponenttemplate/get_component_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get component templates. // Get information about component templates. diff --git a/typedapi/cluster/getcomponenttemplate/response.go b/typedapi/cluster/getcomponenttemplate/response.go index 01807d2798..54a014d6ca 100644 --- a/typedapi/cluster/getcomponenttemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getcomponenttemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24 type Response struct { ComponentTemplates []types.ClusterComponentTemplate `json:"component_templates"` } diff --git a/typedapi/cluster/getsettings/get_settings.go b/typedapi/cluster/getsettings/get_settings.go index b30e25be56..06699860de 100644 --- a/typedapi/cluster/getsettings/get_settings.go +++ b/typedapi/cluster/getsettings/get_settings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get cluster-wide settings. // By default, it returns only settings that have been explicitly defined. diff --git a/typedapi/cluster/getsettings/response.go b/typedapi/cluster/getsettings/response.go index cdc88b49f3..900169f987 100644 --- a/typedapi/cluster/getsettings/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/cluster/health/health.go b/typedapi/cluster/health/health.go index e1f3f7fc48..13f75655ec 100644 --- a/typedapi/cluster/health/health.go +++ b/typedapi/cluster/health/health.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the cluster health status. // diff --git a/typedapi/cluster/health/response.go b/typedapi/cluster/health/response.go index 3c32594d25..1dbdb842b8 100644 --- a/typedapi/cluster/health/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package health @@ -27,15 +27,18 @@ import ( // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/health/ClusterHealthResponse.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/health/ClusterHealthResponse.ts#L26-L37 type Response struct { // ActivePrimaryShards The number of active primary shards. ActivePrimaryShards int `json:"active_primary_shards"` // ActiveShards The total number of active primary and replica shards. ActiveShards int `json:"active_shards"` + // ActiveShardsPercent The ratio of active shards in the cluster expressed as a string formatted + // percentage. + ActiveShardsPercent *string `json:"active_shards_percent,omitempty"` // ActiveShardsPercentAsNumber The ratio of active shards in the cluster expressed as a percentage. - ActiveShardsPercentAsNumber types.Percentage `json:"active_shards_percent_as_number"` + ActiveShardsPercentAsNumber types.Float64 `json:"active_shards_percent_as_number"` // ClusterName The name of the cluster. ClusterName string `json:"cluster_name"` // DelayedUnassignedShards The number of shards whose allocation has been delayed by the timeout diff --git a/typedapi/cluster/info/info.go b/typedapi/cluster/info/info.go index 3ce8f40e5a..5e806e5ba6 100644 --- a/typedapi/cluster/info/info.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get cluster info. // Returns basic information about the cluster. diff --git a/typedapi/cluster/info/response.go b/typedapi/cluster/info/response.go index 70a816d4bf..aaa6ab8095 100644 --- a/typedapi/cluster/info/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/info/ClusterInfoResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/info/ClusterInfoResponse.ts#L26-L34 type Response struct { ClusterName string `json:"cluster_name"` Http *types.Http `json:"http,omitempty"` diff --git a/typedapi/cluster/pendingtasks/pending_tasks.go b/typedapi/cluster/pendingtasks/pending_tasks.go index e1f8c5cdf4..b71f61f9b9 100644 --- a/typedapi/cluster/pendingtasks/pending_tasks.go +++ b/typedapi/cluster/pendingtasks/pending_tasks.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the pending cluster tasks. // Get information about cluster-level changes (such as create index, update diff --git a/typedapi/cluster/pendingtasks/response.go b/typedapi/cluster/pendingtasks/response.go index 89c250ec1d..7fc0e4fd79 100644 --- a/typedapi/cluster/pendingtasks/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package pendingtasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24 type Response struct { Tasks []types.PendingTask `json:"tasks"` } diff --git a/typedapi/cluster/postvotingconfigexclusions/post_voting_config_exclusions.go b/typedapi/cluster/postvotingconfigexclusions/post_voting_config_exclusions.go index 3620f22465..43b05e8e35 100644 --- a/typedapi/cluster/postvotingconfigexclusions/post_voting_config_exclusions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update voting configuration exclusions. // Update the cluster voting config exclusions by node IDs or node names. @@ -144,7 +144,7 @@ func NewPostVotingConfigExclusionsFunc(tp elastictransport.Interface) NewPostVot // They are not required when removing master-ineligible nodes or when removing // fewer than half of the master-eligible nodes. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-cluster-post-voting-config-exclusions func New(tp elastictransport.Interface) *PostVotingConfigExclusions { r := &PostVotingConfigExclusions{ transport: tp, diff --git a/typedapi/cluster/putcomponenttemplate/put_component_template.go b/typedapi/cluster/putcomponenttemplate/put_component_template.go index 858993df2c..f22fcaa39f 100644 --- a/typedapi/cluster/putcomponenttemplate/put_component_template.go +++ b/typedapi/cluster/putcomponenttemplate/put_component_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a component template. // Component templates are building blocks for constructing index templates that diff --git a/typedapi/cluster/putcomponenttemplate/request.go b/typedapi/cluster/putcomponenttemplate/request.go index 60b31ef741..14c1ae83dc 100644 --- a/typedapi/cluster/putcomponenttemplate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putcomponenttemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L105 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L105 type Request struct { // Deprecated Marks this index template as deprecated. When creating or updating a diff --git a/typedapi/cluster/putcomponenttemplate/response.go b/typedapi/cluster/putcomponenttemplate/response.go index 0ec894095a..432b89564f 100644 --- a/typedapi/cluster/putcomponenttemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putcomponenttemplate // Response holds the response body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/cluster/putsettings/put_settings.go b/typedapi/cluster/putsettings/put_settings.go index 2e782df9b1..d743cb43ec 100644 --- a/typedapi/cluster/putsettings/put_settings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the cluster settings. // diff --git a/typedapi/cluster/putsettings/request.go b/typedapi/cluster/putsettings/request.go index 78b4d13d9e..d6453046cb 100644 --- a/typedapi/cluster/putsettings/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putsettings @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L68 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L68 type Request struct { Persistent map[string]json.RawMessage `json:"persistent,omitempty"` Transient map[string]json.RawMessage `json:"transient,omitempty"` diff --git a/typedapi/cluster/putsettings/response.go b/typedapi/cluster/putsettings/response.go index b796effde8..4cd5fe3b18 100644 --- a/typedapi/cluster/putsettings/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/cluster/remoteinfo/remote_info.go b/typedapi/cluster/remoteinfo/remote_info.go index 72ad2107ad..b16527e3da 100644 --- a/typedapi/cluster/remoteinfo/remote_info.go +++ b/typedapi/cluster/remoteinfo/remote_info.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get remote cluster information. // diff --git a/typedapi/cluster/remoteinfo/response.go b/typedapi/cluster/remoteinfo/response.go index 7d1b28c930..b0e65a23ae 100644 --- a/typedapi/cluster/remoteinfo/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package remoteinfo @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package remoteinfo // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27 type Response map[string]types.ClusterRemoteInfo diff --git a/typedapi/cluster/reroute/request.go b/typedapi/cluster/reroute/request.go index 1c9e071d64..2ec23f1689 100644 --- a/typedapi/cluster/reroute/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package reroute @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L91 type Request struct { // Commands Defines the commands to perform. diff --git a/typedapi/cluster/reroute/reroute.go b/typedapi/cluster/reroute/reroute.go index ba4f4241c2..94ff7715f6 100644 --- a/typedapi/cluster/reroute/reroute.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Reroute the cluster. // Manually change the allocation of individual shards in the cluster. diff --git a/typedapi/cluster/reroute/response.go b/typedapi/cluster/reroute/response.go index 6067f03f09..647cafa41c 100644 --- a/typedapi/cluster/reroute/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package reroute @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/ClusterRerouteResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/reroute/ClusterRerouteResponse.ts#L23-L34 type Response struct { Acknowledged bool `json:"acknowledged"` Explanations []types.RerouteExplanation `json:"explanations,omitempty"` diff --git a/typedapi/cluster/state/response.go b/typedapi/cluster/state/response.go index 4ac98ff280..f3c15be5df 100644 --- a/typedapi/cluster/state/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package state @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package state // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/state/ClusterStateResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/state/ClusterStateResponse.ts#L22-L29 type Response = json.RawMessage diff --git a/typedapi/cluster/state/state.go b/typedapi/cluster/state/state.go index f25f68b1b3..d112fd0adf 100644 --- a/typedapi/cluster/state/state.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the cluster state. // Get comprehensive information about the state of the cluster. diff --git a/typedapi/cluster/stats/response.go b/typedapi/cluster/stats/response.go index be0f05b2ae..fea9beca88 100644 --- a/typedapi/cluster/stats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stats @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/ClusterStatsResponse.ts#L53-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/stats/ClusterStatsResponse.ts#L53-L55 type Response struct { // ClusterName Name of the cluster, based on the cluster name setting. diff --git a/typedapi/cluster/stats/stats.go b/typedapi/cluster/stats/stats.go index 75076d58ca..66ddf31d5b 100644 --- a/typedapi/cluster/stats/stats.go +++ b/typedapi/cluster/stats/stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get cluster statistics. // Get basic index metrics (shard numbers, store size, memory usage) and diff --git a/typedapi/connector/checkin/check_in.go b/typedapi/connector/checkin/check_in.go index 86fca93d0f..6a9fbf1aa7 100644 --- a/typedapi/connector/checkin/check_in.go +++ b/typedapi/connector/checkin/check_in.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check in a connector. // diff --git a/typedapi/connector/checkin/response.go b/typedapi/connector/checkin/response.go index 130dad7e48..89e39ff26e 100644 --- a/typedapi/connector/checkin/response.go +++ b/typedapi/connector/checkin/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package checkin @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package checkin // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/check_in/ConnectorCheckInResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/check_in/ConnectorCheckInResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/delete/delete.go b/typedapi/connector/delete/delete.go index 0678f6bd8d..4908f03ead 100644 --- a/typedapi/connector/delete/delete.go +++ b/typedapi/connector/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a connector. // diff --git a/typedapi/connector/delete/response.go b/typedapi/connector/delete/response.go index 05d4398884..7c59ef596a 100644 --- a/typedapi/connector/delete/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/delete/ConnectorDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/connector/get/get.go b/typedapi/connector/get/get.go index fcdd5f73e5..db9b49c4b0 100644 --- a/typedapi/connector/get/get.go +++ b/typedapi/connector/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a connector. // diff --git a/typedapi/connector/get/response.go b/typedapi/connector/get/response.go index 09a1bfcc12..ae4c0329d2 100644 --- a/typedapi/connector/get/response.go +++ b/typedapi/connector/get/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -35,7 +35,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/get/ConnectorGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/get/ConnectorGetResponse.ts#L22-L24 type Response struct { ApiKeyId *string `json:"api_key_id,omitempty"` ApiKeySecretId *string `json:"api_key_secret_id,omitempty"` diff --git a/typedapi/connector/lastsync/last_sync.go b/typedapi/connector/lastsync/last_sync.go index deb15e1353..ee09ee6baa 100644 --- a/typedapi/connector/lastsync/last_sync.go +++ b/typedapi/connector/lastsync/last_sync.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector last sync stats. // diff --git a/typedapi/connector/lastsync/request.go b/typedapi/connector/lastsync/request.go index 46372aed3a..c82c97968f 100644 --- a/typedapi/connector/lastsync/request.go +++ b/typedapi/connector/lastsync/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package lastsync @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package lastsync // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L66 type Request struct { LastAccessControlSyncError *string `json:"last_access_control_sync_error,omitempty"` LastAccessControlSyncScheduledAt types.DateTime `json:"last_access_control_sync_scheduled_at,omitempty"` diff --git a/typedapi/connector/lastsync/response.go b/typedapi/connector/lastsync/response.go index e059e1d685..d92e4424f4 100644 --- a/typedapi/connector/lastsync/response.go +++ b/typedapi/connector/lastsync/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package lastsync @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package lastsync // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/last_sync/ConnectorUpdateLastSyncResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/last_sync/ConnectorUpdateLastSyncResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/list/list.go b/typedapi/connector/list/list.go index 4799cdcd36..2990f0da44 100644 --- a/typedapi/connector/list/list.go +++ b/typedapi/connector/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get all connectors. // diff --git a/typedapi/connector/list/response.go b/typedapi/connector/list/response.go index a8ad6f78d6..3442ef3d09 100644 --- a/typedapi/connector/list/response.go +++ b/typedapi/connector/list/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package list @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/list/ConnectorListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/list/ConnectorListResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Results []types.Connector `json:"results"` diff --git a/typedapi/connector/post/post.go b/typedapi/connector/post/post.go index 8552cd0dd6..cadb051261 100644 --- a/typedapi/connector/post/post.go +++ b/typedapi/connector/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a connector. // diff --git a/typedapi/connector/post/request.go b/typedapi/connector/post/request.go index 43a20a4689..e6c33351e2 100644 --- a/typedapi/connector/post/request.go +++ b/typedapi/connector/post/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package post @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/post/ConnectorPostRequest.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/post/ConnectorPostRequest.ts#L22-L52 type Request struct { Description *string `json:"description,omitempty"` IndexName *string `json:"index_name,omitempty"` diff --git a/typedapi/connector/post/response.go b/typedapi/connector/post/response.go index d1e4f8b74d..670b0f856c 100644 --- a/typedapi/connector/post/response.go +++ b/typedapi/connector/post/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package post @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/post/ConnectorPostResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/post/ConnectorPostResponse.ts#L23-L28 type Response struct { Id string `json:"id"` Result result.Result `json:"result"` diff --git a/typedapi/connector/put/put.go b/typedapi/connector/put/put.go index 8a1d902090..b62ddd5fec 100644 --- a/typedapi/connector/put/put.go +++ b/typedapi/connector/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a connector. package put diff --git a/typedapi/connector/put/request.go b/typedapi/connector/put/request.go index bd7bd62a04..af5461cf42 100644 --- a/typedapi/connector/put/request.go +++ b/typedapi/connector/put/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package put @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/put/ConnectorPutRequest.ts#L22-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/put/ConnectorPutRequest.ts#L22-L58 type Request struct { Description *string `json:"description,omitempty"` IndexName *string `json:"index_name,omitempty"` diff --git a/typedapi/connector/put/response.go b/typedapi/connector/put/response.go index 7e9f95311b..e6df88db8e 100644 --- a/typedapi/connector/put/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package put @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/put/ConnectorPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/put/ConnectorPutResponse.ts#L23-L28 type Response struct { Id string `json:"id"` Result result.Result `json:"result"` diff --git a/typedapi/connector/secretpost/secret_post.go b/typedapi/connector/secretpost/secret_post.go index 95b643ae6b..2181e8d28b 100644 --- a/typedapi/connector/secretpost/secret_post.go +++ b/typedapi/connector/secretpost/secret_post.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Creates a secret for a Connector. package secretpost diff --git a/typedapi/connector/syncjobcancel/response.go b/typedapi/connector/syncjobcancel/response.go index c696b0c4c8..395a932008 100644 --- a/typedapi/connector/syncjobcancel/response.go +++ b/typedapi/connector/syncjobcancel/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobcancel @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package syncjobcancel // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_cancel/SyncJobCancelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_cancel/SyncJobCancelResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/syncjobcancel/sync_job_cancel.go b/typedapi/connector/syncjobcancel/sync_job_cancel.go index 9c4226d3a3..14ec394121 100644 --- a/typedapi/connector/syncjobcancel/sync_job_cancel.go +++ b/typedapi/connector/syncjobcancel/sync_job_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Cancel a connector sync job. // diff --git a/typedapi/connector/syncjobcheckin/response.go b/typedapi/connector/syncjobcheckin/response.go index 6e2853dec6..045c0f3ebe 100644 --- a/typedapi/connector/syncjobcheckin/response.go +++ b/typedapi/connector/syncjobcheckin/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobcheckin // Response holds the response body struct for the package syncjobcheckin // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_check_in/SyncJobCheckInResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_check_in/SyncJobCheckInResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/connector/syncjobcheckin/sync_job_check_in.go b/typedapi/connector/syncjobcheckin/sync_job_check_in.go index 133bf195b5..a8328c28ca 100644 --- a/typedapi/connector/syncjobcheckin/sync_job_check_in.go +++ b/typedapi/connector/syncjobcheckin/sync_job_check_in.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check in a connector sync job. // Check in a connector sync job and set the `last_seen` field to the current diff --git a/typedapi/connector/syncjobclaim/request.go b/typedapi/connector/syncjobclaim/request.go index ba92d2c9b3..8f3cebfc42 100644 --- a/typedapi/connector/syncjobclaim/request.go +++ b/typedapi/connector/syncjobclaim/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobclaim @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package syncjobclaim // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L61 type Request struct { // SyncCursor The cursor object from the last incremental sync job. diff --git a/typedapi/connector/syncjobclaim/response.go b/typedapi/connector/syncjobclaim/response.go index 74df43941c..e592d8ecd7 100644 --- a/typedapi/connector/syncjobclaim/response.go +++ b/typedapi/connector/syncjobclaim/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobclaim // Response holds the response body struct for the package syncjobclaim // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_claim/SyncJobClaimResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_claim/SyncJobClaimResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/connector/syncjobclaim/sync_job_claim.go b/typedapi/connector/syncjobclaim/sync_job_claim.go index 8927ef4378..e095a3099b 100644 --- a/typedapi/connector/syncjobclaim/sync_job_claim.go +++ b/typedapi/connector/syncjobclaim/sync_job_claim.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Claim a connector sync job. // This action updates the job status to `in_progress` and sets the `last_seen` diff --git a/typedapi/connector/syncjobdelete/response.go b/typedapi/connector/syncjobdelete/response.go index 681f2e7aed..42f84c4395 100644 --- a/typedapi/connector/syncjobdelete/response.go +++ b/typedapi/connector/syncjobdelete/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobdelete // Response holds the response body struct for the package syncjobdelete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_delete/SyncJobDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_delete/SyncJobDeleteResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/connector/syncjobdelete/sync_job_delete.go b/typedapi/connector/syncjobdelete/sync_job_delete.go index 3ea9277312..530b952a8f 100644 --- a/typedapi/connector/syncjobdelete/sync_job_delete.go +++ b/typedapi/connector/syncjobdelete/sync_job_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a connector sync job. // diff --git a/typedapi/connector/syncjoberror/request.go b/typedapi/connector/syncjoberror/request.go index 233d40b734..f008ecacdf 100644 --- a/typedapi/connector/syncjoberror/request.go +++ b/typedapi/connector/syncjoberror/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjoberror @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package syncjoberror // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_error/SyncJobErrorRequest.ts#L23-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_error/SyncJobErrorRequest.ts#L23-L52 type Request struct { // Error The error for the connector sync job error field. diff --git a/typedapi/connector/syncjoberror/response.go b/typedapi/connector/syncjoberror/response.go index 7aab1815eb..a7f4d6f6c2 100644 --- a/typedapi/connector/syncjoberror/response.go +++ b/typedapi/connector/syncjoberror/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjoberror // Response holds the response body struct for the package syncjoberror // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_error/SyncJobErrorResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_error/SyncJobErrorResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/connector/syncjoberror/sync_job_error.go b/typedapi/connector/syncjoberror/sync_job_error.go index 8a0bc593c7..373791a5e7 100644 --- a/typedapi/connector/syncjoberror/sync_job_error.go +++ b/typedapi/connector/syncjoberror/sync_job_error.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Set a connector sync job error. // Set the `error` field for a connector sync job and set its `status` to diff --git a/typedapi/connector/syncjobget/response.go b/typedapi/connector/syncjobget/response.go index 66111e52c8..e492666b33 100644 --- a/typedapi/connector/syncjobget/response.go +++ b/typedapi/connector/syncjobget/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobget @@ -36,7 +36,7 @@ import ( // Response holds the response body struct for the package syncjobget // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_get/SyncJobGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_get/SyncJobGetResponse.ts#L22-L24 type Response struct { CancelationRequestedAt types.DateTime `json:"cancelation_requested_at,omitempty"` CanceledAt types.DateTime `json:"canceled_at,omitempty"` diff --git a/typedapi/connector/syncjobget/sync_job_get.go b/typedapi/connector/syncjobget/sync_job_get.go index 2ec22399ed..6daa1f5608 100644 --- a/typedapi/connector/syncjobget/sync_job_get.go +++ b/typedapi/connector/syncjobget/sync_job_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a connector sync job. package syncjobget diff --git a/typedapi/connector/syncjoblist/response.go b/typedapi/connector/syncjoblist/response.go index b482172120..fcfc6282fe 100644 --- a/typedapi/connector/syncjoblist/response.go +++ b/typedapi/connector/syncjoblist/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjoblist @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package syncjoblist // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_list/SyncJobListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_list/SyncJobListResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Results []types.ConnectorSyncJob `json:"results"` diff --git a/typedapi/connector/syncjoblist/sync_job_list.go b/typedapi/connector/syncjoblist/sync_job_list.go index 4292db61db..eb9d328766 100644 --- a/typedapi/connector/syncjoblist/sync_job_list.go +++ b/typedapi/connector/syncjoblist/sync_job_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get all connector sync jobs. // diff --git a/typedapi/connector/syncjobpost/request.go b/typedapi/connector/syncjobpost/request.go index fc05b3dc21..bdca855be0 100644 --- a/typedapi/connector/syncjobpost/request.go +++ b/typedapi/connector/syncjobpost/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobpost @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package syncjobpost // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_post/SyncJobPostRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_post/SyncJobPostRequest.ts#L23-L51 type Request struct { // Id The id of the associated connector diff --git a/typedapi/connector/syncjobpost/response.go b/typedapi/connector/syncjobpost/response.go index c4a672f978..ca8f29fbbc 100644 --- a/typedapi/connector/syncjobpost/response.go +++ b/typedapi/connector/syncjobpost/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobpost // Response holds the response body struct for the package syncjobpost // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_post/SyncJobPostResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_post/SyncJobPostResponse.ts#L22-L26 type Response struct { Id string `json:"id"` } diff --git a/typedapi/connector/syncjobpost/sync_job_post.go b/typedapi/connector/syncjobpost/sync_job_post.go index ff2d01c778..7ac991d2d6 100644 --- a/typedapi/connector/syncjobpost/sync_job_post.go +++ b/typedapi/connector/syncjobpost/sync_job_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a connector sync job. // diff --git a/typedapi/connector/syncjobupdatestats/request.go b/typedapi/connector/syncjobupdatestats/request.go index ddf33b65f1..d7594348fb 100644 --- a/typedapi/connector/syncjobupdatestats/request.go +++ b/typedapi/connector/syncjobupdatestats/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobupdatestats @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package syncjobupdatestats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L78 type Request struct { // DeletedDocumentCount The number of documents the sync job deleted. diff --git a/typedapi/connector/syncjobupdatestats/response.go b/typedapi/connector/syncjobupdatestats/response.go index 801b37661b..10cda9f9fd 100644 --- a/typedapi/connector/syncjobupdatestats/response.go +++ b/typedapi/connector/syncjobupdatestats/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package syncjobupdatestats // Response holds the response body struct for the package syncjobupdatestats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/sync_job_update_stats/SyncJobUpdateStatsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/sync_job_update_stats/SyncJobUpdateStatsResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/connector/syncjobupdatestats/sync_job_update_stats.go b/typedapi/connector/syncjobupdatestats/sync_job_update_stats.go index 5c7585a03f..51561c1285 100644 --- a/typedapi/connector/syncjobupdatestats/sync_job_update_stats.go +++ b/typedapi/connector/syncjobupdatestats/sync_job_update_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Set the connector sync job stats. // Stats include: `deleted_document_count`, `indexed_document_count`, diff --git a/typedapi/connector/updateactivefiltering/response.go b/typedapi/connector/updateactivefiltering/response.go index b4134a7ea5..bdac636d08 100644 --- a/typedapi/connector/updateactivefiltering/response.go +++ b/typedapi/connector/updateactivefiltering/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateactivefiltering @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateactivefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updateactivefiltering/update_active_filtering.go b/typedapi/connector/updateactivefiltering/update_active_filtering.go index a5988d6dd8..b986499dc5 100644 --- a/typedapi/connector/updateactivefiltering/update_active_filtering.go +++ b/typedapi/connector/updateactivefiltering/update_active_filtering.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Activate the connector draft filter. // diff --git a/typedapi/connector/updateapikeyid/request.go b/typedapi/connector/updateapikeyid/request.go index 1dd1a6a8f2..a793468b40 100644 --- a/typedapi/connector/updateapikeyid/request.go +++ b/typedapi/connector/updateapikeyid/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateapikeyid @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateapikeyid // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L53 type Request struct { ApiKeyId *string `json:"api_key_id,omitempty"` ApiKeySecretId *string `json:"api_key_secret_id,omitempty"` diff --git a/typedapi/connector/updateapikeyid/response.go b/typedapi/connector/updateapikeyid/response.go index d6ea838e78..c002a3fc75 100644 --- a/typedapi/connector/updateapikeyid/response.go +++ b/typedapi/connector/updateapikeyid/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateapikeyid @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateapikeyid // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updateapikeyid/update_api_key_id.go b/typedapi/connector/updateapikeyid/update_api_key_id.go index 7fcf346aef..a0a855a3cd 100644 --- a/typedapi/connector/updateapikeyid/update_api_key_id.go +++ b/typedapi/connector/updateapikeyid/update_api_key_id.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector API key ID. // diff --git a/typedapi/connector/updateconfiguration/request.go b/typedapi/connector/updateconfiguration/request.go index e144f372d2..c7c2d843a6 100644 --- a/typedapi/connector/updateconfiguration/request.go +++ b/typedapi/connector/updateconfiguration/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateconfiguration @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updateconfiguration // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L55 type Request struct { Configuration types.ConnectorConfiguration `json:"configuration,omitempty"` Values map[string]json.RawMessage `json:"values,omitempty"` diff --git a/typedapi/connector/updateconfiguration/response.go b/typedapi/connector/updateconfiguration/response.go index 97ced8ecf3..bdcd147d97 100644 --- a/typedapi/connector/updateconfiguration/response.go +++ b/typedapi/connector/updateconfiguration/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateconfiguration @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateconfiguration // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_configuration/ConnectorUpdateConfigurationResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_configuration/ConnectorUpdateConfigurationResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updateconfiguration/update_configuration.go b/typedapi/connector/updateconfiguration/update_configuration.go index 1efdce35f0..f44cba1985 100644 --- a/typedapi/connector/updateconfiguration/update_configuration.go +++ b/typedapi/connector/updateconfiguration/update_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector configuration. // diff --git a/typedapi/connector/updateerror/request.go b/typedapi/connector/updateerror/request.go index 5c6d57c6db..75d9d7f1b5 100644 --- a/typedapi/connector/updateerror/request.go +++ b/typedapi/connector/updateerror/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateerror @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updateerror // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L54 type Request struct { Error any `json:"error"` } diff --git a/typedapi/connector/updateerror/response.go b/typedapi/connector/updateerror/response.go index 3a2cc49e64..a9dcf01b8e 100644 --- a/typedapi/connector/updateerror/response.go +++ b/typedapi/connector/updateerror/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateerror @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateerror // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_error/ConnectorUpdateErrorResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_error/ConnectorUpdateErrorResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updateerror/update_error.go b/typedapi/connector/updateerror/update_error.go index 162c013bf2..6ae0738efa 100644 --- a/typedapi/connector/updateerror/update_error.go +++ b/typedapi/connector/updateerror/update_error.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector error field. // diff --git a/typedapi/connector/updatefeatures/request.go b/typedapi/connector/updatefeatures/request.go index 11b511d424..0c87bb9051 100644 --- a/typedapi/connector/updatefeatures/request.go +++ b/typedapi/connector/updatefeatures/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatefeatures @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatefeatures // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L61 type Request struct { Features types.ConnectorFeatures `json:"features"` } diff --git a/typedapi/connector/updatefeatures/response.go b/typedapi/connector/updatefeatures/response.go index 9c1a4dd95e..bc1ef49a86 100644 --- a/typedapi/connector/updatefeatures/response.go +++ b/typedapi/connector/updatefeatures/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatefeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatefeatures // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_features/ConnectorUpdateFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_features/ConnectorUpdateFeaturesResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updatefeatures/update_features.go b/typedapi/connector/updatefeatures/update_features.go index 78c408e0d0..3322819205 100644 --- a/typedapi/connector/updatefeatures/update_features.go +++ b/typedapi/connector/updatefeatures/update_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector features. // Update the connector features in the connector document. diff --git a/typedapi/connector/updatefiltering/request.go b/typedapi/connector/updatefiltering/request.go index 68bc5a1eab..f61564033a 100644 --- a/typedapi/connector/updatefiltering/request.go +++ b/typedapi/connector/updatefiltering/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatefiltering @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L60 type Request struct { AdvancedSnippet *types.FilteringAdvancedSnippet `json:"advanced_snippet,omitempty"` Filtering []types.FilteringConfig `json:"filtering,omitempty"` diff --git a/typedapi/connector/updatefiltering/response.go b/typedapi/connector/updatefiltering/response.go index ce4d6ea2ff..65bb4c3ea4 100644 --- a/typedapi/connector/updatefiltering/response.go +++ b/typedapi/connector/updatefiltering/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatefiltering @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_filtering/ConnectorUpdateFilteringResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_filtering/ConnectorUpdateFilteringResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updatefiltering/update_filtering.go b/typedapi/connector/updatefiltering/update_filtering.go index ed9f368319..3c67fe64c2 100644 --- a/typedapi/connector/updatefiltering/update_filtering.go +++ b/typedapi/connector/updatefiltering/update_filtering.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector filtering. // diff --git a/typedapi/connector/updatefilteringvalidation/request.go b/typedapi/connector/updatefilteringvalidation/request.go index 3446c6f8b5..69b7db4480 100644 --- a/typedapi/connector/updatefilteringvalidation/request.go +++ b/typedapi/connector/updatefilteringvalidation/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatefilteringvalidation @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatefilteringvalidation // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L48 type Request struct { Validation types.FilteringRulesValidation `json:"validation"` } diff --git a/typedapi/connector/updatefilteringvalidation/response.go b/typedapi/connector/updatefilteringvalidation/response.go index 76e889cf2f..07288419de 100644 --- a/typedapi/connector/updatefilteringvalidation/response.go +++ b/typedapi/connector/updatefilteringvalidation/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatefilteringvalidation @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatefilteringvalidation // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go b/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go index 0aacaec4d2..b61884300d 100644 --- a/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go +++ b/typedapi/connector/updatefilteringvalidation/update_filtering_validation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector draft filtering validation. // diff --git a/typedapi/connector/updateindexname/request.go b/typedapi/connector/updateindexname/request.go index 209d5d3789..de9f2a5ba1 100644 --- a/typedapi/connector/updateindexname/request.go +++ b/typedapi/connector/updateindexname/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateindexname @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updateindexname // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L51 type Request struct { IndexName any `json:"index_name"` } diff --git a/typedapi/connector/updateindexname/response.go b/typedapi/connector/updateindexname/response.go index b37afbdad6..d0eb44fa66 100644 --- a/typedapi/connector/updateindexname/response.go +++ b/typedapi/connector/updateindexname/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateindexname @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateindexname // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_index_name/ConnectorUpdateIndexNameResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_index_name/ConnectorUpdateIndexNameResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updateindexname/update_index_name.go b/typedapi/connector/updateindexname/update_index_name.go index 6980a7a17a..8f2fc2feb9 100644 --- a/typedapi/connector/updateindexname/update_index_name.go +++ b/typedapi/connector/updateindexname/update_index_name.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector index name. // diff --git a/typedapi/connector/updatename/request.go b/typedapi/connector/updatename/request.go index 8381c1af7f..c6a154f864 100644 --- a/typedapi/connector/updatename/request.go +++ b/typedapi/connector/updatename/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatename @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatename // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_name/ConnectorUpdateNameRequest.ts#L22-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_name/ConnectorUpdateNameRequest.ts#L22-L49 type Request struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` diff --git a/typedapi/connector/updatename/response.go b/typedapi/connector/updatename/response.go index f74f00752f..17b6317978 100644 --- a/typedapi/connector/updatename/response.go +++ b/typedapi/connector/updatename/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatename @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatename // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_name/ConnectorUpdateNameResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_name/ConnectorUpdateNameResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updatename/update_name.go b/typedapi/connector/updatename/update_name.go index 07b0eb887e..b1aa0291ac 100644 --- a/typedapi/connector/updatename/update_name.go +++ b/typedapi/connector/updatename/update_name.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector name and description. package updatename diff --git a/typedapi/connector/updatenative/request.go b/typedapi/connector/updatenative/request.go index c83b5d7fe4..7906a8a750 100644 --- a/typedapi/connector/updatenative/request.go +++ b/typedapi/connector/updatenative/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatenative @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatenative // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L48 type Request struct { IsNative bool `json:"is_native"` } diff --git a/typedapi/connector/updatenative/response.go b/typedapi/connector/updatenative/response.go index 68ca2e4484..4076503ab4 100644 --- a/typedapi/connector/updatenative/response.go +++ b/typedapi/connector/updatenative/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatenative @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatenative // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_native/ConnectorUpdateNativeResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_native/ConnectorUpdateNativeResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updatenative/update_native.go b/typedapi/connector/updatenative/update_native.go index 8acd9e48b1..e5e6ade6ab 100644 --- a/typedapi/connector/updatenative/update_native.go +++ b/typedapi/connector/updatenative/update_native.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector is_native flag. package updatenative diff --git a/typedapi/connector/updatepipeline/request.go b/typedapi/connector/updatepipeline/request.go index b74b3cc0b3..ff27a87420 100644 --- a/typedapi/connector/updatepipeline/request.go +++ b/typedapi/connector/updatepipeline/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatepipeline @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L52 type Request struct { Pipeline types.IngestPipelineParams `json:"pipeline"` } diff --git a/typedapi/connector/updatepipeline/response.go b/typedapi/connector/updatepipeline/response.go index 29622468bc..e948368e59 100644 --- a/typedapi/connector/updatepipeline/response.go +++ b/typedapi/connector/updatepipeline/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatepipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_pipeline/ConnectorUpdatePipelineResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_pipeline/ConnectorUpdatePipelineResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updatepipeline/update_pipeline.go b/typedapi/connector/updatepipeline/update_pipeline.go index fe625895aa..3d28ee0071 100644 --- a/typedapi/connector/updatepipeline/update_pipeline.go +++ b/typedapi/connector/updatepipeline/update_pipeline.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector pipeline. // diff --git a/typedapi/connector/updatescheduling/request.go b/typedapi/connector/updatescheduling/request.go index 545acd7cc0..20d94062c5 100644 --- a/typedapi/connector/updatescheduling/request.go +++ b/typedapi/connector/updatescheduling/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatescheduling @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatescheduling // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L50 type Request struct { Scheduling types.SchedulingConfiguration `json:"scheduling"` } diff --git a/typedapi/connector/updatescheduling/response.go b/typedapi/connector/updatescheduling/response.go index 17e5507c0f..cb7fb797bf 100644 --- a/typedapi/connector/updatescheduling/response.go +++ b/typedapi/connector/updatescheduling/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatescheduling @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatescheduling // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_scheduling/ConnectorUpdateSchedulingResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_scheduling/ConnectorUpdateSchedulingResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updatescheduling/update_scheduling.go b/typedapi/connector/updatescheduling/update_scheduling.go index a9c17f5842..7338994f6d 100644 --- a/typedapi/connector/updatescheduling/update_scheduling.go +++ b/typedapi/connector/updatescheduling/update_scheduling.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector scheduling. package updatescheduling diff --git a/typedapi/connector/updateservicetype/request.go b/typedapi/connector/updateservicetype/request.go index 0fc82680d4..aa6502c1bf 100644 --- a/typedapi/connector/updateservicetype/request.go +++ b/typedapi/connector/updateservicetype/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateservicetype @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateservicetype // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L48 type Request struct { ServiceType string `json:"service_type"` } diff --git a/typedapi/connector/updateservicetype/response.go b/typedapi/connector/updateservicetype/response.go index 0bf2d52f2c..d68551765d 100644 --- a/typedapi/connector/updateservicetype/response.go +++ b/typedapi/connector/updateservicetype/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateservicetype @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateservicetype // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_service_type/ConnectorUpdateServiceTypeResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_service_type/ConnectorUpdateServiceTypeResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updateservicetype/update_service_type.go b/typedapi/connector/updateservicetype/update_service_type.go index a0d86b6ef5..b244fc41ce 100644 --- a/typedapi/connector/updateservicetype/update_service_type.go +++ b/typedapi/connector/updateservicetype/update_service_type.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector service type. package updateservicetype diff --git a/typedapi/connector/updatestatus/request.go b/typedapi/connector/updatestatus/request.go index 988b46fb7f..8dc021c3b3 100644 --- a/typedapi/connector/updatestatus/request.go +++ b/typedapi/connector/updatestatus/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatestatus @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatestatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L49 type Request struct { Status connectorstatus.ConnectorStatus `json:"status"` } diff --git a/typedapi/connector/updatestatus/response.go b/typedapi/connector/updatestatus/response.go index 6368da4b16..9d00e633ab 100644 --- a/typedapi/connector/updatestatus/response.go +++ b/typedapi/connector/updatestatus/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatestatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatestatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/update_status/ConnectorUpdateStatusResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/update_status/ConnectorUpdateStatusResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/connector/updatestatus/update_status.go b/typedapi/connector/updatestatus/update_status.go index a9a56de359..fd55799e8d 100644 --- a/typedapi/connector/updatestatus/update_status.go +++ b/typedapi/connector/updatestatus/update_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the connector status. package updatestatus diff --git a/typedapi/core/bulk/bulk.go b/typedapi/core/bulk/bulk.go index 2d505471a6..51d994f1a1 100644 --- a/typedapi/core/bulk/bulk.go +++ b/typedapi/core/bulk/bulk.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Bulk index or delete documents. // Perform multiple `index`, `create`, `delete`, and `update` actions in a diff --git a/typedapi/core/bulk/request.go b/typedapi/core/bulk/request.go index f8419bd722..b1d16e8d49 100644 --- a/typedapi/core/bulk/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/BulkRequest.ts#L32-L247 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/BulkRequest.ts#L32-L247 type Request = []any diff --git a/typedapi/core/bulk/response.go b/typedapi/core/bulk/response.go index c9b5a3352d..712d8af7f5 100644 --- a/typedapi/core/bulk/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulk @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/BulkResponse.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/BulkResponse.ts#L24-L45 type Response struct { // Errors If `true`, one or more of the operations in the bulk request did not complete diff --git a/typedapi/core/clearscroll/clear_scroll.go b/typedapi/core/clearscroll/clear_scroll.go index 67b6507141..7a315b16c4 100644 --- a/typedapi/core/clearscroll/clear_scroll.go +++ b/typedapi/core/clearscroll/clear_scroll.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear a scrolling search. // Clear the search context and results for a scrolling search. diff --git a/typedapi/core/clearscroll/request.go b/typedapi/core/clearscroll/request.go index 66dab3f4c4..f7dead3958 100644 --- a/typedapi/core/clearscroll/request.go +++ b/typedapi/core/clearscroll/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearscroll @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L61 type Request struct { // ScrollId The scroll IDs to clear. diff --git a/typedapi/core/clearscroll/response.go b/typedapi/core/clearscroll/response.go index dc41b9f9a9..99166115fd 100644 --- a/typedapi/core/clearscroll/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearscroll // Response holds the response body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/clear_scroll/ClearScrollResponse.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/clear_scroll/ClearScrollResponse.ts#L22-L43 type Response struct { // NumFreed The number of scrolling search requests cleared. diff --git a/typedapi/core/closepointintime/close_point_in_time.go b/typedapi/core/closepointintime/close_point_in_time.go index 6e15a82b0e..bc71810ab7 100644 --- a/typedapi/core/closepointintime/close_point_in_time.go +++ b/typedapi/core/closepointintime/close_point_in_time.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Close a point in time. // A point in time must be opened explicitly before being used in search diff --git a/typedapi/core/closepointintime/request.go b/typedapi/core/closepointintime/request.go index 845b218846..7680de8aa6 100644 --- a/typedapi/core/closepointintime/request.go +++ b/typedapi/core/closepointintime/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package closepointintime @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L48 type Request struct { // Id The ID of the point-in-time. diff --git a/typedapi/core/closepointintime/response.go b/typedapi/core/closepointintime/response.go index 627523e25e..2e76a3494f 100644 --- a/typedapi/core/closepointintime/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package closepointintime // Response holds the response body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L42 type Response struct { // NumFreed The number of search contexts that were successfully closed. diff --git a/typedapi/core/count/count.go b/typedapi/core/count/count.go index b4e8395a06..b8c42c149a 100644 --- a/typedapi/core/count/count.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Count search results. // Get the number of documents matching a query. diff --git a/typedapi/core/count/request.go b/typedapi/core/count/request.go index c6ac2c1d8a..488bd8e322 100644 --- a/typedapi/core/count/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package count @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/count/CountRequest.ts#L26-L154 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/count/CountRequest.ts#L26-L154 type Request struct { // Query Defines the search query using Query DSL. A request body query cannot be used diff --git a/typedapi/core/count/response.go b/typedapi/core/count/response.go index 32eaf69a98..368c9d93e5 100644 --- a/typedapi/core/count/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package count @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/count/CountResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/count/CountResponse.ts#L23-L25 type Response struct { Count int64 `json:"count"` Shards_ types.ShardStatistics `json:"_shards"` diff --git a/typedapi/core/create/create.go b/typedapi/core/create/create.go index 794b2a8d80..8b87c98a1d 100644 --- a/typedapi/core/create/create.go +++ b/typedapi/core/create/create.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a new document in the index. // diff --git a/typedapi/core/create/request.go b/typedapi/core/create/request.go index 84cecca3e7..55b0402eab 100644 --- a/typedapi/core/create/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package create @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/create/CreateRequest.ts#L35-L221 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/create/CreateRequest.ts#L35-L221 type Request = json.RawMessage // NewRequest returns a Request diff --git a/typedapi/core/create/response.go b/typedapi/core/create/response.go index 12902054b0..fc4b2c9e9a 100644 --- a/typedapi/core/create/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package create @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/create/CreateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/create/CreateResponse.ts#L22-L24 type Response struct { ForcedRefresh *bool `json:"forced_refresh,omitempty"` // Id_ The unique identifier for the added document. diff --git a/typedapi/core/delete/delete.go b/typedapi/core/delete/delete.go index 6054f06d61..fa88f0b5ea 100644 --- a/typedapi/core/delete/delete.go +++ b/typedapi/core/delete/delete.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a document. // diff --git a/typedapi/core/delete/response.go b/typedapi/core/delete/response.go index 1735aadd58..232050da95 100644 --- a/typedapi/core/delete/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/delete/DeleteResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/delete/DeleteResponse.ts#L22-L34 type Response struct { ForcedRefresh *bool `json:"forced_refresh,omitempty"` // Id_ The unique identifier for the added document. diff --git a/typedapi/core/deletebyquery/delete_by_query.go b/typedapi/core/deletebyquery/delete_by_query.go index ccbd73da52..fd4d240f33 100644 --- a/typedapi/core/deletebyquery/delete_by_query.go +++ b/typedapi/core/deletebyquery/delete_by_query.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete documents. // @@ -646,7 +646,7 @@ func (r *DeleteByQuery) ExpandWildcards(expandwildcards ...expandwildcard.Expand return r } -// From Starting offset (default: 0) +// From Skips the specified number of documents. // API name: from func (r *DeleteByQuery) From(from string) *DeleteByQuery { r.values.Set("from", from) diff --git a/typedapi/core/deletebyquery/request.go b/typedapi/core/deletebyquery/request.go index ade47afd89..9c48a00c01 100644 --- a/typedapi/core/deletebyquery/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletebyquery @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L310 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L314 type Request struct { // MaxDocs The maximum number of documents to delete. diff --git a/typedapi/core/deletebyquery/response.go b/typedapi/core/deletebyquery/response.go index 27629af81e..e1ce20bf3f 100644 --- a/typedapi/core/deletebyquery/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletebyquery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/delete_by_query/DeleteByQueryResponse.ts#L26-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/delete_by_query/DeleteByQueryResponse.ts#L26-L88 type Response struct { // Batches The number of scroll responses pulled back by the delete by query. diff --git a/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go b/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go index 2692ea7c08..d6bd0a7c4e 100644 --- a/typedapi/core/deletebyqueryrethrottle/delete_by_query_rethrottle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Throttle a delete by query operation. // diff --git a/typedapi/core/deletebyqueryrethrottle/response.go b/typedapi/core/deletebyqueryrethrottle/response.go index 896efc277b..f98d9909a9 100644 --- a/typedapi/core/deletebyqueryrethrottle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletebyqueryrethrottle @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package deletebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/deletescript/delete_script.go b/typedapi/core/deletescript/delete_script.go index 2d0d38db5b..c649337fe6 100644 --- a/typedapi/core/deletescript/delete_script.go +++ b/typedapi/core/deletescript/delete_script.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a script or search template. // Deletes a stored script or search template. diff --git a/typedapi/core/deletescript/response.go b/typedapi/core/deletescript/response.go index 4ab892b5ae..0e3007b6cf 100644 --- a/typedapi/core/deletescript/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletescript // Response holds the response body struct for the package deletescript // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/delete_script/DeleteScriptResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/exists/exists.go b/typedapi/core/exists/exists.go index 7a0116f794..e55de0daee 100644 --- a/typedapi/core/exists/exists.go +++ b/typedapi/core/exists/exists.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check a document. // diff --git a/typedapi/core/existssource/exists_source.go b/typedapi/core/existssource/exists_source.go index 59719f278f..f0a9033fda 100644 --- a/typedapi/core/existssource/exists_source.go +++ b/typedapi/core/existssource/exists_source.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check for a document source. // diff --git a/typedapi/core/explain/explain.go b/typedapi/core/explain/explain.go index 055560d9d2..6ad09ce32f 100644 --- a/typedapi/core/explain/explain.go +++ b/typedapi/core/explain/explain.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Explain a document match result. // Get information about why a specific document matches, or doesn't match, a diff --git a/typedapi/core/explain/request.go b/typedapi/core/explain/request.go index 4a75f27a95..8703038ed2 100644 --- a/typedapi/core/explain/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package explain @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/explain/ExplainRequest.ts#L26-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/explain/ExplainRequest.ts#L26-L125 type Request struct { // Query Defines the search definition using the Query DSL. diff --git a/typedapi/core/explain/response.go b/typedapi/core/explain/response.go index 25cac57b3e..9ce368b747 100644 --- a/typedapi/core/explain/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package explain @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/explain/ExplainResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/fieldcaps/field_caps.go b/typedapi/core/fieldcaps/field_caps.go index f3e4f39a70..bafd1bd734 100644 --- a/typedapi/core/fieldcaps/field_caps.go +++ b/typedapi/core/fieldcaps/field_caps.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the field capabilities. // diff --git a/typedapi/core/fieldcaps/request.go b/typedapi/core/fieldcaps/request.go index 01f56630c5..c2ba9104ae 100644 --- a/typedapi/core/fieldcaps/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package fieldcaps @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L130 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L130 type Request struct { // Fields A list of fields to retrieve capabilities for. Wildcard (`*`) expressions are diff --git a/typedapi/core/fieldcaps/response.go b/typedapi/core/fieldcaps/response.go index 3133809aad..e44712fe07 100644 --- a/typedapi/core/fieldcaps/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package fieldcaps @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/field_caps/FieldCapabilitiesResponse.ts#L24-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/field_caps/FieldCapabilitiesResponse.ts#L24-L38 type Response struct { Fields map[string]map[string]types.FieldCapability `json:"fields"` // Indices The list of indices where this field has the same type family, or null if all diff --git a/typedapi/core/get/get.go b/typedapi/core/get/get.go index 7cfdd63df2..1d1bd3adef 100644 --- a/typedapi/core/get/get.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a document by its ID. // diff --git a/typedapi/core/get/response.go b/typedapi/core/get/response.go index b61648f976..f47f5cc1e3 100644 --- a/typedapi/core/get/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get/GetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get/GetResponse.ts#L23-L34 type Response struct { // Fields If the `stored_fields` parameter is set to `true` and `found` is `true`, it diff --git a/typedapi/core/getscript/get_script.go b/typedapi/core/getscript/get_script.go index e2f4b4b73d..e78797ec0d 100644 --- a/typedapi/core/getscript/get_script.go +++ b/typedapi/core/getscript/get_script.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a script or search template. // Retrieves a stored script or search template. diff --git a/typedapi/core/getscript/response.go b/typedapi/core/getscript/response.go index 5e23e6c70d..4f82b0df26 100644 --- a/typedapi/core/getscript/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getscript @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscript // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get_script/GetScriptResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get_script/GetScriptResponse.ts#L23-L29 type Response struct { Found bool `json:"found"` Id_ string `json:"_id"` diff --git a/typedapi/core/getscriptcontext/get_script_context.go b/typedapi/core/getscriptcontext/get_script_context.go index 0ea3e19c80..1967b86932 100644 --- a/typedapi/core/getscriptcontext/get_script_context.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get script contexts. // diff --git a/typedapi/core/getscriptcontext/response.go b/typedapi/core/getscriptcontext/response.go index a5ef36ce22..9afa03d6fe 100644 --- a/typedapi/core/getscriptcontext/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getscriptcontext @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscriptcontext // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get_script_context/GetScriptContextResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get_script_context/GetScriptContextResponse.ts#L22-L26 type Response struct { Contexts []types.GetScriptContext `json:"contexts"` } diff --git a/typedapi/core/getscriptlanguages/get_script_languages.go b/typedapi/core/getscriptlanguages/get_script_languages.go index 98424bdfb6..b08abd2aef 100644 --- a/typedapi/core/getscriptlanguages/get_script_languages.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get script languages. // diff --git a/typedapi/core/getscriptlanguages/response.go b/typedapi/core/getscriptlanguages/response.go index ac857d3354..7724a279bf 100644 --- a/typedapi/core/getscriptlanguages/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getscriptlanguages @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscriptlanguages // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/getsource/get_source.go b/typedapi/core/getsource/get_source.go index f7e87e5693..990beef958 100644 --- a/typedapi/core/getsource/get_source.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a document's source. // diff --git a/typedapi/core/getsource/response.go b/typedapi/core/getsource/response.go index 46d3fc2dee..85dac9f0dd 100644 --- a/typedapi/core/getsource/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getsource @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsource // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get_source/SourceResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get_source/SourceResponse.ts#L20-L23 type Response = json.RawMessage diff --git a/typedapi/core/healthreport/health_report.go b/typedapi/core/healthreport/health_report.go index b8ca094b16..57bca6973c 100644 --- a/typedapi/core/healthreport/health_report.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the cluster health. // Get a report with the health status of an Elasticsearch cluster. diff --git a/typedapi/core/healthreport/response.go b/typedapi/core/healthreport/response.go index 45ab839e7a..de4f6f35ed 100644 --- a/typedapi/core/healthreport/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package healthreport @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package healthreport // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/Response.ts#L22-L28 type Response struct { ClusterName string `json:"cluster_name"` Indicators types.Indicators `json:"indicators"` diff --git a/typedapi/core/index/index.go b/typedapi/core/index/index.go index 2b4a9406e5..de44714c7a 100644 --- a/typedapi/core/index/index.go +++ b/typedapi/core/index/index.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a document in an index. // diff --git a/typedapi/core/index/request.go b/typedapi/core/index/request.go index dca46b5583..af4e651128 100644 --- a/typedapi/core/index/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package index @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/index/IndexRequest.ts#L35-L268 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/index/IndexRequest.ts#L35-L268 type Request = json.RawMessage // NewRequest returns a Request diff --git a/typedapi/core/index/response.go b/typedapi/core/index/response.go index 3acacd19f9..5cde74670f 100644 --- a/typedapi/core/index/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package index @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/index/IndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/index/IndexResponse.ts#L22-L24 type Response struct { ForcedRefresh *bool `json:"forced_refresh,omitempty"` // Id_ The unique identifier for the added document. diff --git a/typedapi/core/info/info.go b/typedapi/core/info/info.go index 3d6f003fa7..549864afaf 100644 --- a/typedapi/core/info/info.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get cluster info. // Get basic build, version, and cluster information. diff --git a/typedapi/core/info/response.go b/typedapi/core/info/response.go index 8332529d28..a71cf96827 100644 --- a/typedapi/core/info/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/info/RootNodeInfoResponse.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/info/RootNodeInfoResponse.ts#L23-L40 type Response struct { // ClusterName The responding cluster's name. diff --git a/typedapi/core/knnsearch/knn_search.go b/typedapi/core/knnsearch/knn_search.go index f3aebf57d2..0012c5d5d0 100644 --- a/typedapi/core/knnsearch/knn_search.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a knn search. // diff --git a/typedapi/core/knnsearch/request.go b/typedapi/core/knnsearch/request.go index 3dedd3d2ea..f03fcf2ca4 100644 --- a/typedapi/core/knnsearch/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package knnsearch @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package knnsearch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/knn_search/KnnSearchRequest.ts#L26-L112 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/knn_search/KnnSearchRequest.ts#L26-L112 type Request struct { // DocvalueFields The request returns doc values for field names matching these patterns diff --git a/typedapi/core/knnsearch/response.go b/typedapi/core/knnsearch/response.go index 89d5c773bf..4ae3ec6922 100644 --- a/typedapi/core/knnsearch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package knnsearch @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package knnsearch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/knn_search/KnnSearchResponse.ts#L26-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/knn_search/KnnSearchResponse.ts#L26-L54 type Response struct { // Fields The field values for the documents. These fields diff --git a/typedapi/core/mget/mget.go b/typedapi/core/mget/mget.go index 32d744ef93..b6b6515f90 100644 --- a/typedapi/core/mget/mget.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get multiple documents. // diff --git a/typedapi/core/mget/request.go b/typedapi/core/mget/request.go index 06027a2ec7..a3b08c1f19 100644 --- a/typedapi/core/mget/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mget @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mget/MultiGetRequest.ts#L25-L127 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/mget/MultiGetRequest.ts#L25-L127 type Request struct { // Docs The documents you want to retrieve. Required if no index is specified in the diff --git a/typedapi/core/mget/response.go b/typedapi/core/mget/response.go index e0b8049643..65c5a6b8e8 100644 --- a/typedapi/core/mget/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mget @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mget/MultiGetResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/mget/MultiGetResponse.ts#L22-L31 type Response struct { // Docs The response includes a docs array that contains the documents in the order diff --git a/typedapi/core/msearch/msearch.go b/typedapi/core/msearch/msearch.go index e198527def..1ceec2b193 100644 --- a/typedapi/core/msearch/msearch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run multiple searches. // diff --git a/typedapi/core/msearch/request.go b/typedapi/core/msearch/request.go index 71a389234c..ebb535dd62 100644 --- a/typedapi/core/msearch/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package msearch @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch/MultiSearchRequest.ts#L25-L135 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch/MultiSearchRequest.ts#L25-L135 type Request = []types.MsearchRequestItem diff --git a/typedapi/core/msearch/response.go b/typedapi/core/msearch/response.go index d100664a42..2427b0da30 100644 --- a/typedapi/core/msearch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package msearch @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch/MultiSearchResponse.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch/MultiSearchResponse.ts#L25-L27 type Response struct { Responses []types.MsearchResponseItem `json:"responses"` Took int64 `json:"took"` diff --git a/typedapi/core/msearchtemplate/msearch_template.go b/typedapi/core/msearchtemplate/msearch_template.go index b6a17c1ae6..eafd3ec8cb 100644 --- a/typedapi/core/msearchtemplate/msearch_template.go +++ b/typedapi/core/msearchtemplate/msearch_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run multiple templated searches. // diff --git a/typedapi/core/msearchtemplate/request.go b/typedapi/core/msearchtemplate/request.go index 7764effc8c..de5121d4f4 100644 --- a/typedapi/core/msearchtemplate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package msearchtemplate @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L116 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L116 type Request = []types.RequestItem diff --git a/typedapi/core/msearchtemplate/response.go b/typedapi/core/msearchtemplate/response.go index 4ae4ddb77a..d4bc3f9716 100644 --- a/typedapi/core/msearchtemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package msearchtemplate @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L31 type Response struct { Responses []types.MsearchResponseItem `json:"responses"` Took int64 `json:"took"` diff --git a/typedapi/core/mtermvectors/mtermvectors.go b/typedapi/core/mtermvectors/mtermvectors.go index ea2ebe57e4..956614d7c1 100644 --- a/typedapi/core/mtermvectors/mtermvectors.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get multiple term vectors. // diff --git a/typedapi/core/mtermvectors/request.go b/typedapi/core/mtermvectors/request.go index 0bc54c7e8e..f0eefc0366 100644 --- a/typedapi/core/mtermvectors/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mtermvectors @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L134 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L134 type Request struct { // Docs An array of existing or artificial documents. diff --git a/typedapi/core/mtermvectors/response.go b/typedapi/core/mtermvectors/response.go index 860c4e003a..7b7ed8088d 100644 --- a/typedapi/core/mtermvectors/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mtermvectors @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24 type Response struct { Docs []types.TermVectorsResult `json:"docs"` } diff --git a/typedapi/core/openpointintime/open_point_in_time.go b/typedapi/core/openpointintime/open_point_in_time.go index 54536bf451..6127420793 100644 --- a/typedapi/core/openpointintime/open_point_in_time.go +++ b/typedapi/core/openpointintime/open_point_in_time.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Open a point in time. // @@ -500,6 +500,15 @@ func (r *OpenPointInTime) AllowPartialSearchResults(allowpartialsearchresults bo return r } +// MaxConcurrentShardRequests Maximum number of concurrent shard requests that each sub-search request +// executes per node. +// API name: max_concurrent_shard_requests +func (r *OpenPointInTime) MaxConcurrentShardRequests(maxconcurrentshardrequests int) *OpenPointInTime { + r.values.Set("max_concurrent_shard_requests", strconv.Itoa(maxconcurrentshardrequests)) + + 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/typedapi/core/openpointintime/request.go b/typedapi/core/openpointintime/request.go index 3e98c9ca9b..f8c9f397a3 100644 --- a/typedapi/core/openpointintime/request.go +++ b/typedapi/core/openpointintime/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package openpointintime @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package openpointintime // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts#L25-L121 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts#L26-L127 type Request struct { // IndexFilter Filter indices if the provided query rewrites to `match_none` on every shard. diff --git a/typedapi/core/openpointintime/response.go b/typedapi/core/openpointintime/response.go index 9c34873b87..c48084abe7 100644 --- a/typedapi/core/openpointintime/response.go +++ b/typedapi/core/openpointintime/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package openpointintime @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package openpointintime // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L23-L29 type Response struct { Id string `json:"id"` // Shards_ Shards used to create the PIT diff --git a/typedapi/core/ping/ping.go b/typedapi/core/ping/ping.go index 16cb4900df..9f48e59f01 100644 --- a/typedapi/core/ping/ping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Ping the cluster. // Get information about whether the cluster is running. diff --git a/typedapi/core/putscript/put_script.go b/typedapi/core/putscript/put_script.go index 4b950a731c..0b827b0657 100644 --- a/typedapi/core/putscript/put_script.go +++ b/typedapi/core/putscript/put_script.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a script or search template. // Creates or updates a stored script or search template. diff --git a/typedapi/core/putscript/request.go b/typedapi/core/putscript/request.go index 11cf511dc4..0db20c976a 100644 --- a/typedapi/core/putscript/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putscript @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/put_script/PutScriptRequest.ts#L25-L87 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/put_script/PutScriptRequest.ts#L25-L87 type Request struct { // Script The script or search template, its parameters, and its language. diff --git a/typedapi/core/putscript/response.go b/typedapi/core/putscript/response.go index 7769f39f6a..ee5a57241a 100644 --- a/typedapi/core/putscript/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putscript // Response holds the response body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/put_script/PutScriptResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/rankeval/rank_eval.go b/typedapi/core/rankeval/rank_eval.go index f5dd6431ae..6619d2f5c6 100644 --- a/typedapi/core/rankeval/rank_eval.go +++ b/typedapi/core/rankeval/rank_eval.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Evaluate ranked search results. // diff --git a/typedapi/core/rankeval/request.go b/typedapi/core/rankeval/request.go index d2a4cf0942..20feecafbe 100644 --- a/typedapi/core/rankeval/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rankeval @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/RankEvalRequest.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/rank_eval/RankEvalRequest.ts#L24-L76 type Request struct { // Metric Definition of the evaluation metric to calculate. diff --git a/typedapi/core/rankeval/response.go b/typedapi/core/rankeval/response.go index 8264044c85..700b939976 100644 --- a/typedapi/core/rankeval/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rankeval @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/RankEvalResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/reindex/reindex.go b/typedapi/core/reindex/reindex.go index fe849d32d8..dfa7e0ad6d 100644 --- a/typedapi/core/reindex/reindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Reindex documents. // diff --git a/typedapi/core/reindex/request.go b/typedapi/core/reindex/request.go index 5e5198673e..c157adcd91 100644 --- a/typedapi/core/reindex/request.go +++ b/typedapi/core/reindex/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package reindex @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex/ReindexRequest.ts#L27-L309 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/reindex/ReindexRequest.ts#L27-L309 type Request struct { // Conflicts Indicates whether to continue reindexing even when there are conflicts. diff --git a/typedapi/core/reindex/response.go b/typedapi/core/reindex/response.go index d371ca060e..6152b04e98 100644 --- a/typedapi/core/reindex/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package reindex @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex/ReindexResponse.ts#L26-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/reindex/ReindexResponse.ts#L26-L92 type Response struct { // Batches The number of scroll responses that were pulled back by the reindex. diff --git a/typedapi/core/reindexrethrottle/reindex_rethrottle.go b/typedapi/core/reindexrethrottle/reindex_rethrottle.go index c4166f923d..8fa65e369c 100644 --- a/typedapi/core/reindexrethrottle/reindex_rethrottle.go +++ b/typedapi/core/reindexrethrottle/reindex_rethrottle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Throttle a reindex operation. // diff --git a/typedapi/core/reindexrethrottle/response.go b/typedapi/core/reindexrethrottle/response.go index fb4fee2342..96d458c460 100644 --- a/typedapi/core/reindexrethrottle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package reindexrethrottle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reindexrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25 type Response struct { Nodes map[string]types.ReindexNode `json:"nodes"` } diff --git a/typedapi/core/rendersearchtemplate/render_search_template.go b/typedapi/core/rendersearchtemplate/render_search_template.go index 14ec627542..dffecdadd2 100644 --- a/typedapi/core/rendersearchtemplate/render_search_template.go +++ b/typedapi/core/rendersearchtemplate/render_search_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Render a search template. // diff --git a/typedapi/core/rendersearchtemplate/request.go b/typedapi/core/rendersearchtemplate/request.go index 2234e79a60..1dadadf5e5 100644 --- a/typedapi/core/rendersearchtemplate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rendersearchtemplate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L76 type Request struct { File *string `json:"file,omitempty"` // Id The ID of the search template to render. diff --git a/typedapi/core/rendersearchtemplate/response.go b/typedapi/core/rendersearchtemplate/response.go index e7805dd46c..3ceddb7d2d 100644 --- a/typedapi/core/rendersearchtemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rendersearchtemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25 type Response struct { TemplateOutput map[string]json.RawMessage `json:"template_output"` } diff --git a/typedapi/core/scriptspainlessexecute/request.go b/typedapi/core/scriptspainlessexecute/request.go index b4987f6dc3..a875de0093 100644 --- a/typedapi/core/scriptspainlessexecute/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package scriptspainlessexecute @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L64 type Request struct { // Context The context that the script should run in. diff --git a/typedapi/core/scriptspainlessexecute/response.go b/typedapi/core/scriptspainlessexecute/response.go index 9ce312a7eb..4c76f2455d 100644 --- a/typedapi/core/scriptspainlessexecute/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package scriptspainlessexecute @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24 type Response struct { Result json.RawMessage `json:"result,omitempty"` } diff --git a/typedapi/core/scriptspainlessexecute/scripts_painless_execute.go b/typedapi/core/scriptspainlessexecute/scripts_painless_execute.go index 072c88d5ef..cd7eb4886f 100644 --- a/typedapi/core/scriptspainlessexecute/scripts_painless_execute.go +++ b/typedapi/core/scriptspainlessexecute/scripts_painless_execute.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a script. // diff --git a/typedapi/core/scroll/request.go b/typedapi/core/scroll/request.go index 7403b5159a..a84c1c2d94 100644 --- a/typedapi/core/scroll/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package scroll @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/scroll/ScrollRequest.ts#L24-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/scroll/ScrollRequest.ts#L24-L88 type Request struct { // Scroll The period to retain the search context for scrolling. diff --git a/typedapi/core/scroll/response.go b/typedapi/core/scroll/response.go index b6274f9bfa..64cf452413 100644 --- a/typedapi/core/scroll/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package scroll @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/scroll/ScrollResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/scroll/scroll.go b/typedapi/core/scroll/scroll.go index ab218f9c4a..0aa429f6c8 100644 --- a/typedapi/core/scroll/scroll.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a scrolling search. // diff --git a/typedapi/core/search/request.go b/typedapi/core/search/request.go index 50f2a21dbb..1e66fa4112 100644 --- a/typedapi/core/search/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package search @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/SearchRequest.ts#L54-L590 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/SearchRequest.ts#L54-L590 type Request struct { // Aggregations Defines the aggregations that are run as part of the search request. @@ -69,7 +69,8 @@ type Request struct { // Knn The approximate kNN search to run. Knn []types.KnnSearch `json:"knn,omitempty"` // MinScore The minimum `_score` for matching documents. - // Documents with a lower `_score` are not included in the search results. + // Documents with a lower `_score` are not included in search results and + // results collected by aggregations. MinScore *types.Float64 `json:"min_score,omitempty"` // Pit Limit the search to a point in time (PIT). // If you provide a PIT, you cannot specify an `` in the request path. diff --git a/typedapi/core/search/response.go b/typedapi/core/search/response.go index be923ce5d9..4082364b96 100644 --- a/typedapi/core/search/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/SearchResponse.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/search/search.go b/typedapi/core/search/search.go index e6d6389408..a1cc580f9b 100644 --- a/typedapi/core/search/search.go +++ b/typedapi/core/search/search.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a search. // @@ -965,7 +965,8 @@ func (r *Search) Knn(knns ...types.KnnSearchVariant) *Search { } // The minimum `_score` for matching documents. -// Documents with a lower `_score` are not included in the search results. +// Documents with a lower `_score` are not included in search results and +// results collected by aggregations. // API name: min_score func (r *Search) MinScore(minscore types.Float64) *Search { // Initialize the request if it is not already initialized diff --git a/typedapi/core/searchmvt/request.go b/typedapi/core/searchmvt/request.go index 53479d1333..ae1e081a07 100644 --- a/typedapi/core/searchmvt/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package searchmvt @@ -35,7 +35,7 @@ import ( // Request holds the request body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L373 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L373 type Request struct { // Aggs Sub-aggregations for the geotile_grid. diff --git a/typedapi/core/searchmvt/response.go b/typedapi/core/searchmvt/response.go index 93092a8361..819c11a732 100644 --- a/typedapi/core/searchmvt/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package searchmvt // Response holds the response body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_mvt/SearchMvtResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search_mvt/SearchMvtResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/core/searchmvt/search_mvt.go b/typedapi/core/searchmvt/search_mvt.go index dd3c70de8a..c9a535b762 100644 --- a/typedapi/core/searchmvt/search_mvt.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Search a vector tile. // diff --git a/typedapi/core/searchshards/response.go b/typedapi/core/searchshards/response.go index daa94b051a..2fc12efcb8 100644 --- a/typedapi/core/searchshards/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package searchshards @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package searchshards // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_shards/SearchShardsResponse.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search_shards/SearchShardsResponse.ts#L34-L40 type Response struct { Indices map[string]types.ShardStoreIndex `json:"indices"` Nodes map[string]types.SearchShardsNodeAttributes `json:"nodes"` diff --git a/typedapi/core/searchshards/search_shards.go b/typedapi/core/searchshards/search_shards.go index 0fa2119aed..da3d80922b 100644 --- a/typedapi/core/searchshards/search_shards.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the search shards. // diff --git a/typedapi/core/searchtemplate/request.go b/typedapi/core/searchtemplate/request.go index d0be2bebde..52088cd40f 100644 --- a/typedapi/core/searchtemplate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package searchtemplate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_template/SearchTemplateRequest.ts#L32-L153 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search_template/SearchTemplateRequest.ts#L32-L153 type Request struct { // Explain If `true`, returns detailed information about score calculation as part of diff --git a/typedapi/core/searchtemplate/response.go b/typedapi/core/searchtemplate/response.go index b0b0ef300b..4960ccef36 100644 --- a/typedapi/core/searchtemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package searchtemplate @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_template/SearchTemplateResponse.ts#L30-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/searchtemplate/search_template.go b/typedapi/core/searchtemplate/search_template.go index 210945d497..d986dfe3b6 100644 --- a/typedapi/core/searchtemplate/search_template.go +++ b/typedapi/core/searchtemplate/search_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a search with a search template. package searchtemplate diff --git a/typedapi/core/termsenum/request.go b/typedapi/core/termsenum/request.go index 17113bda8c..c15b338b9e 100644 --- a/typedapi/core/termsenum/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package termsenum @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L93 type Request struct { // CaseInsensitive When `true`, the provided search string is matched against index terms diff --git a/typedapi/core/termsenum/response.go b/typedapi/core/termsenum/response.go index 54f3aaab6d..218686f5e7 100644 --- a/typedapi/core/termsenum/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package termsenum @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/terms_enum/TermsEnumResponse.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/terms_enum/TermsEnumResponse.ts#L22-L32 type Response struct { // Complete If `false`, the returned terms set may be incomplete and should be treated as diff --git a/typedapi/core/termsenum/terms_enum.go b/typedapi/core/termsenum/terms_enum.go index 83e51e2fc9..887c59c895 100644 --- a/typedapi/core/termsenum/terms_enum.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get terms in an index. // diff --git a/typedapi/core/termvectors/request.go b/typedapi/core/termvectors/request.go index d002baa16b..7483dd13fa 100644 --- a/typedapi/core/termvectors/request.go +++ b/typedapi/core/termvectors/request.go @@ -16,37 +16,75 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package termvectors 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/versiontype" ) // Request holds the request body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/termvectors/TermVectorsRequest.ts#L33-L187 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/termvectors/TermVectorsRequest.ts#L33-L239 type Request struct { // Doc An artificial document (a document not present in the index) for which you // want to retrieve term vectors. Doc json.RawMessage `json:"doc,omitempty"` + // FieldStatistics If `true`, the response includes: + // + // * The document count (how many documents contain this field). + // * The sum of document frequencies (the sum of document frequencies for all + // terms in this field). + // * The sum of total term frequencies (the sum of total term frequencies of + // each term in this field). + FieldStatistics *bool `json:"field_statistics,omitempty"` + // Fields A list of fields to include in the statistics. + // It is used as the default list unless a specific field list is provided in + // the `completion_fields` or `fielddata_fields` parameters. + Fields []string `json:"fields,omitempty"` // Filter Filter terms based on their tf-idf scores. // This could be useful in order find out a good characteristic vector of a // document. // This feature works in a similar manner to the second phase of the More Like // This Query. Filter *types.TermVectorsFilter `json:"filter,omitempty"` + // Offsets If `true`, the response includes term offsets. + Offsets *bool `json:"offsets,omitempty"` + // Payloads If `true`, the response includes term payloads. + Payloads *bool `json:"payloads,omitempty"` // PerFieldAnalyzer Override the default per-field analyzer. // This is useful in order to generate term vectors in any fashion, especially // when using artificial documents. // When providing an analyzer for a field that already stores term vectors, the // term vectors will be regenerated. PerFieldAnalyzer map[string]string `json:"per_field_analyzer,omitempty"` + // Positions If `true`, the response includes term positions. + Positions *bool `json:"positions,omitempty"` + // Routing A custom value that is used to route operations to a specific shard. + Routing *string `json:"routing,omitempty"` + // TermStatistics If `true`, the response includes: + // + // * The total term frequency (how often a term occurs in all documents). + // * The document frequency (the number of documents containing the current + // term). + // + // By default these values are not returned since term statistics can have a + // serious performance impact. + TermStatistics *bool `json:"term_statistics,omitempty"` + // Version If `true`, returns the document version as part of a hit. + Version *int64 `json:"version,omitempty"` + // VersionType The version type. + VersionType *versiontype.VersionType `json:"version_type,omitempty"` } // NewRequest returns a Request @@ -69,3 +107,141 @@ 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 "doc": + if err := dec.Decode(&s.Doc); err != nil { + return fmt.Errorf("%s | %w", "Doc", err) + } + + case "field_statistics": + 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", "FieldStatistics", err) + } + s.FieldStatistics = &value + case bool: + s.FieldStatistics = &v + } + + case "fields": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(string) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Fields", err) + } + + s.Fields = append(s.Fields, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Fields); err != nil { + return fmt.Errorf("%s | %w", "Fields", err) + } + } + + case "filter": + if err := dec.Decode(&s.Filter); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + + case "offsets": + 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", "Offsets", err) + } + s.Offsets = &value + case bool: + s.Offsets = &v + } + + case "payloads": + 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", "Payloads", err) + } + s.Payloads = &value + case bool: + s.Payloads = &v + } + + case "per_field_analyzer": + if s.PerFieldAnalyzer == nil { + s.PerFieldAnalyzer = make(map[string]string, 0) + } + if err := dec.Decode(&s.PerFieldAnalyzer); err != nil { + return fmt.Errorf("%s | %w", "PerFieldAnalyzer", err) + } + + case "positions": + 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", "Positions", err) + } + s.Positions = &value + case bool: + s.Positions = &v + } + + case "routing": + if err := dec.Decode(&s.Routing); err != nil { + return fmt.Errorf("%s | %w", "Routing", err) + } + + case "term_statistics": + 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", "TermStatistics", err) + } + s.TermStatistics = &value + case bool: + s.TermStatistics = &v + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + case "version_type": + if err := dec.Decode(&s.VersionType); err != nil { + return fmt.Errorf("%s | %w", "VersionType", err) + } + + } + } + return nil +} diff --git a/typedapi/core/termvectors/response.go b/typedapi/core/termvectors/response.go index c74a9ae500..33120f6590 100644 --- a/typedapi/core/termvectors/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package termvectors @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34 type Response struct { Found bool `json:"found"` Id_ *string `json:"_id,omitempty"` diff --git a/typedapi/core/termvectors/termvectors.go b/typedapi/core/termvectors/termvectors.go index 46021611fa..e9f03b9a7e 100644 --- a/typedapi/core/termvectors/termvectors.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get term vector information. // @@ -447,55 +447,6 @@ func (r *Termvectors) Id(id string) *Termvectors { return r } -// Fields A comma-separated list or wildcard expressions of fields to include in the -// statistics. -// It is used as the default list unless a specific field list is provided in -// the `completion_fields` or `fielddata_fields` parameters. -// API name: fields -func (r *Termvectors) Fields(fields ...string) *Termvectors { - r.values.Set("fields", strings.Join(fields, ",")) - - return r -} - -// FieldStatistics If `true`, the response includes: -// -// * The document count (how many documents contain this field). -// * The sum of document frequencies (the sum of document frequencies for all -// terms in this field). -// * The sum of total term frequencies (the sum of total term frequencies of -// each term in this field). -// API name: field_statistics -func (r *Termvectors) FieldStatistics(fieldstatistics bool) *Termvectors { - r.values.Set("field_statistics", strconv.FormatBool(fieldstatistics)) - - return r -} - -// Offsets If `true`, the response includes term offsets. -// API name: offsets -func (r *Termvectors) Offsets(offsets bool) *Termvectors { - r.values.Set("offsets", strconv.FormatBool(offsets)) - - return r -} - -// Payloads If `true`, the response includes term payloads. -// API name: payloads -func (r *Termvectors) Payloads(payloads bool) *Termvectors { - r.values.Set("payloads", strconv.FormatBool(payloads)) - - return r -} - -// Positions If `true`, the response includes term positions. -// API name: positions -func (r *Termvectors) Positions(positions bool) *Termvectors { - r.values.Set("positions", strconv.FormatBool(positions)) - - return r -} - // Preference The node or shard the operation should be performed on. // It is random by default. // API name: preference @@ -513,45 +464,6 @@ func (r *Termvectors) Realtime(realtime bool) *Termvectors { return r } -// Routing A custom value that is used to route operations to a specific shard. -// API name: routing -func (r *Termvectors) Routing(routing string) *Termvectors { - r.values.Set("routing", routing) - - return r -} - -// TermStatistics If `true`, the response includes: -// -// * The total term frequency (how often a term occurs in all documents). -// * The document frequency (the number of documents containing the current -// term). -// -// By default these values are not returned since term statistics can have a -// serious performance impact. -// API name: term_statistics -func (r *Termvectors) TermStatistics(termstatistics bool) *Termvectors { - r.values.Set("term_statistics", strconv.FormatBool(termstatistics)) - - return r -} - -// Version If `true`, returns the document version as part of a hit. -// API name: version -func (r *Termvectors) Version(versionnumber string) *Termvectors { - r.values.Set("version", versionnumber) - - return r -} - -// VersionType The version type. -// API name: version_type -func (r *Termvectors) VersionType(versiontype versiontype.VersionType) *Termvectors { - r.values.Set("version_type", versiontype.String()) - - return r -} - // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace @@ -620,6 +532,40 @@ func (r *Termvectors) Doc(doc any) *Termvectors { return r } +// If `true`, the response includes: +// +// * The document count (how many documents contain this field). +// * The sum of document frequencies (the sum of document frequencies for all +// terms in this field). +// * The sum of total term frequencies (the sum of total term frequencies of +// each term in this field). +// API name: field_statistics +func (r *Termvectors) FieldStatistics(fieldstatistics bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.FieldStatistics = &fieldstatistics + + return r +} + +// A list of fields to include in the statistics. +// It is used as the default list unless a specific field list is provided in +// the `completion_fields` or `fielddata_fields` parameters. +// API name: fields +func (r *Termvectors) Fields(fields ...string) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Fields = fields + + return r +} + // Filter terms based on their tf-idf scores. // This could be useful in order find out a good characteristic vector of a // document. @@ -637,6 +583,32 @@ func (r *Termvectors) Filter(filter types.TermVectorsFilterVariant) *Termvectors return r } +// If `true`, the response includes term offsets. +// API name: offsets +func (r *Termvectors) Offsets(offsets bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Offsets = &offsets + + return r +} + +// If `true`, the response includes term payloads. +// API name: payloads +func (r *Termvectors) Payloads(payloads bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Payloads = &payloads + + return r +} + // Override the default per-field analyzer. // This is useful in order to generate term vectors in any fashion, especially // when using artificial documents. @@ -670,3 +642,73 @@ func (r *Termvectors) AddPerFieldAnalyzer(key string, value string) *Termvectors r.req.PerFieldAnalyzer = tmp return r } + +// If `true`, the response includes term positions. +// API name: positions +func (r *Termvectors) Positions(positions bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Positions = &positions + + return r +} + +// A custom value that is used to route operations to a specific shard. +// API name: routing +func (r *Termvectors) Routing(routing string) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Routing = &routing + + return r +} + +// If `true`, the response includes: +// +// * The total term frequency (how often a term occurs in all documents). +// * The document frequency (the number of documents containing the current +// term). +// +// By default these values are not returned since term statistics can have a +// serious performance impact. +// API name: term_statistics +func (r *Termvectors) TermStatistics(termstatistics bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TermStatistics = &termstatistics + + return r +} + +// If `true`, returns the document version as part of a hit. +// API name: version +func (r *Termvectors) Version(versionnumber int64) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Version = &versionnumber + + return r +} + +// The version type. +// API name: version_type +func (r *Termvectors) VersionType(versiontype versiontype.VersionType) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.VersionType = &versiontype + return r +} diff --git a/typedapi/core/update/request.go b/typedapi/core/update/request.go index 39f6da0b90..db6fe75806 100644 --- a/typedapi/core/update/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package update @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/update/UpdateRequest.ts#L38-L194 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/update/UpdateRequest.ts#L38-L194 type Request struct { // DetectNoop If `true`, the `result` in the response is set to `noop` (no operation) when diff --git a/typedapi/core/update/response.go b/typedapi/core/update/response.go index e1ee8937fe..fc33ed3ed7 100644 --- a/typedapi/core/update/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package update @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/update/UpdateResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/core/update/update.go b/typedapi/core/update/update.go index fcecfef902..f2be12f48c 100644 --- a/typedapi/core/update/update.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update a document. // diff --git a/typedapi/core/updatebyquery/request.go b/typedapi/core/updatebyquery/request.go index cc7e9ac4b1..3b01b05051 100644 --- a/typedapi/core/updatebyquery/request.go +++ b/typedapi/core/updatebyquery/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatebyquery @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L336 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L340 type Request struct { // Conflicts The preferred behavior when update by query hits version conflicts: `abort` diff --git a/typedapi/core/updatebyquery/response.go b/typedapi/core/updatebyquery/response.go index 1defb1816a..d5e79b1d0b 100644 --- a/typedapi/core/updatebyquery/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatebyquery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/update_by_query/UpdateByQueryResponse.ts#L26-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/update_by_query/UpdateByQueryResponse.ts#L26-L67 type Response struct { // Batches The number of scroll responses pulled back by the update by query. diff --git a/typedapi/core/updatebyquery/update_by_query.go b/typedapi/core/updatebyquery/update_by_query.go index 399cab4361..ece77f5333 100644 --- a/typedapi/core/updatebyquery/update_by_query.go +++ b/typedapi/core/updatebyquery/update_by_query.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update documents. // Updates documents that match the specified query. @@ -659,7 +659,7 @@ func (r *UpdateByQuery) ExpandWildcards(expandwildcards ...expandwildcard.Expand return r } -// From Starting offset (default: 0) +// From Skips the specified number of documents. // API name: from func (r *UpdateByQuery) From(from string) *UpdateByQuery { r.values.Set("from", from) diff --git a/typedapi/core/updatebyqueryrethrottle/response.go b/typedapi/core/updatebyqueryrethrottle/response.go index 204a07bacd..c823ba03c3 100644 --- a/typedapi/core/updatebyqueryrethrottle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatebyqueryrethrottle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25 type Response struct { Nodes map[string]types.UpdateByQueryRethrottleNode `json:"nodes"` } diff --git a/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go b/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go index eda6f44ab9..f2234272d6 100644 --- a/typedapi/core/updatebyqueryrethrottle/update_by_query_rethrottle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Throttle an update by query operation. // diff --git a/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go b/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go index c4bc745794..db0a688afd 100644 --- a/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a dangling index. // If Elasticsearch encounters index data that is absent from the current diff --git a/typedapi/danglingindices/deletedanglingindex/response.go b/typedapi/danglingindices/deletedanglingindex/response.go index 914a1825eb..53fc8db9da 100644 --- a/typedapi/danglingindices/deletedanglingindex/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletedanglingindex // Response holds the response body struct for the package deletedanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/danglingindices/importdanglingindex/import_dangling_index.go b/typedapi/danglingindices/importdanglingindex/import_dangling_index.go index b0c7cbb093..05e79fda3f 100644 --- a/typedapi/danglingindices/importdanglingindex/import_dangling_index.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Import a dangling index. // diff --git a/typedapi/danglingindices/importdanglingindex/response.go b/typedapi/danglingindices/importdanglingindex/response.go index 9520a0823c..efefbeb871 100644 --- a/typedapi/danglingindices/importdanglingindex/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package importdanglingindex // Response holds the response body struct for the package importdanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go b/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go index 1f9b949b92..a71b748276 100644 --- a/typedapi/danglingindices/listdanglingindices/list_dangling_indices.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the dangling indices. // diff --git a/typedapi/danglingindices/listdanglingindices/response.go b/typedapi/danglingindices/listdanglingindices/response.go index 0f6b08a17b..f8930329c7 100644 --- a/typedapi/danglingindices/listdanglingindices/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package listdanglingindices @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package listdanglingindices // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27 type Response struct { DanglingIndices []types.DanglingIndex `json:"dangling_indices"` } diff --git a/typedapi/enrich/deletepolicy/delete_policy.go b/typedapi/enrich/deletepolicy/delete_policy.go index bf3dbc7d1b..c068ccb22e 100644 --- a/typedapi/enrich/deletepolicy/delete_policy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an enrich policy. // Deletes an existing enrich policy and its enrich index. diff --git a/typedapi/enrich/deletepolicy/response.go b/typedapi/enrich/deletepolicy/response.go index 290523fc73..67d9cac1ac 100644 --- a/typedapi/enrich/deletepolicy/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletepolicy // Response holds the response body struct for the package deletepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/enrich/executepolicy/execute_policy.go b/typedapi/enrich/executepolicy/execute_policy.go index c50f47e1bf..f61c0cc8c0 100644 --- a/typedapi/enrich/executepolicy/execute_policy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run an enrich policy. // Create the enrich index for an existing enrich policy. diff --git a/typedapi/enrich/executepolicy/response.go b/typedapi/enrich/executepolicy/response.go index b34a54e343..2bbb3abcdd 100644 --- a/typedapi/enrich/executepolicy/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package executepolicy @@ -26,10 +26,10 @@ import ( // Response holds the response body struct for the package executepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28 type Response struct { Status *types.ExecuteEnrichPolicyStatus `json:"status,omitempty"` - TaskId types.TaskId `json:"task_id,omitempty"` + Task types.TaskId `json:"task,omitempty"` } // NewResponse returns a Response diff --git a/typedapi/enrich/getpolicy/get_policy.go b/typedapi/enrich/getpolicy/get_policy.go index 4e1545bd7f..c19bfe79da 100644 --- a/typedapi/enrich/getpolicy/get_policy.go +++ b/typedapi/enrich/getpolicy/get_policy.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get an enrich policy. // Returns information about an enrich policy. diff --git a/typedapi/enrich/getpolicy/response.go b/typedapi/enrich/getpolicy/response.go index 7d569fafbd..3fd2bc330a 100644 --- a/typedapi/enrich/getpolicy/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getpolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24 type Response struct { Policies []types.Summary `json:"policies"` } diff --git a/typedapi/enrich/putpolicy/put_policy.go b/typedapi/enrich/putpolicy/put_policy.go index 8959d0dfbf..6ac71b6590 100644 --- a/typedapi/enrich/putpolicy/put_policy.go +++ b/typedapi/enrich/putpolicy/put_policy.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create an enrich policy. // Creates an enrich policy. diff --git a/typedapi/enrich/putpolicy/request.go b/typedapi/enrich/putpolicy/request.go index e53163f90b..1abd53e9c9 100644 --- a/typedapi/enrich/putpolicy/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putpolicy @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L67 type Request struct { // GeoMatch Matches enrich data to incoming documents based on a `geo_shape` query. diff --git a/typedapi/enrich/putpolicy/response.go b/typedapi/enrich/putpolicy/response.go index d3d307d205..5a43542567 100644 --- a/typedapi/enrich/putpolicy/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putpolicy // Response holds the response body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/enrich/stats/response.go b/typedapi/enrich/stats/response.go index e38e537ba3..0edfde5265 100644 --- a/typedapi/enrich/stats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/stats/EnrichStatsResponse.ts#L22-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/enrich/stats/stats.go b/typedapi/enrich/stats/stats.go index 0e4d5140f0..80a1c70a10 100644 --- a/typedapi/enrich/stats/stats.go +++ b/typedapi/enrich/stats/stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get enrich stats. // Returns enrich coordinator statistics and information about enrich policies diff --git a/typedapi/eql/delete/delete.go b/typedapi/eql/delete/delete.go index 55ce0a9280..16ff29efdf 100644 --- a/typedapi/eql/delete/delete.go +++ b/typedapi/eql/delete/delete.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an async EQL search. // Delete an async EQL search or a stored synchronous EQL search. diff --git a/typedapi/eql/delete/response.go b/typedapi/eql/delete/response.go index 9656f2d0ad..2d507514eb 100644 --- a/typedapi/eql/delete/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/delete/EqlDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/eql/get/get.go b/typedapi/eql/get/get.go index 7c654a189c..c52f0ecea6 100644 --- a/typedapi/eql/get/get.go +++ b/typedapi/eql/get/get.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get async EQL search results. // Get the current status and available results for an async EQL search or a diff --git a/typedapi/eql/get/response.go b/typedapi/eql/get/response.go index 54df07e792..4ace326741 100644 --- a/typedapi/eql/get/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/get/EqlGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/eql/get/EqlGetResponse.ts#L22-L24 type Response struct { // Hits Contains matching events and sequences. Also contains related metadata. diff --git a/typedapi/eql/getstatus/get_status.go b/typedapi/eql/getstatus/get_status.go index abe1d6267c..6952f03890 100644 --- a/typedapi/eql/getstatus/get_status.go +++ b/typedapi/eql/getstatus/get_status.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the async EQL status. // Get the current status for an async EQL search or a stored synchronous EQL diff --git a/typedapi/eql/getstatus/response.go b/typedapi/eql/getstatus/response.go index ca9e446f73..7b4945fb76 100644 --- a/typedapi/eql/getstatus/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getstatus // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/get_status/EqlGetStatusResponse.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/eql/search/request.go b/typedapi/eql/search/request.go index e33b969275..9f76454786 100644 --- a/typedapi/eql/search/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package search @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/search/EqlSearchRequest.ts#L28-L161 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/eql/search/EqlSearchRequest.ts#L28-L161 type Request struct { // AllowPartialSearchResults Allow query execution also in case of shard failures. diff --git a/typedapi/eql/search/response.go b/typedapi/eql/search/response.go index 11fdf47a39..3439601650 100644 --- a/typedapi/eql/search/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package search @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/search/EqlSearchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/eql/search/EqlSearchResponse.ts#L22-L24 type Response struct { // Hits Contains matching events and sequences. Also contains related metadata. diff --git a/typedapi/eql/search/search.go b/typedapi/eql/search/search.go index 7450438cb8..0f88d475fb 100644 --- a/typedapi/eql/search/search.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get EQL search results. // Returns search results for an Event Query Language (EQL) query. diff --git a/typedapi/esql/asyncquery/async_query.go b/typedapi/esql/asyncquery/async_query.go index f32d1f194a..68564c8436 100644 --- a/typedapi/esql/asyncquery/async_query.go +++ b/typedapi/esql/asyncquery/async_query.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run an async ES|QL query. // Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its @@ -301,6 +301,15 @@ func (r *AsyncQuery) Header(key, value string) *AsyncQuery { return r } +// AllowPartialResults If `true`, partial results will be returned if there are shard failures, but +// the query can continue to execute on other clusters and shards. +// API name: allow_partial_results +func (r *AsyncQuery) AllowPartialResults(allowpartialresults bool) *AsyncQuery { + r.values.Set("allow_partial_results", strconv.FormatBool(allowpartialresults)) + + return r +} + // Delimiter The character to use between values within a CSV row. // It is valid only for the CSV format. // API name: delimiter @@ -354,18 +363,6 @@ func (r *AsyncQuery) KeepOnCompletion(keeponcompletion bool) *AsyncQuery { return r } -// WaitForCompletionTimeout The period to wait for the request to finish. -// By default, the request waits for 1 second for the query results. -// If the query completes during this period, results are returned -// Otherwise, a query ID is returned that can later be used to retrieve the -// results. -// API name: wait_for_completion_timeout -func (r *AsyncQuery) WaitForCompletionTimeout(duration string) *AsyncQuery { - r.values.Set("wait_for_completion_timeout", duration) - - return r -} - // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace @@ -529,3 +526,20 @@ func (r *AsyncQuery) Tables(tables map[string]map[string]types.TableValuesContai r.req.Tables = tables return r } + +// The period to wait for the request to finish. +// By default, the request waits for 1 second for the query results. +// If the query completes during this period, results are returned +// Otherwise, a query ID is returned that can later be used to retrieve the +// results. +// API name: wait_for_completion_timeout +func (r *AsyncQuery) WaitForCompletionTimeout(duration types.DurationVariant) *AsyncQuery { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.WaitForCompletionTimeout = *duration.DurationCaster() + + return r +} diff --git a/typedapi/esql/asyncquery/request.go b/typedapi/esql/asyncquery/request.go index b1523cadbb..5657c238ac 100644 --- a/typedapi/esql/asyncquery/request.go +++ b/typedapi/esql/asyncquery/request.go @@ -16,20 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package asyncquery 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 asyncquery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/async_query/AsyncQueryRequest.ts#L28-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/async_query/AsyncQueryRequest.ts#L28-L138 type Request struct { // Columnar By default, ES|QL returns results as rows. For example, FROM returns each @@ -64,6 +68,12 @@ type Request struct { // Tables Tables to use with the LOOKUP operation. The top level key is the table // name and the next level key is the column name. Tables map[string]map[string]types.TableValuesContainer `json:"tables,omitempty"` + // WaitForCompletionTimeout The period to wait for the request to finish. + // By default, the request waits for 1 second for the query results. + // If the query completes during this period, results are returned + // Otherwise, a query ID is returned that can later be used to retrieve the + // results. + WaitForCompletionTimeout types.Duration `json:"wait_for_completion_timeout,omitempty"` } // NewRequest returns a Request @@ -86,3 +96,111 @@ 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 "columnar": + 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", "Columnar", err) + } + s.Columnar = &value + case bool: + s.Columnar = &v + } + + case "filter": + if err := dec.Decode(&s.Filter); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + + case "include_ccs_metadata": + 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", "IncludeCcsMetadata", err) + } + s.IncludeCcsMetadata = &value + case bool: + s.IncludeCcsMetadata = &v + } + + case "locale": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Locale", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Locale = &o + + case "params": + if err := dec.Decode(&s.Params); err != nil { + return fmt.Errorf("%s | %w", "Params", err) + } + + case "profile": + 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", "Profile", err) + } + s.Profile = &value + case bool: + s.Profile = &v + } + + 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 "tables": + if s.Tables == nil { + s.Tables = make(map[string]map[string]types.TableValuesContainer, 0) + } + if err := dec.Decode(&s.Tables); err != nil { + return fmt.Errorf("%s | %w", "Tables", err) + } + + case "wait_for_completion_timeout": + if err := dec.Decode(&s.WaitForCompletionTimeout); err != nil { + return fmt.Errorf("%s | %w", "WaitForCompletionTimeout", err) + } + + } + } + return nil +} diff --git a/typedapi/esql/asyncquery/response.go b/typedapi/esql/asyncquery/response.go index dc473437b6..f66d984421 100644 --- a/typedapi/esql/asyncquery/response.go +++ b/typedapi/esql/asyncquery/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/509f88ad09a267354d02bf5f9e960503fa9236b7 package asyncquery -// Response holds the response body struct for the package asyncquery +// Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/async_query/AsyncQueryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/509f88ad09a267354d02bf5f9e960503fa9236b7/specification/esql/query/QueryResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/esql/asyncquerydelete/async_query_delete.go b/typedapi/esql/asyncquerydelete/async_query_delete.go index 4cd3c00531..a1298278a2 100644 --- a/typedapi/esql/asyncquerydelete/async_query_delete.go +++ b/typedapi/esql/asyncquerydelete/async_query_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an async ES|QL query. // If the query is still running, it is cancelled. diff --git a/typedapi/esql/asyncquerydelete/response.go b/typedapi/esql/asyncquerydelete/response.go index 0a64b6b0c0..8188c10c12 100644 --- a/typedapi/esql/asyncquerydelete/response.go +++ b/typedapi/esql/asyncquerydelete/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package asyncquerydelete // Response holds the response body struct for the package asyncquerydelete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/async_query_delete/AsyncQueryDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/async_query_delete/AsyncQueryDeleteResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/esql/asyncqueryget/async_query_get.go b/typedapi/esql/asyncqueryget/async_query_get.go index 99557ecb88..9374a58af7 100644 --- a/typedapi/esql/asyncqueryget/async_query_get.go +++ b/typedapi/esql/asyncqueryget/async_query_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get async ES|QL query results. // Get the current status and available results or stored results for an ES|QL diff --git a/typedapi/esql/asyncqueryget/response.go b/typedapi/esql/asyncqueryget/response.go index 6c6ce23131..d4fe0c31e5 100644 --- a/typedapi/esql/asyncqueryget/response.go +++ b/typedapi/esql/asyncqueryget/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/509f88ad09a267354d02bf5f9e960503fa9236b7 package asyncqueryget -// Response holds the response body struct for the package asyncqueryget +// Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/async_query_get/AsyncQueryGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/509f88ad09a267354d02bf5f9e960503fa9236b7/specification/esql/query/QueryResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/esql/asyncquerystop/async_query_stop.go b/typedapi/esql/asyncquerystop/async_query_stop.go index bf32f5c4bf..9a13195690 100644 --- a/typedapi/esql/asyncquerystop/async_query_stop.go +++ b/typedapi/esql/asyncquerystop/async_query_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop async ES|QL query. // diff --git a/typedapi/esql/asyncquerystop/response.go b/typedapi/esql/asyncquerystop/response.go index b8f7b7ff6f..d632617938 100644 --- a/typedapi/esql/asyncquerystop/response.go +++ b/typedapi/esql/asyncquerystop/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/509f88ad09a267354d02bf5f9e960503fa9236b7 package asyncquerystop -// Response holds the response body struct for the package asyncquerystop +// Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/async_query_stop/AsyncQueryStopResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/509f88ad09a267354d02bf5f9e960503fa9236b7/specification/esql/query/QueryResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/esql/query/query.go b/typedapi/esql/query/query.go index 68d8b437b9..b392761885 100644 --- a/typedapi/esql/query/query.go +++ b/typedapi/esql/query/query.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run an ES|QL query. // Get search results for an ES|QL (Elasticsearch query language) query. @@ -319,6 +319,15 @@ func (r *Query) DropNullColumns(dropnullcolumns bool) *Query { return r } +// AllowPartialResults If `true`, partial results will be returned if there are shard failures, but +// the query can continue to execute on other clusters and shards. +// API name: allow_partial_results +func (r *Query) AllowPartialResults(allowpartialresults bool) *Query { + r.values.Set("allow_partial_results", strconv.FormatBool(allowpartialresults)) + + 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/typedapi/esql/query/request.go b/typedapi/esql/query/request.go index 54cb52f6dd..ea2327d6de 100644 --- a/typedapi/esql/query/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package query @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/query/QueryRequest.ts#L27-L105 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/query/QueryRequest.ts#L27-L110 type Request struct { // Columnar By default, ES|QL returns results as rows. For example, FROM returns each diff --git a/typedapi/esql/query/response.go b/typedapi/esql/query/response.go index ab75c2ae4f..e8ac65dc67 100644 --- a/typedapi/esql/query/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/509f88ad09a267354d02bf5f9e960503fa9236b7 package query // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/query/QueryResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/509f88ad09a267354d02bf5f9e960503fa9236b7/specification/esql/query/QueryResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/features/getfeatures/get_features.go b/typedapi/features/getfeatures/get_features.go index a16d9746aa..c0bb793e38 100644 --- a/typedapi/features/getfeatures/get_features.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the features. // Get a list of features that can be included in snapshots using the diff --git a/typedapi/features/getfeatures/response.go b/typedapi/features/getfeatures/response.go index a6e72fa6b7..2cce7b8bf0 100644 --- a/typedapi/features/getfeatures/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getfeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/features/get_features/GetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/features/get_features/GetFeaturesResponse.ts#L22-L26 type Response struct { Features []types.Feature `json:"features"` } diff --git a/typedapi/features/resetfeatures/reset_features.go b/typedapi/features/resetfeatures/reset_features.go index dec485f373..3a16b9d21e 100644 --- a/typedapi/features/resetfeatures/reset_features.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Reset the features. // Clear all of the state information stored in system indices by Elasticsearch diff --git a/typedapi/features/resetfeatures/response.go b/typedapi/features/resetfeatures/response.go index 8edf2245e6..7a5338feae 100644 --- a/typedapi/features/resetfeatures/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package resetfeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resetfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/features/reset_features/ResetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/features/reset_features/ResetFeaturesResponse.ts#L22-L26 type Response struct { Features []types.Feature `json:"features"` } diff --git a/typedapi/fleet/globalcheckpoints/global_checkpoints.go b/typedapi/fleet/globalcheckpoints/global_checkpoints.go index e4855dc676..3970d9bd9d 100644 --- a/typedapi/fleet/globalcheckpoints/global_checkpoints.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get global checkpoints. // diff --git a/typedapi/fleet/globalcheckpoints/response.go b/typedapi/fleet/globalcheckpoints/response.go index 7f4daa2248..7e7d143b15 100644 --- a/typedapi/fleet/globalcheckpoints/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package globalcheckpoints // Response holds the response body struct for the package globalcheckpoints // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27 type Response struct { GlobalCheckpoints []int64 `json:"global_checkpoints"` TimedOut bool `json:"timed_out"` diff --git a/typedapi/fleet/msearch/msearch.go b/typedapi/fleet/msearch/msearch.go index 866a5cefa4..9f7ba8fd37 100644 --- a/typedapi/fleet/msearch/msearch.go +++ b/typedapi/fleet/msearch/msearch.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Executes several [fleet // searches](https://www.elastic.co/guide/en/elasticsearch/reference/current/fleet-search.html) diff --git a/typedapi/fleet/msearch/request.go b/typedapi/fleet/msearch/request.go index 0d1101fa17..2f3270c1b3 100644 --- a/typedapi/fleet/msearch/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package msearch @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/fleet/msearch/MultiSearchRequest.ts#L31-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/fleet/msearch/MultiSearchRequest.ts#L31-L125 type Request = []types.MsearchRequestItem diff --git a/typedapi/fleet/msearch/response.go b/typedapi/fleet/msearch/response.go index e9584ac0e1..671b5bc4af 100644 --- a/typedapi/fleet/msearch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package msearch @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29 type Response struct { Docs []types.MsearchResponseItem `json:"docs"` } diff --git a/typedapi/fleet/postsecret/post_secret.go b/typedapi/fleet/postsecret/post_secret.go index bbe07ec606..502e7ba95e 100644 --- a/typedapi/fleet/postsecret/post_secret.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Creates a secret stored by Fleet. package postsecret diff --git a/typedapi/fleet/search/request.go b/typedapi/fleet/search/request.go index 88819a159a..27bbcb9ccd 100644 --- a/typedapi/fleet/search/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package search @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/fleet/search/SearchRequest.ts#L55-L267 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/fleet/search/SearchRequest.ts#L55-L267 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` @@ -57,7 +57,7 @@ type Request struct { // IndicesBoost Boosts the _score of documents from specified indices. IndicesBoost []map[string]types.Float64 `json:"indices_boost,omitempty"` // MinScore Minimum _score for matching documents. Documents with a lower _score are - // not included in the search results. + // not included in search results and results collected by aggregations. MinScore *types.Float64 `json:"min_score,omitempty"` // Pit Limits the search to a point in time (PIT). If you provide a PIT, you // cannot specify an in the request path. diff --git a/typedapi/fleet/search/response.go b/typedapi/fleet/search/response.go index b9c3296369..7076c1055e 100644 --- a/typedapi/fleet/search/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/fleet/search/SearchResponse.ts#L33-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/fleet/search/search.go b/typedapi/fleet/search/search.go index d34fd3fd76..e1de7d3123 100644 --- a/typedapi/fleet/search/search.go +++ b/typedapi/fleet/search/search.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // The purpose of the fleet search api is to provide a search api where the // search will only be executed @@ -761,7 +761,7 @@ func (r *Search) IndicesBoost(indicesboost []map[string]types.Float64) *Search { } // Minimum _score for matching documents. Documents with a lower _score are -// not included in the search results. +// not included in search results and results collected by aggregations. // API name: min_score func (r *Search) MinScore(minscore types.Float64) *Search { // Initialize the request if it is not already initialized diff --git a/typedapi/graph/explore/explore.go b/typedapi/graph/explore/explore.go index b3bfa52d31..9e39b4dae1 100644 --- a/typedapi/graph/explore/explore.go +++ b/typedapi/graph/explore/explore.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Explore graph analytics. // Extract and summarize information about the documents and terms in an diff --git a/typedapi/graph/explore/request.go b/typedapi/graph/explore/request.go index 0ecd44025e..cdb124e8ba 100644 --- a/typedapi/graph/explore/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package explore @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/explore/GraphExploreRequest.ts#L28-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/graph/explore/GraphExploreRequest.ts#L28-L84 type Request struct { // Connections Specifies or more fields from which you want to extract terms that are diff --git a/typedapi/graph/explore/response.go b/typedapi/graph/explore/response.go index 83506b469a..2f080e8d0f 100644 --- a/typedapi/graph/explore/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package explore @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/explore/GraphExploreResponse.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/graph/explore/GraphExploreResponse.ts#L25-L33 type Response struct { Connections []types.Connection `json:"connections"` Failures []types.ShardFailure `json:"failures"` diff --git a/typedapi/ilm/deletelifecycle/delete_lifecycle.go b/typedapi/ilm/deletelifecycle/delete_lifecycle.go index 0de7dbb58e..9a0556bd3e 100644 --- a/typedapi/ilm/deletelifecycle/delete_lifecycle.go +++ b/typedapi/ilm/deletelifecycle/delete_lifecycle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a lifecycle policy. // You cannot delete policies that are currently in use. If the policy is being diff --git a/typedapi/ilm/deletelifecycle/response.go b/typedapi/ilm/deletelifecycle/response.go index 7bb6b83f9c..1f5356d610 100644 --- a/typedapi/ilm/deletelifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ilm/explainlifecycle/explain_lifecycle.go b/typedapi/ilm/explainlifecycle/explain_lifecycle.go index 9eb30871db..2203169097 100644 --- a/typedapi/ilm/explainlifecycle/explain_lifecycle.go +++ b/typedapi/ilm/explainlifecycle/explain_lifecycle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Explain the lifecycle state. // Get the current lifecycle status for one or more indices. diff --git a/typedapi/ilm/explainlifecycle/response.go b/typedapi/ilm/explainlifecycle/response.go index 5cfd11deb7..f950e489c2 100644 --- a/typedapi/ilm/explainlifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package explainlifecycle @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package explainlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28 type Response struct { Indices map[string]types.LifecycleExplain `json:"indices"` } diff --git a/typedapi/ilm/getlifecycle/get_lifecycle.go b/typedapi/ilm/getlifecycle/get_lifecycle.go index 9ba2b166b1..22da18f399 100644 --- a/typedapi/ilm/getlifecycle/get_lifecycle.go +++ b/typedapi/ilm/getlifecycle/get_lifecycle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get lifecycle policies. package getlifecycle diff --git a/typedapi/ilm/getlifecycle/response.go b/typedapi/ilm/getlifecycle/response.go index b96c1a00ea..59741fbc19 100644 --- a/typedapi/ilm/getlifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getlifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26 type Response map[string]types.Lifecycle diff --git a/typedapi/ilm/getstatus/get_status.go b/typedapi/ilm/getstatus/get_status.go index 40e75e34db..4c0523f838 100644 --- a/typedapi/ilm/getstatus/get_status.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the ILM status. // diff --git a/typedapi/ilm/getstatus/response.go b/typedapi/ilm/getstatus/response.go index cbf7f06f77..d565fe555a 100644 --- a/typedapi/ilm/getstatus/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getstatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/get_status/GetIlmStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/get_status/GetIlmStatusResponse.ts#L22-L24 type Response struct { OperationMode lifecycleoperationmode.LifecycleOperationMode `json:"operation_mode"` } diff --git a/typedapi/ilm/migratetodatatiers/migrate_to_data_tiers.go b/typedapi/ilm/migratetodatatiers/migrate_to_data_tiers.go index 1a16c3aee9..1810d46949 100644 --- a/typedapi/ilm/migratetodatatiers/migrate_to_data_tiers.go +++ b/typedapi/ilm/migratetodatatiers/migrate_to_data_tiers.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Migrate to data tiers routing. // Switch the indices, ILM policies, and legacy, composable, and component diff --git a/typedapi/ilm/migratetodatatiers/request.go b/typedapi/ilm/migratetodatatiers/request.go index 3a90a843bc..8c4aca0d31 100644 --- a/typedapi/ilm/migratetodatatiers/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package migratetodatatiers @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/migrate_to_data_tiers/Request.ts#L22-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/migrate_to_data_tiers/Request.ts#L22-L61 type Request struct { LegacyTemplateToDelete *string `json:"legacy_template_to_delete,omitempty"` NodeAttribute *string `json:"node_attribute,omitempty"` diff --git a/typedapi/ilm/migratetodatatiers/response.go b/typedapi/ilm/migratetodatatiers/response.go index 15bfbbed80..3ad2415bdb 100644 --- a/typedapi/ilm/migratetodatatiers/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package migratetodatatiers @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L51 type Response struct { DryRun bool `json:"dry_run"` // MigratedComponentTemplates The component templates that were updated to not contain custom routing diff --git a/typedapi/ilm/movetostep/move_to_step.go b/typedapi/ilm/movetostep/move_to_step.go index 18d2936783..e54c5a70fa 100644 --- a/typedapi/ilm/movetostep/move_to_step.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Move to a lifecycle step. // Manually move an index into a specific step in the lifecycle policy and run diff --git a/typedapi/ilm/movetostep/request.go b/typedapi/ilm/movetostep/request.go index 978120e64d..1790849d03 100644 --- a/typedapi/ilm/movetostep/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package movetostep @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/move_to_step/MoveToStepRequest.ts#L24-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/move_to_step/MoveToStepRequest.ts#L24-L64 type Request struct { // CurrentStep The step that the index is expected to be in. diff --git a/typedapi/ilm/movetostep/response.go b/typedapi/ilm/movetostep/response.go index 818d9223fb..533675a643 100644 --- a/typedapi/ilm/movetostep/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package movetostep // Response holds the response body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/move_to_step/MoveToStepResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ilm/putlifecycle/put_lifecycle.go b/typedapi/ilm/putlifecycle/put_lifecycle.go index 84c485d886..50dc58b000 100644 --- a/typedapi/ilm/putlifecycle/put_lifecycle.go +++ b/typedapi/ilm/putlifecycle/put_lifecycle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a lifecycle policy. // If the specified policy exists, it is replaced and the policy version is diff --git a/typedapi/ilm/putlifecycle/request.go b/typedapi/ilm/putlifecycle/request.go index cc29293b54..64de9e5748 100644 --- a/typedapi/ilm/putlifecycle/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putlifecycle @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L66 type Request struct { Policy *types.IlmPolicy `json:"policy,omitempty"` } diff --git a/typedapi/ilm/putlifecycle/response.go b/typedapi/ilm/putlifecycle/response.go index c30e52d2f7..2426292a45 100644 --- a/typedapi/ilm/putlifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ilm/removepolicy/remove_policy.go b/typedapi/ilm/removepolicy/remove_policy.go index 7c608b06ff..03912fe017 100644 --- a/typedapi/ilm/removepolicy/remove_policy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Remove policies from an index. // Remove the assigned lifecycle policies from an index or a data stream's diff --git a/typedapi/ilm/removepolicy/response.go b/typedapi/ilm/removepolicy/response.go index ed9eaaa640..af227ce6bb 100644 --- a/typedapi/ilm/removepolicy/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package removepolicy // Response holds the response body struct for the package removepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/remove_policy/RemovePolicyResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/remove_policy/RemovePolicyResponse.ts#L22-L27 type Response struct { FailedIndexes []string `json:"failed_indexes"` HasFailures bool `json:"has_failures"` diff --git a/typedapi/ilm/retry/response.go b/typedapi/ilm/retry/response.go index d8855362be..843cfccfac 100644 --- a/typedapi/ilm/retry/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package retry // Response holds the response body struct for the package retry // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/retry/RetryIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ilm/retry/retry.go b/typedapi/ilm/retry/retry.go index 26ec40422b..b58bf79e6c 100644 --- a/typedapi/ilm/retry/retry.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Retry a policy. // Retry running the lifecycle policy for an index that is in the ERROR step. diff --git a/typedapi/ilm/start/response.go b/typedapi/ilm/start/response.go index adee9fdb83..c6f3f6da51 100644 --- a/typedapi/ilm/start/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/start/StartIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ilm/start/start.go b/typedapi/ilm/start/start.go index 50e1dfd47e..015550a7e5 100644 --- a/typedapi/ilm/start/start.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start the ILM plugin. // Start the index lifecycle management plugin if it is currently stopped. diff --git a/typedapi/ilm/stop/response.go b/typedapi/ilm/stop/response.go index dc928249ce..57c387f2b6 100644 --- a/typedapi/ilm/stop/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/stop/StopIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ilm/stop/stop.go b/typedapi/ilm/stop/stop.go index c038453be2..3c76b342cf 100644 --- a/typedapi/ilm/stop/stop.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop the ILM plugin. // Halt all lifecycle management operations and stop the index lifecycle diff --git a/typedapi/indices/addblock/add_block.go b/typedapi/indices/addblock/add_block.go index e4ac272d58..4655d02d6f 100644 --- a/typedapi/indices/addblock/add_block.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Add an index block. // diff --git a/typedapi/indices/addblock/response.go b/typedapi/indices/addblock/response.go index fb00899b54..3615a2f402 100644 --- a/typedapi/indices/addblock/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package addblock @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package addblock // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/add_block/IndicesAddBlockResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/add_block/IndicesAddBlockResponse.ts#L22-L28 type Response struct { Acknowledged bool `json:"acknowledged"` Indices []types.IndicesBlockStatus `json:"indices"` diff --git a/typedapi/indices/analyze/analyze.go b/typedapi/indices/analyze/analyze.go index 4317c3dcf2..9e94dc8c6f 100644 --- a/typedapi/indices/analyze/analyze.go +++ b/typedapi/indices/analyze/analyze.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get tokens from text analysis. // The analyze API performs analysis on a text string and returns the resulting diff --git a/typedapi/indices/analyze/request.go b/typedapi/indices/analyze/request.go index 11688cffd7..d6a0f1579e 100644 --- a/typedapi/indices/analyze/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package analyze @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L119 type Request struct { // Analyzer The name of the analyzer that should be applied to the provided `text`. diff --git a/typedapi/indices/analyze/response.go b/typedapi/indices/analyze/response.go index 6458bafd51..4184f0594c 100644 --- a/typedapi/indices/analyze/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package analyze @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/IndicesAnalyzeResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/cancelmigratereindex/cancel_migrate_reindex.go b/typedapi/indices/cancelmigratereindex/cancel_migrate_reindex.go index e32d67fc05..217f514d0a 100644 --- a/typedapi/indices/cancelmigratereindex/cancel_migrate_reindex.go +++ b/typedapi/indices/cancelmigratereindex/cancel_migrate_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Cancel a migration reindex operation. // diff --git a/typedapi/indices/cancelmigratereindex/response.go b/typedapi/indices/cancelmigratereindex/response.go index 150aa48131..810d2fd96a 100644 --- a/typedapi/indices/cancelmigratereindex/response.go +++ b/typedapi/indices/cancelmigratereindex/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package cancelmigratereindex // Response holds the response body struct for the package cancelmigratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/indices/clearcache/clear_cache.go b/typedapi/indices/clearcache/clear_cache.go index 6fa0d4fc73..9ed7cc15ec 100644 --- a/typedapi/indices/clearcache/clear_cache.go +++ b/typedapi/indices/clearcache/clear_cache.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear the cache. // Clear the cache of one or more indices. diff --git a/typedapi/indices/clearcache/response.go b/typedapi/indices/clearcache/response.go index d1ef0df2fd..fec9c68971 100644 --- a/typedapi/indices/clearcache/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearcache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24 type Response struct { Shards_ *types.ShardStatistics `json:"_shards,omitempty"` } diff --git a/typedapi/indices/clone/clone.go b/typedapi/indices/clone/clone.go index 9a6c350a5b..107fc38eab 100644 --- a/typedapi/indices/clone/clone.go +++ b/typedapi/indices/clone/clone.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clone an index. // Clone an existing index into a new index. diff --git a/typedapi/indices/clone/request.go b/typedapi/indices/clone/request.go index b23d912064..4fbd423efc 100644 --- a/typedapi/indices/clone/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clone @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/clone/IndicesCloneRequest.ts#L27-L127 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/clone/IndicesCloneRequest.ts#L27-L127 type Request struct { // Aliases Aliases for the resulting index. diff --git a/typedapi/indices/clone/response.go b/typedapi/indices/clone/response.go index cd04b93374..83c2632505 100644 --- a/typedapi/indices/clone/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/clone/IndicesCloneResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/clone/IndicesCloneResponse.ts#L22-L28 type Response struct { Acknowledged bool `json:"acknowledged"` Index string `json:"index"` diff --git a/typedapi/indices/close/close.go b/typedapi/indices/close/close.go index 07267c97f5..3f79799406 100644 --- a/typedapi/indices/close/close.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Close an index. // A closed index is blocked for read or write operations and does not allow all diff --git a/typedapi/indices/close/response.go b/typedapi/indices/close/response.go index 20ec58b3c1..4522e4ad5b 100644 --- a/typedapi/indices/close/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package close @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package close // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/close/CloseIndexResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/close/CloseIndexResponse.ts#L24-L30 type Response struct { Acknowledged bool `json:"acknowledged"` Indices map[string]types.CloseIndexResult `json:"indices"` diff --git a/typedapi/indices/create/create.go b/typedapi/indices/create/create.go index 1f60d80138..e6abc3af28 100644 --- a/typedapi/indices/create/create.go +++ b/typedapi/indices/create/create.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create an index. // You can use the create index API to add a new index to an Elasticsearch diff --git a/typedapi/indices/create/request.go b/typedapi/indices/create/request.go index de58f576e6..e239a6485f 100644 --- a/typedapi/indices/create/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package create @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/create/IndicesCreateRequest.ts#L28-L108 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/create/IndicesCreateRequest.ts#L28-L108 type Request struct { // Aliases Aliases for the index. diff --git a/typedapi/indices/create/response.go b/typedapi/indices/create/response.go index 478daf2a96..49cb98072b 100644 --- a/typedapi/indices/create/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package create // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/create/IndicesCreateResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/create/IndicesCreateResponse.ts#L22-L28 type Response struct { Acknowledged bool `json:"acknowledged"` Index string `json:"index"` diff --git a/typedapi/indices/createdatastream/create_data_stream.go b/typedapi/indices/createdatastream/create_data_stream.go index 87c7c69b86..21a9fdac34 100644 --- a/typedapi/indices/createdatastream/create_data_stream.go +++ b/typedapi/indices/createdatastream/create_data_stream.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a data stream. // diff --git a/typedapi/indices/createdatastream/response.go b/typedapi/indices/createdatastream/response.go index bc9fa4c4d4..005c33567f 100644 --- a/typedapi/indices/createdatastream/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createdatastream // Response holds the response body struct for the package createdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/createfrom/create_from.go b/typedapi/indices/createfrom/create_from.go index e0313c6a00..81eab86dff 100644 --- a/typedapi/indices/createfrom/create_from.go +++ b/typedapi/indices/createfrom/create_from.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create an index from a source index. // diff --git a/typedapi/indices/createfrom/request.go b/typedapi/indices/createfrom/request.go index b2d648a433..d47dc704d1 100644 --- a/typedapi/indices/createfrom/request.go +++ b/typedapi/indices/createfrom/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createfrom @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package createfrom // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/create_from/MigrateCreateFromRequest.ts#L25-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/create_from/MigrateCreateFromRequest.ts#L25-L44 type Request = types.CreateFrom // NewRequest returns a Request diff --git a/typedapi/indices/createfrom/response.go b/typedapi/indices/createfrom/response.go index 8c473b7399..248b19baee 100644 --- a/typedapi/indices/createfrom/response.go +++ b/typedapi/indices/createfrom/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createfrom // Response holds the response body struct for the package createfrom // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/create_from/MigrateCreateFromResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/create_from/MigrateCreateFromResponse.ts#L22-L28 type Response struct { Acknowledged bool `json:"acknowledged"` Index string `json:"index"` diff --git a/typedapi/indices/datastreamsstats/data_streams_stats.go b/typedapi/indices/datastreamsstats/data_streams_stats.go index 97b22c8b10..51535ed79d 100644 --- a/typedapi/indices/datastreamsstats/data_streams_stats.go +++ b/typedapi/indices/datastreamsstats/data_streams_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get data stream stats. // diff --git a/typedapi/indices/datastreamsstats/response.go b/typedapi/indices/datastreamsstats/response.go index 5766a43d20..6f7de19283 100644 --- a/typedapi/indices/datastreamsstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package datastreamsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package datastreamsstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/delete/delete.go b/typedapi/indices/delete/delete.go index b3eedcf255..71d876c6a1 100644 --- a/typedapi/indices/delete/delete.go +++ b/typedapi/indices/delete/delete.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete indices. // Deleting an index deletes its documents, shards, and metadata. diff --git a/typedapi/indices/delete/response.go b/typedapi/indices/delete/response.go index 48283819c3..990c9f6752 100644 --- a/typedapi/indices/delete/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/delete/IndicesDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/deletealias/delete_alias.go b/typedapi/indices/deletealias/delete_alias.go index 16bbf39198..a10d9c8944 100644 --- a/typedapi/indices/deletealias/delete_alias.go +++ b/typedapi/indices/deletealias/delete_alias.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an alias. // Removes a data stream or index from an alias. diff --git a/typedapi/indices/deletealias/response.go b/typedapi/indices/deletealias/response.go index 3d8dc51b47..34d1b132b9 100644 --- a/typedapi/indices/deletealias/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletealias // Response holds the response body struct for the package deletealias // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go b/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go index 3817baf9f3..86199b7734 100644 --- a/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go +++ b/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete data stream lifecycles. // Removes the data stream lifecycle from a data stream, rendering it not diff --git a/typedapi/indices/deletedatalifecycle/response.go b/typedapi/indices/deletedatalifecycle/response.go index 3f18cc43de..1393954a4e 100644 --- a/typedapi/indices/deletedatalifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletedatalifecycle // Response holds the response body struct for the package deletedatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/deletedatastream/delete_data_stream.go b/typedapi/indices/deletedatastream/delete_data_stream.go index 06c17ea3ec..204d0bd5f7 100644 --- a/typedapi/indices/deletedatastream/delete_data_stream.go +++ b/typedapi/indices/deletedatastream/delete_data_stream.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete data streams. // Deletes one or more data streams and their backing indices. diff --git a/typedapi/indices/deletedatastream/response.go b/typedapi/indices/deletedatastream/response.go index f301605775..cf8cb14aa6 100644 --- a/typedapi/indices/deletedatastream/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletedatastream // Response holds the response body struct for the package deletedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/deleteindextemplate/delete_index_template.go b/typedapi/indices/deleteindextemplate/delete_index_template.go index 4ad952039d..2757f46521 100644 --- a/typedapi/indices/deleteindextemplate/delete_index_template.go +++ b/typedapi/indices/deleteindextemplate/delete_index_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an index template. // The provided may contain multiple template names separated diff --git a/typedapi/indices/deleteindextemplate/response.go b/typedapi/indices/deleteindextemplate/response.go index 722bca4afa..29a13a9699 100644 --- a/typedapi/indices/deleteindextemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteindextemplate // Response holds the response body struct for the package deleteindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/deletetemplate/delete_template.go b/typedapi/indices/deletetemplate/delete_template.go index a25652705f..bb4d5b7b4c 100644 --- a/typedapi/indices/deletetemplate/delete_template.go +++ b/typedapi/indices/deletetemplate/delete_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a legacy index template. package deletetemplate diff --git a/typedapi/indices/deletetemplate/response.go b/typedapi/indices/deletetemplate/response.go index 6073f08353..e3529db45d 100644 --- a/typedapi/indices/deletetemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletetemplate // Response holds the response body struct for the package deletetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/diskusage/disk_usage.go b/typedapi/indices/diskusage/disk_usage.go index 24c57ca274..50799072e5 100644 --- a/typedapi/indices/diskusage/disk_usage.go +++ b/typedapi/indices/diskusage/disk_usage.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Analyze the index disk usage. // Analyze the disk usage of each field of an index or data stream. diff --git a/typedapi/indices/diskusage/response.go b/typedapi/indices/diskusage/response.go index 4df0f0dcd3..cf839846a6 100644 --- a/typedapi/indices/diskusage/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package diskusage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package diskusage // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25 type Response = json.RawMessage diff --git a/typedapi/indices/downsample/downsample.go b/typedapi/indices/downsample/downsample.go index b64def238c..a39fe21079 100644 --- a/typedapi/indices/downsample/downsample.go +++ b/typedapi/indices/downsample/downsample.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Downsample an index. // Aggregate a time series (TSDS) index and store pre-computed statistical diff --git a/typedapi/indices/downsample/request.go b/typedapi/indices/downsample/request.go index dc2821b5a6..eca3bac2db 100644 --- a/typedapi/indices/downsample/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package downsample @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/downsample/Request.ts#L24-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/downsample/Request.ts#L24-L58 type Request = types.DownsampleConfig // NewRequest returns a Request diff --git a/typedapi/indices/downsample/response.go b/typedapi/indices/downsample/response.go index bf7961170e..ab8ad2b4cb 100644 --- a/typedapi/indices/downsample/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package downsample @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/downsample/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/downsample/Response.ts#L22-L25 type Response = json.RawMessage diff --git a/typedapi/indices/exists/exists.go b/typedapi/indices/exists/exists.go index 9edea337a1..d6915db883 100644 --- a/typedapi/indices/exists/exists.go +++ b/typedapi/indices/exists/exists.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check indices. // Check if one or more indices, index aliases, or data streams exist. diff --git a/typedapi/indices/existsalias/exists_alias.go b/typedapi/indices/existsalias/exists_alias.go index 24e587e0a7..491c520dfc 100644 --- a/typedapi/indices/existsalias/exists_alias.go +++ b/typedapi/indices/existsalias/exists_alias.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check aliases. // diff --git a/typedapi/indices/existsindextemplate/exists_index_template.go b/typedapi/indices/existsindextemplate/exists_index_template.go index 6526108439..ba740c4276 100644 --- a/typedapi/indices/existsindextemplate/exists_index_template.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check index templates. // @@ -251,6 +251,23 @@ func (r *ExistsIndexTemplate) _name(name string) *ExistsIndexTemplate { return r } +// Local If true, the request retrieves information from the local node only. Defaults +// to false, which means information is retrieved from the master node. +// API name: local +func (r *ExistsIndexTemplate) Local(local bool) *ExistsIndexTemplate { + r.values.Set("local", strconv.FormatBool(local)) + + return r +} + +// FlatSettings If true, returns settings in flat format. +// API name: flat_settings +func (r *ExistsIndexTemplate) FlatSettings(flatsettings bool) *ExistsIndexTemplate { + r.values.Set("flat_settings", strconv.FormatBool(flatsettings)) + + return r +} + // MasterTimeout Period to wait for a connection to the master node. If no response is // received before the timeout expires, the request fails and returns an error. // API name: master_timeout diff --git a/typedapi/indices/existstemplate/exists_template.go b/typedapi/indices/existstemplate/exists_template.go index 00b9d7e04a..e410d32f9e 100644 --- a/typedapi/indices/existstemplate/exists_template.go +++ b/typedapi/indices/existstemplate/exists_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check existence of index templates. // Get information about whether index templates exist. diff --git a/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go b/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go index 947fed4a97..1eeace4408 100644 --- a/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the status for a data stream lifecycle. // Get information about an index or data stream's current data stream lifecycle diff --git a/typedapi/indices/explaindatalifecycle/response.go b/typedapi/indices/explaindatalifecycle/response.go index 2052dc66c5..306676e399 100644 --- a/typedapi/indices/explaindatalifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package explaindatalifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explaindatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29 type Response struct { Indices map[string]types.DataStreamLifecycleExplain `json:"indices"` } diff --git a/typedapi/indices/fieldusagestats/field_usage_stats.go b/typedapi/indices/fieldusagestats/field_usage_stats.go index faf763eb7b..273bd1be71 100644 --- a/typedapi/indices/fieldusagestats/field_usage_stats.go +++ b/typedapi/indices/fieldusagestats/field_usage_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get field usage stats. // Get field usage information for each shard and field of an index. @@ -363,17 +363,6 @@ func (r *FieldUsageStats) Fields(fields ...string) *FieldUsageStats { return r } -// WaitForActiveShards The number of shard copies that must be active before proceeding with the -// operation. -// Set to all or any positive integer up to the total number of shards in the -// index (`number_of_replicas+1`). -// API name: wait_for_active_shards -func (r *FieldUsageStats) WaitForActiveShards(waitforactiveshards string) *FieldUsageStats { - r.values.Set("wait_for_active_shards", waitforactiveshards) - - 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/typedapi/indices/fieldusagestats/response.go b/typedapi/indices/fieldusagestats/response.go index 7d47276b59..305e17d4b8 100644 --- a/typedapi/indices/fieldusagestats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package fieldusagestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package fieldusagestats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/flush/flush.go b/typedapi/indices/flush/flush.go index fe4d6315c9..54709566d5 100644 --- a/typedapi/indices/flush/flush.go +++ b/typedapi/indices/flush/flush.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Flush data streams or indices. // Flushing a data stream or index is the process of making sure that any data diff --git a/typedapi/indices/flush/response.go b/typedapi/indices/flush/response.go index d62b48ee4b..ea5450be97 100644 --- a/typedapi/indices/flush/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package flush @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package flush // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/flush/IndicesFlushResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/flush/IndicesFlushResponse.ts#L22-L24 type Response struct { Shards_ *types.ShardStatistics `json:"_shards,omitempty"` } diff --git a/typedapi/indices/forcemerge/forcemerge.go b/typedapi/indices/forcemerge/forcemerge.go index c56c5a0850..e49dc6afe5 100644 --- a/typedapi/indices/forcemerge/forcemerge.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Force a merge. // Perform the force merge operation on the shards of one or more indices. diff --git a/typedapi/indices/forcemerge/response.go b/typedapi/indices/forcemerge/response.go index cc79fe982a..ab8f4671fe 100644 --- a/typedapi/indices/forcemerge/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package forcemerge @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package forcemerge // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24 type Response struct { Shards_ *types.ShardStatistics `json:"_shards,omitempty"` // Task task contains a task id returned when wait_for_completion=false, diff --git a/typedapi/indices/get/get.go b/typedapi/indices/get/get.go index e61a8571c4..003d526757 100644 --- a/typedapi/indices/get/get.go +++ b/typedapi/indices/get/get.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index information. // Get information about one or more indices. For data streams, the API returns diff --git a/typedapi/indices/get/response.go b/typedapi/indices/get/response.go index 4410778326..fc63eed0b5 100644 --- a/typedapi/indices/get/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get/IndicesGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get/IndicesGetResponse.ts#L24-L27 type Response map[string]types.IndexState diff --git a/typedapi/indices/getalias/get_alias.go b/typedapi/indices/getalias/get_alias.go index 0dae6fb726..30df61c816 100644 --- a/typedapi/indices/getalias/get_alias.go +++ b/typedapi/indices/getalias/get_alias.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get aliases. // Retrieves information for one or more data stream or index aliases. diff --git a/typedapi/indices/getalias/response.go b/typedapi/indices/getalias/response.go index b5ff0dae55..603b5653c4 100644 --- a/typedapi/indices/getalias/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getalias @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getalias // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L35 type Response map[string]types.IndexAliases diff --git a/typedapi/indices/getdatalifecycle/get_data_lifecycle.go b/typedapi/indices/getdatalifecycle/get_data_lifecycle.go index 39017d0b29..976c3dc750 100644 --- a/typedapi/indices/getdatalifecycle/get_data_lifecycle.go +++ b/typedapi/indices/getdatalifecycle/get_data_lifecycle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get data stream lifecycles. // diff --git a/typedapi/indices/getdatalifecycle/response.go b/typedapi/indices/getdatalifecycle/response.go index 4c37aaa4a5..44159079ab 100644 --- a/typedapi/indices/getdatalifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getdatalifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25 type Response struct { DataStreams []types.DataStreamWithLifecycle `json:"data_streams"` } diff --git a/typedapi/indices/getdatalifecyclestats/get_data_lifecycle_stats.go b/typedapi/indices/getdatalifecyclestats/get_data_lifecycle_stats.go index 28a442e53d..f2e25b0074 100644 --- a/typedapi/indices/getdatalifecyclestats/get_data_lifecycle_stats.go +++ b/typedapi/indices/getdatalifecyclestats/get_data_lifecycle_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get data stream lifecycle stats. // Get statistics about the data streams that are managed by a data stream diff --git a/typedapi/indices/getdatalifecyclestats/response.go b/typedapi/indices/getdatalifecyclestats/response.go index ebfc3f7b75..6a10784bfe 100644 --- a/typedapi/indices/getdatalifecyclestats/response.go +++ b/typedapi/indices/getdatalifecyclestats/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getdatalifecyclestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatalifecyclestats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L24-L44 type Response struct { // DataStreamCount The count of data streams currently being managed by the data stream diff --git a/typedapi/indices/getdatastream/get_data_stream.go b/typedapi/indices/getdatastream/get_data_stream.go index cdb189ad0f..1a4c31d5db 100644 --- a/typedapi/indices/getdatastream/get_data_stream.go +++ b/typedapi/indices/getdatastream/get_data_stream.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get data streams. // diff --git a/typedapi/indices/getdatastream/response.go b/typedapi/indices/getdatastream/response.go index 72b10c4609..fe27b4146e 100644 --- a/typedapi/indices/getdatastream/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getdatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24 type Response struct { DataStreams []types.DataStream `json:"data_streams"` } diff --git a/typedapi/indices/getfieldmapping/get_field_mapping.go b/typedapi/indices/getfieldmapping/get_field_mapping.go index 762d8d03b7..bbfdf9c409 100644 --- a/typedapi/indices/getfieldmapping/get_field_mapping.go +++ b/typedapi/indices/getfieldmapping/get_field_mapping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get mapping definitions. // Retrieves mapping definitions for one or more fields. diff --git a/typedapi/indices/getfieldmapping/response.go b/typedapi/indices/getfieldmapping/response.go index 084f64f014..b625e08c3f 100644 --- a/typedapi/indices/getfieldmapping/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getfieldmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfieldmapping // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27 type Response map[string]types.TypeFieldMappings diff --git a/typedapi/indices/getindextemplate/get_index_template.go b/typedapi/indices/getindextemplate/get_index_template.go index fc96323a40..7af9966cb2 100644 --- a/typedapi/indices/getindextemplate/get_index_template.go +++ b/typedapi/indices/getindextemplate/get_index_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index templates. // Get information about one or more index templates. diff --git a/typedapi/indices/getindextemplate/response.go b/typedapi/indices/getindextemplate/response.go index e528ba0e0e..19cb9b369a 100644 --- a/typedapi/indices/getindextemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getindextemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27 type Response struct { IndexTemplates []types.IndexTemplateItem `json:"index_templates"` } diff --git a/typedapi/indices/getmapping/get_mapping.go b/typedapi/indices/getmapping/get_mapping.go index 50c0835e87..510af53b7d 100644 --- a/typedapi/indices/getmapping/get_mapping.go +++ b/typedapi/indices/getmapping/get_mapping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get mapping definitions. // For data streams, the API retrieves mappings for the stream’s backing diff --git a/typedapi/indices/getmapping/response.go b/typedapi/indices/getmapping/response.go index 65bbb016a3..2216b0e36e 100644 --- a/typedapi/indices/getmapping/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmapping // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27 type Response map[string]types.IndexMappingRecord diff --git a/typedapi/indices/getmigratereindexstatus/get_migrate_reindex_status.go b/typedapi/indices/getmigratereindexstatus/get_migrate_reindex_status.go index 66fbf45eb9..166d46e5aa 100644 --- a/typedapi/indices/getmigratereindexstatus/get_migrate_reindex_status.go +++ b/typedapi/indices/getmigratereindexstatus/get_migrate_reindex_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the migration reindexing status. // diff --git a/typedapi/indices/getmigratereindexstatus/response.go b/typedapi/indices/getmigratereindexstatus/response.go index 120ae9e545..be9be21122 100644 --- a/typedapi/indices/getmigratereindexstatus/response.go +++ b/typedapi/indices/getmigratereindexstatus/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getmigratereindexstatus @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package getmigratereindexstatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L23-L36 type Response struct { Complete bool `json:"complete"` Errors []types.StatusError `json:"errors"` diff --git a/typedapi/indices/getsettings/get_settings.go b/typedapi/indices/getsettings/get_settings.go index 6103c7a9e3..1a0b44fac8 100644 --- a/typedapi/indices/getsettings/get_settings.go +++ b/typedapi/indices/getsettings/get_settings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index settings. // Get setting information for one or more indices. diff --git a/typedapi/indices/getsettings/response.go b/typedapi/indices/getsettings/response.go index 05c07e98c2..8a748eda79 100644 --- a/typedapi/indices/getsettings/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27 type Response map[string]types.IndexState diff --git a/typedapi/indices/gettemplate/get_template.go b/typedapi/indices/gettemplate/get_template.go index dd425b9479..9ad18636bb 100644 --- a/typedapi/indices/gettemplate/get_template.go +++ b/typedapi/indices/gettemplate/get_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index templates. // Get information about one or more index templates. diff --git a/typedapi/indices/gettemplate/response.go b/typedapi/indices/gettemplate/response.go index 982796da44..9fcfeb3d14 100644 --- a/typedapi/indices/gettemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package gettemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_template/IndicesGetTemplateResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_template/IndicesGetTemplateResponse.ts#L23-L26 type Response map[string]types.TemplateMapping diff --git a/typedapi/indices/migratereindex/migrate_reindex.go b/typedapi/indices/migratereindex/migrate_reindex.go index 8e061a4dd4..9a6917d503 100644 --- a/typedapi/indices/migratereindex/migrate_reindex.go +++ b/typedapi/indices/migratereindex/migrate_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Reindex legacy backing indices. // diff --git a/typedapi/indices/migratereindex/request.go b/typedapi/indices/migratereindex/request.go index 4a4e269880..f168856751 100644 --- a/typedapi/indices/migratereindex/request.go +++ b/typedapi/indices/migratereindex/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package migratereindex @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package migratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L23-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L23-L37 type Request = types.MigrateReindex // NewRequest returns a Request diff --git a/typedapi/indices/migratereindex/response.go b/typedapi/indices/migratereindex/response.go index 486a53185e..a1c6fba769 100644 --- a/typedapi/indices/migratereindex/response.go +++ b/typedapi/indices/migratereindex/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package migratereindex // Response holds the response body struct for the package migratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/migrate_reindex/MigrateReindexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/migrate_reindex/MigrateReindexResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/indices/migratetodatastream/migrate_to_data_stream.go b/typedapi/indices/migratetodatastream/migrate_to_data_stream.go index dad172909b..0775fe6828 100644 --- a/typedapi/indices/migratetodatastream/migrate_to_data_stream.go +++ b/typedapi/indices/migratetodatastream/migrate_to_data_stream.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Convert an index alias to a data stream. // Converts an index alias to a data stream. diff --git a/typedapi/indices/migratetodatastream/response.go b/typedapi/indices/migratetodatastream/response.go index 43fb27127a..67a409729b 100644 --- a/typedapi/indices/migratetodatastream/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package migratetodatastream // Response holds the response body struct for the package migratetodatastream // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/modifydatastream/modify_data_stream.go b/typedapi/indices/modifydatastream/modify_data_stream.go index a34e8bcf95..3337573324 100644 --- a/typedapi/indices/modifydatastream/modify_data_stream.go +++ b/typedapi/indices/modifydatastream/modify_data_stream.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update data streams. // Performs one or more data stream modification actions in a single atomic diff --git a/typedapi/indices/modifydatastream/request.go b/typedapi/indices/modifydatastream/request.go index d08f4e2eb8..2db93ab48b 100644 --- a/typedapi/indices/modifydatastream/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package modifydatastream @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L45 type Request struct { // Actions Actions to perform. diff --git a/typedapi/indices/modifydatastream/response.go b/typedapi/indices/modifydatastream/response.go index 9115e96f6c..eea0726538 100644 --- a/typedapi/indices/modifydatastream/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package modifydatastream // Response holds the response body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/open/open.go b/typedapi/indices/open/open.go index 6e70d66321..1ae219019f 100644 --- a/typedapi/indices/open/open.go +++ b/typedapi/indices/open/open.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Open a closed index. // For data streams, the API opens any closed backing indices. diff --git a/typedapi/indices/open/response.go b/typedapi/indices/open/response.go index e296a44ca2..f27a325781 100644 --- a/typedapi/indices/open/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package open // Response holds the response body struct for the package open // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/open/IndicesOpenResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/open/IndicesOpenResponse.ts#L20-L25 type Response struct { Acknowledged bool `json:"acknowledged"` ShardsAcknowledged bool `json:"shards_acknowledged"` diff --git a/typedapi/indices/promotedatastream/promote_data_stream.go b/typedapi/indices/promotedatastream/promote_data_stream.go index f317555f29..1ff6bd6f96 100644 --- a/typedapi/indices/promotedatastream/promote_data_stream.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Promote a data stream. // Promote a data stream from a replicated data stream managed by cross-cluster diff --git a/typedapi/indices/promotedatastream/response.go b/typedapi/indices/promotedatastream/response.go index 609b1cd979..5c8fa04875 100644 --- a/typedapi/indices/promotedatastream/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package promotedatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package promotedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25 type Response = json.RawMessage diff --git a/typedapi/indices/putalias/put_alias.go b/typedapi/indices/putalias/put_alias.go index 7f0d9528f4..9128ea63ac 100644 --- a/typedapi/indices/putalias/put_alias.go +++ b/typedapi/indices/putalias/put_alias.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update an alias. // Adds a data stream or index to an alias. diff --git a/typedapi/indices/putalias/request.go b/typedapi/indices/putalias/request.go index 51a8006b76..6e6ef3705e 100644 --- a/typedapi/indices/putalias/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putalias @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L103 type Request struct { // Filter Query used to limit documents the alias can access. diff --git a/typedapi/indices/putalias/response.go b/typedapi/indices/putalias/response.go index b28fbcf484..a15357c3ff 100644 --- a/typedapi/indices/putalias/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putalias // Response holds the response body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_alias/IndicesPutAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/putdatalifecycle/put_data_lifecycle.go b/typedapi/indices/putdatalifecycle/put_data_lifecycle.go index d532000129..4c5d7494c6 100644 --- a/typedapi/indices/putdatalifecycle/put_data_lifecycle.go +++ b/typedapi/indices/putdatalifecycle/put_data_lifecycle.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update data stream lifecycles. // Update the data stream lifecycle of the specified data streams. diff --git a/typedapi/indices/putdatalifecycle/request.go b/typedapi/indices/putdatalifecycle/request.go index 5cdf4e5087..be20a440a5 100644 --- a/typedapi/indices/putdatalifecycle/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putdatalifecycle @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L93 type Request struct { // DataRetention If defined, every document added to this data stream will be stored at least diff --git a/typedapi/indices/putdatalifecycle/response.go b/typedapi/indices/putdatalifecycle/response.go index a35951d9dd..f6b4ddc7cc 100644 --- a/typedapi/indices/putdatalifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putdatalifecycle // Response holds the response body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/putindextemplate/put_index_template.go b/typedapi/indices/putindextemplate/put_index_template.go index 6c8ac91086..889c467fb4 100644 --- a/typedapi/indices/putindextemplate/put_index_template.go +++ b/typedapi/indices/putindextemplate/put_index_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update an index template. // Index templates define settings, mappings, and aliases that can be applied diff --git a/typedapi/indices/putindextemplate/request.go b/typedapi/indices/putindextemplate/request.go index c259a4da69..bdf977696f 100644 --- a/typedapi/indices/putindextemplate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putindextemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L157 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L157 type Request struct { // AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster diff --git a/typedapi/indices/putindextemplate/response.go b/typedapi/indices/putindextemplate/response.go index 89979cd346..6c7083262c 100644 --- a/typedapi/indices/putindextemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putindextemplate // Response holds the response body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/putmapping/put_mapping.go b/typedapi/indices/putmapping/put_mapping.go index 3117e0c0f4..b2bf913d52 100644 --- a/typedapi/indices/putmapping/put_mapping.go +++ b/typedapi/indices/putmapping/put_mapping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update field mappings. // Add new fields to an existing data stream or index. diff --git a/typedapi/indices/putmapping/request.go b/typedapi/indices/putmapping/request.go index 2a74902fd9..aa27331b64 100644 --- a/typedapi/indices/putmapping/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putmapping @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L41-L181 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L41-L181 type Request struct { // DateDetection Controls whether dynamic date detection is enabled. diff --git a/typedapi/indices/putmapping/response.go b/typedapi/indices/putmapping/response.go index de1df2e59c..2b3a173d44 100644 --- a/typedapi/indices/putmapping/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_mapping/IndicesPutMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/putsettings/put_settings.go b/typedapi/indices/putsettings/put_settings.go index 4c2b48f236..7eb538e63b 100644 --- a/typedapi/indices/putsettings/put_settings.go +++ b/typedapi/indices/putsettings/put_settings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update index settings. // Changes dynamic index settings in real time. @@ -427,6 +427,16 @@ func (r *PutSettings) PreserveExisting(preserveexisting bool) *PutSettings { return r } +// Reopen Whether to close and reopen the index to apply non-dynamic settings. +// If set to `true` the indices to which the settings are being applied +// will be closed temporarily and then reopened in order to apply the changes. +// API name: reopen +func (r *PutSettings) Reopen(reopen bool) *PutSettings { + r.values.Set("reopen", strconv.FormatBool(reopen)) + + return r +} + // Timeout Period to wait for a response. If no response is received before the // // timeout expires, the request fails and returns an error. diff --git a/typedapi/indices/putsettings/request.go b/typedapi/indices/putsettings/request.go index 5291a6bc6c..0ab5097fef 100644 --- a/typedapi/indices/putsettings/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putsettings @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L125 type Request = types.IndexSettings // NewRequest returns a Request diff --git a/typedapi/indices/putsettings/response.go b/typedapi/indices/putsettings/response.go index 84b56a07ea..7b4ace2986 100644 --- a/typedapi/indices/putsettings/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putsettings // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/puttemplate/put_template.go b/typedapi/indices/puttemplate/put_template.go index 818dc12817..cb22f01305 100644 --- a/typedapi/indices/puttemplate/put_template.go +++ b/typedapi/indices/puttemplate/put_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update an index template. // Index templates define settings, mappings, and aliases that can be applied @@ -390,6 +390,7 @@ func (r *PutTemplate) MasterTimeout(duration string) *PutTemplate { return r } +// Cause User defined reason for creating/updating the index template // API name: cause func (r *PutTemplate) Cause(cause string) *PutTemplate { r.values.Set("cause", cause) diff --git a/typedapi/indices/puttemplate/request.go b/typedapi/indices/puttemplate/request.go index a0482d7882..d9185c25a0 100644 --- a/typedapi/indices/puttemplate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L124 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L124 type Request struct { // Aliases Aliases for the index. diff --git a/typedapi/indices/puttemplate/response.go b/typedapi/indices/puttemplate/response.go index 415f88ab8d..8cf3639f5e 100644 --- a/typedapi/indices/puttemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttemplate // Response holds the response body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_template/IndicesPutTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/recovery/recovery.go b/typedapi/indices/recovery/recovery.go index 66cdf583e3..3fecc2f140 100644 --- a/typedapi/indices/recovery/recovery.go +++ b/typedapi/indices/recovery/recovery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index recovery information. // Get information about ongoing and completed shard recoveries for one or more diff --git a/typedapi/indices/recovery/response.go b/typedapi/indices/recovery/response.go index 7bd59e75b8..0f98a1479c 100644 --- a/typedapi/indices/recovery/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package recovery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/IndicesRecoveryResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/recovery/IndicesRecoveryResponse.ts#L24-L27 type Response map[string]types.RecoveryStatus diff --git a/typedapi/indices/refresh/refresh.go b/typedapi/indices/refresh/refresh.go index 00ed21e621..6b60f6b39c 100644 --- a/typedapi/indices/refresh/refresh.go +++ b/typedapi/indices/refresh/refresh.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Refresh an index. // A refresh makes recent operations performed on one or more indices available diff --git a/typedapi/indices/refresh/response.go b/typedapi/indices/refresh/response.go index dfa42bd829..9a41dba978 100644 --- a/typedapi/indices/refresh/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package refresh @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package refresh // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24 type Response struct { Shards_ *types.ShardStatistics `json:"_shards,omitempty"` } diff --git a/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go b/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go index bdea39c65e..d36ee226de 100644 --- a/typedapi/indices/reloadsearchanalyzers/reload_search_analyzers.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Reload search analyzers. // Reload an index's search analyzers and their resources. @@ -375,6 +375,14 @@ func (r *ReloadSearchAnalyzers) IgnoreUnavailable(ignoreunavailable bool) *Reloa return r } +// Resource Changed resource to reload analyzers from if applicable +// API name: resource +func (r *ReloadSearchAnalyzers) Resource(resource string) *ReloadSearchAnalyzers { + r.values.Set("resource", resource) + + 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/typedapi/indices/reloadsearchanalyzers/response.go b/typedapi/indices/reloadsearchanalyzers/response.go index ade2b4d1fe..c61369ecb4 100644 --- a/typedapi/indices/reloadsearchanalyzers/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package reloadsearchanalyzers @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reloadsearchanalyzers // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/resolvecluster/resolve_cluster.go b/typedapi/indices/resolvecluster/resolve_cluster.go index 9cd393f835..61fb9cceb0 100644 --- a/typedapi/indices/resolvecluster/resolve_cluster.go +++ b/typedapi/indices/resolvecluster/resolve_cluster.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Resolve the cluster. // diff --git a/typedapi/indices/resolvecluster/response.go b/typedapi/indices/resolvecluster/response.go index fc74bc6677..3b0f12da2e 100644 --- a/typedapi/indices/resolvecluster/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package resolvecluster @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resolvecluster // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27 type Response map[string]types.ResolveClusterInfo diff --git a/typedapi/indices/resolveindex/resolve_index.go b/typedapi/indices/resolveindex/resolve_index.go index baac96430a..a9fc997ad5 100644 --- a/typedapi/indices/resolveindex/resolve_index.go +++ b/typedapi/indices/resolveindex/resolve_index.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Resolve indices. // Resolve the names and/or index patterns for indices, aliases, and data diff --git a/typedapi/indices/resolveindex/response.go b/typedapi/indices/resolveindex/response.go index b2e33450d2..c629e03f0c 100644 --- a/typedapi/indices/resolveindex/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package resolveindex @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resolveindex // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/resolve_index/ResolveIndexResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/rollover/request.go b/typedapi/indices/rollover/request.go index 3f7ed01a95..812953431b 100644 --- a/typedapi/indices/rollover/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rollover @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L147 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L153 type Request struct { // Aliases Aliases for the target index. diff --git a/typedapi/indices/rollover/response.go b/typedapi/indices/rollover/response.go index a7468f1ea4..a659b6544c 100644 --- a/typedapi/indices/rollover/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rollover // Response holds the response body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/rollover/IndicesRolloverResponse.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/rollover/IndicesRolloverResponse.ts#L22-L32 type Response struct { Acknowledged bool `json:"acknowledged"` Conditions map[string]bool `json:"conditions"` diff --git a/typedapi/indices/rollover/rollover.go b/typedapi/indices/rollover/rollover.go index 743274fd42..52a91c553b 100644 --- a/typedapi/indices/rollover/rollover.go +++ b/typedapi/indices/rollover/rollover.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Roll over to a new index. // TIP: It is recommended to use the index lifecycle rollover action to automate @@ -490,6 +490,16 @@ func (r *Rollover) WaitForActiveShards(waitforactiveshards string) *Rollover { return r } +// Lazy If set to true, the rollover action will only mark a data stream to signal +// that it needs to be rolled over at the next write. +// Only allowed on data streams. +// API name: lazy +func (r *Rollover) Lazy(lazy bool) *Rollover { + r.values.Set("lazy", strconv.FormatBool(lazy)) + + 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/typedapi/indices/segments/response.go b/typedapi/indices/segments/response.go index 9e888bddb9..d97fd288a0 100644 --- a/typedapi/indices/segments/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package segments @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/segments/IndicesSegmentsResponse.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/segments/segments.go b/typedapi/indices/segments/segments.go index fd948cbef2..96b91b9b5c 100644 --- a/typedapi/indices/segments/segments.go +++ b/typedapi/indices/segments/segments.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index segments. // Get low-level information about the Lucene segments in index shards. diff --git a/typedapi/indices/shardstores/response.go b/typedapi/indices/shardstores/response.go index 5306ca0b65..7ac23c9366 100644 --- a/typedapi/indices/shardstores/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package shardstores @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package shardstores // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26 type Response struct { Indices map[string]types.IndicesShardStores `json:"indices"` } diff --git a/typedapi/indices/shardstores/shard_stores.go b/typedapi/indices/shardstores/shard_stores.go index 798f923e35..8debe0661f 100644 --- a/typedapi/indices/shardstores/shard_stores.go +++ b/typedapi/indices/shardstores/shard_stores.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index shard stores. // Get store information about replica shards in one or more indices. diff --git a/typedapi/indices/shrink/request.go b/typedapi/indices/shrink/request.go index 4871a2517f..0962d31364 100644 --- a/typedapi/indices/shrink/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package shrink @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L113 type Request struct { // Aliases The key is the alias name. diff --git a/typedapi/indices/shrink/response.go b/typedapi/indices/shrink/response.go index d6158e3adc..d470094369 100644 --- a/typedapi/indices/shrink/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package shrink // Response holds the response body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shrink/IndicesShrinkResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shrink/IndicesShrinkResponse.ts#L22-L28 type Response struct { Acknowledged bool `json:"acknowledged"` Index string `json:"index"` diff --git a/typedapi/indices/shrink/shrink.go b/typedapi/indices/shrink/shrink.go index f7bae87355..eb021cbd78 100644 --- a/typedapi/indices/shrink/shrink.go +++ b/typedapi/indices/shrink/shrink.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Shrink an index. // Shrink an index into a new index with fewer primary shards. diff --git a/typedapi/indices/simulateindextemplate/response.go b/typedapi/indices/simulateindextemplate/response.go index 36f8454512..77e6520ecc 100644 --- a/typedapi/indices/simulateindextemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package simulateindextemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulateindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/simulateindextemplate/simulate_index_template.go b/typedapi/indices/simulateindextemplate/simulate_index_template.go index a71eacb182..e00e1b5920 100644 --- a/typedapi/indices/simulateindextemplate/simulate_index_template.go +++ b/typedapi/indices/simulateindextemplate/simulate_index_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Simulate an index. // Get the index configuration that would be applied to the specified index from @@ -309,6 +309,24 @@ func (r *SimulateIndexTemplate) _name(name string) *SimulateIndexTemplate { return r } +// Create Whether the index template we optionally defined in the body should only be +// dry-run added if new or can also replace an existing one +// API name: create +func (r *SimulateIndexTemplate) Create(create bool) *SimulateIndexTemplate { + r.values.Set("create", strconv.FormatBool(create)) + + return r +} + +// Cause User defined reason for dry-run creating the new template for simulation +// purposes +// API name: cause +func (r *SimulateIndexTemplate) Cause(cause string) *SimulateIndexTemplate { + r.values.Set("cause", cause) + + return r +} + // MasterTimeout Period to wait for a connection to the master node. If no response is // received before the timeout expires, the request fails and returns an error. // API name: master_timeout diff --git a/typedapi/indices/simulatetemplate/request.go b/typedapi/indices/simulatetemplate/request.go index 0e5c44a7ce..522d9689e9 100644 --- a/typedapi/indices/simulatetemplate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package simulatetemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L131 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L135 type Request struct { // AllowAutoCreate This setting overrides the value of the `action.auto_create_index` cluster diff --git a/typedapi/indices/simulatetemplate/response.go b/typedapi/indices/simulatetemplate/response.go index 6e2eb0d878..212f8f22f2 100644 --- a/typedapi/indices/simulatetemplate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package simulatetemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/simulatetemplate/simulate_template.go b/typedapi/indices/simulatetemplate/simulate_template.go index 5f992dc8ff..9c1554615f 100644 --- a/typedapi/indices/simulatetemplate/simulate_template.go +++ b/typedapi/indices/simulatetemplate/simulate_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Simulate an index template. // Get the index configuration that would be applied by a particular index @@ -335,6 +335,15 @@ func (r *SimulateTemplate) Create(create bool) *SimulateTemplate { return r } +// Cause User defined reason for dry-run creating the new template for simulation +// purposes +// API name: cause +func (r *SimulateTemplate) Cause(cause string) *SimulateTemplate { + r.values.Set("cause", cause) + + return r +} + // MasterTimeout Period to wait for a connection to the master node. If no response is // received before the timeout expires, the request fails and returns an error. // API name: master_timeout diff --git a/typedapi/indices/split/request.go b/typedapi/indices/split/request.go index 63b3f5af47..25f29d446c 100644 --- a/typedapi/indices/split/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package split @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/split/IndicesSplitRequest.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/split/IndicesSplitRequest.ts#L27-L113 type Request struct { // Aliases Aliases for the resulting index. diff --git a/typedapi/indices/split/response.go b/typedapi/indices/split/response.go index 2cba9c4d5d..c1c6fa4831 100644 --- a/typedapi/indices/split/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package split // Response holds the response body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/split/IndicesSplitResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/split/IndicesSplitResponse.ts#L22-L28 type Response struct { Acknowledged bool `json:"acknowledged"` Index string `json:"index"` diff --git a/typedapi/indices/split/split.go b/typedapi/indices/split/split.go index 921c0a930f..2f9f1f0676 100644 --- a/typedapi/indices/split/split.go +++ b/typedapi/indices/split/split.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Split an index. // Split an index into a new index with more primary shards. diff --git a/typedapi/indices/stats/response.go b/typedapi/indices/stats/response.go index 74d86c2afa..ca0eb45ff4 100644 --- a/typedapi/indices/stats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/IndicesStatsResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/stats/stats.go b/typedapi/indices/stats/stats.go index af69c80cc1..a85c9b0159 100644 --- a/typedapi/indices/stats/stats.go +++ b/typedapi/indices/stats/stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get index statistics. // For data streams, the API retrieves statistics for the stream's backing diff --git a/typedapi/indices/unfreeze/response.go b/typedapi/indices/unfreeze/response.go index 6d469ebcb7..8eb3336a29 100644 --- a/typedapi/indices/unfreeze/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package unfreeze // Response holds the response body struct for the package unfreeze // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/unfreeze/IndicesUnfreezeResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/unfreeze/IndicesUnfreezeResponse.ts#L20-L25 type Response struct { Acknowledged bool `json:"acknowledged"` ShardsAcknowledged bool `json:"shards_acknowledged"` diff --git a/typedapi/indices/unfreeze/unfreeze.go b/typedapi/indices/unfreeze/unfreeze.go index cbf16929fc..328d4bdd05 100644 --- a/typedapi/indices/unfreeze/unfreeze.go +++ b/typedapi/indices/unfreeze/unfreeze.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Unfreeze an index. // When a frozen index is unfrozen, the index goes through the normal recovery diff --git a/typedapi/indices/updatealiases/request.go b/typedapi/indices/updatealiases/request.go index 771853671b..a3f9618d50 100644 --- a/typedapi/indices/updatealiases/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatealiases @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L59 type Request struct { // Actions Actions to perform. diff --git a/typedapi/indices/updatealiases/response.go b/typedapi/indices/updatealiases/response.go index e67019ea6c..8b5abdbf01 100644 --- a/typedapi/indices/updatealiases/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatealiases // Response holds the response body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/updatealiases/update_aliases.go b/typedapi/indices/updatealiases/update_aliases.go index 5cbbe1dfef..037b9b66f1 100644 --- a/typedapi/indices/updatealiases/update_aliases.go +++ b/typedapi/indices/updatealiases/update_aliases.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update an alias. // Adds a data stream or index to an alias. diff --git a/typedapi/indices/validatequery/request.go b/typedapi/indices/validatequery/request.go index 4058e0be71..1971edd267 100644 --- a/typedapi/indices/validatequery/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package validatequery @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L123 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L123 type Request struct { // Query Query in the Lucene query string syntax. diff --git a/typedapi/indices/validatequery/response.go b/typedapi/indices/validatequery/response.go index ee6c4c6cb3..1eea91f18e 100644 --- a/typedapi/indices/validatequery/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package validatequery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/indices/validatequery/validate_query.go b/typedapi/indices/validatequery/validate_query.go index e0d51ea4bb..97655ebf3f 100644 --- a/typedapi/indices/validatequery/validate_query.go +++ b/typedapi/indices/validatequery/validate_query.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Validate a query. // Validates a query without running it. diff --git a/typedapi/inference/chatcompletionunified/chat_completion_unified.go b/typedapi/inference/chatcompletionunified/chat_completion_unified.go index d23816ff6f..553e17fba9 100644 --- a/typedapi/inference/chatcompletionunified/chat_completion_unified.go +++ b/typedapi/inference/chatcompletionunified/chat_completion_unified.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Perform chat completion inference package chatcompletionunified diff --git a/typedapi/inference/chatcompletionunified/request.go b/typedapi/inference/chatcompletionunified/request.go index 8b66430efd..ca0aeaaced 100644 --- a/typedapi/inference/chatcompletionunified/request.go +++ b/typedapi/inference/chatcompletionunified/request.go @@ -16,190 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package chatcompletionunified 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 chatcompletionunified // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L26-L87 -type Request struct { - - // MaxCompletionTokens The upper bound limit for the number of tokens that can be generated for a - // completion request. - MaxCompletionTokens *int64 `json:"max_completion_tokens,omitempty"` - // Messages A list of objects representing the conversation. - Messages []types.Message `json:"messages"` - // Model The ID of the model to use. - Model *string `json:"model,omitempty"` - // Stop A sequence of strings to control when the model should stop generating - // additional tokens. - Stop []string `json:"stop,omitempty"` - // Temperature The sampling temperature to use. - Temperature *float32 `json:"temperature,omitempty"` - // ToolChoice Controls which tool is called by the model. - ToolChoice types.CompletionToolType `json:"tool_choice,omitempty"` - // Tools A list of tools that the model can call. - Tools []types.CompletionTool `json:"tools,omitempty"` - // TopP Nucleus sampling, an alternative to sampling with temperature. - TopP *float32 `json:"top_p,omitempty"` -} +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/chat_completion_unified/UnifiedRequest.ts#L24-L53 +type Request = types.RequestChatCompletion // NewRequest returns a Request func NewRequest() *Request { - r := &Request{} + r := types.NewRequestChatCompletion() 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 Chatcompletionunified 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 "max_completion_tokens": - 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", "MaxCompletionTokens", err) - } - s.MaxCompletionTokens = &value - case float64: - f := int64(v) - s.MaxCompletionTokens = &f - } - - case "messages": - if err := dec.Decode(&s.Messages); err != nil { - return fmt.Errorf("%s | %w", "Messages", err) - } - - case "model": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "Model", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Model = &o - - case "stop": - if err := dec.Decode(&s.Stop); err != nil { - return fmt.Errorf("%s | %w", "Stop", err) - } - - case "temperature": - 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", "Temperature", err) - } - f := float32(value) - s.Temperature = &f - case float64: - f := float32(v) - s.Temperature = &f - } - - case "tool_choice": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "ToolChoice", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - toolchoice_field: - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "ToolChoice", err) - } - - switch t { - - case "function", "type": - o := types.NewCompletionToolChoice() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "ToolChoice", err) - } - s.ToolChoice = o - break toolchoice_field - - } - } - if s.ToolChoice == nil { - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&s.ToolChoice); err != nil { - return fmt.Errorf("%s | %w", "ToolChoice", err) - } - } - - case "tools": - if err := dec.Decode(&s.Tools); err != nil { - return fmt.Errorf("%s | %w", "Tools", err) - } - - case "top_p": - 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", "TopP", err) - } - f := float32(value) - s.TopP = &f - case float64: - f := float32(v) - s.TopP = &f - } - - } - } - return nil -} diff --git a/typedapi/inference/chatcompletionunified/response.go b/typedapi/inference/chatcompletionunified/response.go index 8104f13b71..b1226b3740 100644 --- a/typedapi/inference/chatcompletionunified/response.go +++ b/typedapi/inference/chatcompletionunified/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package chatcompletionunified // Response holds the response body struct for the package chatcompletionunified // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/chat_completion_unified/UnifiedResponse.ts#L22-L24 type Response = []byte diff --git a/typedapi/inference/completion/completion.go b/typedapi/inference/completion/completion.go index 08adaba08f..2701e31ff9 100644 --- a/typedapi/inference/completion/completion.go +++ b/typedapi/inference/completion/completion.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Perform completion inference on the service package completion diff --git a/typedapi/inference/completion/request.go b/typedapi/inference/completion/request.go index 60a7a8e879..55a778c5f5 100644 --- a/typedapi/inference/completion/request.go +++ b/typedapi/inference/completion/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package completion @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package completion // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/completion/CompletionRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/completion/CompletionRequest.ts#L25-L63 type Request struct { // Input Inference input. diff --git a/typedapi/inference/completion/response.go b/typedapi/inference/completion/response.go index 949268f287..122b0b6c64 100644 --- a/typedapi/inference/completion/response.go +++ b/typedapi/inference/completion/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package completion @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package completion // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/completion/CompletionResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/completion/CompletionResponse.ts#L22-L24 type Response []types.CompletionResult diff --git a/typedapi/inference/delete/delete.go b/typedapi/inference/delete/delete.go index 1abd60ca6e..a4d917abf3 100644 --- a/typedapi/inference/delete/delete.go +++ b/typedapi/inference/delete/delete.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an inference endpoint package delete diff --git a/typedapi/inference/delete/response.go b/typedapi/inference/delete/response.go index ec01469247..8a51a2da46 100644 --- a/typedapi/inference/delete/response.go +++ b/typedapi/inference/delete/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/delete/DeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/delete/DeleteResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/inference/get/get.go b/typedapi/inference/get/get.go index 4d2ab67998..8b7db7e5e0 100644 --- a/typedapi/inference/get/get.go +++ b/typedapi/inference/get/get.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get an inference endpoint package get diff --git a/typedapi/inference/get/response.go b/typedapi/inference/get/response.go index 39dbf7f29d..65cc238d08 100644 --- a/typedapi/inference/get/response.go +++ b/typedapi/inference/get/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/get/GetResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/get/GetResponse.ts#L22-L26 type Response struct { Endpoints []types.InferenceEndpointInfo `json:"endpoints"` } diff --git a/typedapi/inference/inference/inference.go b/typedapi/inference/inference/inference.go new file mode 100644 index 0000000000..6ec440036c --- /dev/null +++ b/typedapi/inference/inference/inference.go @@ -0,0 +1,478 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Perform inference on the service. +// +// This API enables you to use machine learning models to perform specific tasks +// on data that you provide as an input. +// It returns a response with the results of the tasks. +// The inference endpoint you use can perform one specific task that has been +// defined when the endpoint was created with the create inference API. +// +// For details about using this API with a service, such as Amazon Bedrock, +// Anthropic, or HuggingFace, refer to the service-specific documentation. +// +// > info +// > The inference APIs enable you to use certain services, such as built-in +// machine learning models (ELSER, E5), models uploaded through Eland, Cohere, +// OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or +// Hugging Face. For built-in models and models uploaded through Eland, the +// inference APIs offer an alternative way to use and manage trained models. +// However, if you do not plan to use the inference APIs to use these models or +// if you want to use non-NLP models, use the machine learning trained model +// APIs. +package inference + +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 ( + tasktypeMask = iota + 1 + + inferenceidMask +) + +// 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 Inference 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 + + tasktype string + inferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewInference type alias for index. +type NewInference func(inferenceid string) *Inference + +// NewInferenceFunc returns a new instance of Inference with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewInferenceFunc(tp elastictransport.Interface) NewInference { + return func(inferenceid string) *Inference { + n := New(tp) + + n._inferenceid(inferenceid) + + return n + } +} + +// Perform inference on the service. +// +// This API enables you to use machine learning models to perform specific tasks +// on data that you provide as an input. +// It returns a response with the results of the tasks. +// The inference endpoint you use can perform one specific task that has been +// defined when the endpoint was created with the create inference API. +// +// For details about using this API with a service, such as Amazon Bedrock, +// Anthropic, or HuggingFace, refer to the service-specific documentation. +// +// > info +// > The inference APIs enable you to use certain services, such as built-in +// machine learning models (ELSER, E5), models uploaded through Eland, Cohere, +// OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or +// Hugging Face. For built-in models and models uploaded through Eland, the +// inference APIs offer an alternative way to use and manage trained models. +// However, if you do not plan to use the inference APIs to use these models or +// if you want to use non-NLP models, use the machine learning trained model +// APIs. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/post-inference-api.html +func New(tp elastictransport.Interface) *Inference { + r := &Inference{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *Inference) Raw(raw io.Reader) *Inference { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *Inference) Request(req *Request) *Inference { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *Inference) 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 Inference: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == inferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "inferenceid", r.inferenceid) + } + path.WriteString(r.inferenceid) + + method = http.MethodPost + case r.paramSet == tasktypeMask|inferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "inferenceid", r.inferenceid) + } + path.WriteString(r.inferenceid) + + 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 Inference) 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.inference") + 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, "inference.inference") + if reader := instrument.RecordRequestBody(ctx, "inference.inference", 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.inference") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the Inference 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 inference.Response +func (r Inference) 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.inference") + 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 Inference headers map. +func (r *Inference) Header(key, value string) *Inference { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of inference task that the model performs. +// API Name: tasktype +func (r *Inference) TaskType(tasktype string) *Inference { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// InferenceId The unique identifier for the inference endpoint. +// API Name: inferenceid +func (r *Inference) _inferenceid(inferenceid string) *Inference { + r.paramSet |= inferenceidMask + r.inferenceid = inferenceid + + return r +} + +// Timeout The amount of time to wait for the inference request to complete. +// API name: timeout +func (r *Inference) Timeout(duration string) *Inference { + r.values.Set("timeout", duration) + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *Inference) ErrorTrace(errortrace bool) *Inference { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *Inference) FilterPath(filterpaths ...string) *Inference { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *Inference) Human(human bool) *Inference { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *Inference) Pretty(pretty bool) *Inference { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The text on which you want to perform the inference task. +// It can be a single string or an array. +// +// > info +// > Inference endpoints for the `completion` task type currently only support a +// single string as input. +// API name: input +func (r *Inference) Input(inputs ...string) *Inference { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Input = make([]string, len(inputs)) + r.req.Input = inputs + + return r +} + +// The query input, which is required only for the `rerank` task. +// It is not required for other tasks. +// API name: query +func (r *Inference) Query(query string) *Inference { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Query = &query + + return r +} + +// Task settings for the individual inference request. +// These settings are specific to the task type you specified and override the +// task settings specified when initializing the service. +// API name: task_settings +func (r *Inference) TaskSettings(tasksettings json.RawMessage) *Inference { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings + + return r +} diff --git a/typedapi/inference/inference/request.go b/typedapi/inference/inference/request.go new file mode 100644 index 0000000000..1b399290c9 --- /dev/null +++ b/typedapi/inference/inference/request.go @@ -0,0 +1,122 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package inference + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// Request holds the request body struct for the package inference +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/inference/InferenceRequest.ts#L26-L91 +type Request struct { + + // Input The text on which you want to perform the inference task. + // It can be a single string or an array. + // + // > info + // > Inference endpoints for the `completion` task type currently only support a + // single string as input. + Input []string `json:"input"` + // Query The query input, which is required only for the `rerank` task. + // It is not required for other tasks. + Query *string `json:"query,omitempty"` + // TaskSettings Task settings for the individual inference request. + // These settings are specific to the task type you specified and override the + // task settings specified when initializing the service. + TaskSettings json.RawMessage `json:"task_settings,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 Inference 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 "input": + 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", "Input", err) + } + + s.Input = append(s.Input, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Input); err != nil { + return fmt.Errorf("%s | %w", "Input", 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 "task_settings": + if err := dec.Decode(&s.TaskSettings); err != nil { + return fmt.Errorf("%s | %w", "TaskSettings", err) + } + + } + } + return nil +} diff --git a/typedapi/inference/inference/response.go b/typedapi/inference/inference/response.go new file mode 100644 index 0000000000..3792f3a203 --- /dev/null +++ b/typedapi/inference/inference/response.go @@ -0,0 +1,48 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package inference + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" +) + +// Response holds the response body struct for the package inference +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/inference/InferenceResponse.ts#L22-L25 +type Response struct { + AdditionalInferenceResultProperty map[string]json.RawMessage `json:"-"` + Completion []types.CompletionResult `json:"completion,omitempty"` + Rerank []types.RankedDocument `json:"rerank,omitempty"` + SparseEmbedding []types.SparseEmbeddingResult `json:"sparse_embedding,omitempty"` + TextEmbedding []types.TextEmbeddingResult `json:"text_embedding,omitempty"` + TextEmbeddingBits []types.TextEmbeddingByteResult `json:"text_embedding_bits,omitempty"` + TextEmbeddingBytes []types.TextEmbeddingByteResult `json:"text_embedding_bytes,omitempty"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{ + AdditionalInferenceResultProperty: make(map[string]json.RawMessage, 0), + } + return r +} diff --git a/typedapi/inference/put/put.go b/typedapi/inference/put/put.go index d13479189e..58a6656be3 100644 --- a/typedapi/inference/put/put.go +++ b/typedapi/inference/put/put.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create an inference endpoint. // When you create an inference endpoint, the associated machine learning model diff --git a/typedapi/inference/put/request.go b/typedapi/inference/put/request.go index 8a4a0b1412..c75cb11930 100644 --- a/typedapi/inference/put/request.go +++ b/typedapi/inference/put/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package put @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put/PutRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put/PutRequest.ts#L25-L65 type Request = types.InferenceEndpoint // NewRequest returns a Request diff --git a/typedapi/inference/put/response.go b/typedapi/inference/put/response.go index 307c150d48..c531870173 100644 --- a/typedapi/inference/put/response.go +++ b/typedapi/inference/put/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package put @@ -29,7 +29,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put/PutResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put/PutResponse.ts#L22-L24 type Response struct { // ChunkingSettings Chunking configuration object diff --git a/typedapi/inference/putalibabacloud/put_alibabacloud.go b/typedapi/inference/putalibabacloud/put_alibabacloud.go new file mode 100644 index 0000000000..fa54a8e696 --- /dev/null +++ b/typedapi/inference/putalibabacloud/put_alibabacloud.go @@ -0,0 +1,456 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an AlibabaCloud AI Search inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `alibabacloud-ai-search` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putalibabacloud + +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/alibabacloudservicetype" +) + +const ( + tasktypeMask = iota + 1 + + alibabacloudinferenceidMask +) + +// 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 PutAlibabacloud 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 + + tasktype string + alibabacloudinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAlibabacloud type alias for index. +type NewPutAlibabacloud func(tasktype, alibabacloudinferenceid string) *PutAlibabacloud + +// NewPutAlibabacloudFunc returns a new instance of PutAlibabacloud with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAlibabacloudFunc(tp elastictransport.Interface) NewPutAlibabacloud { + return func(tasktype, alibabacloudinferenceid string) *PutAlibabacloud { + n := New(tp) + + n._tasktype(tasktype) + + n._alibabacloudinferenceid(alibabacloudinferenceid) + + return n + } +} + +// Create an AlibabaCloud AI Search inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `alibabacloud-ai-search` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-alibabacloud-ai-search.html +func New(tp elastictransport.Interface) *PutAlibabacloud { + r := &PutAlibabacloud{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutAlibabacloud) Raw(raw io.Reader) *PutAlibabacloud { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAlibabacloud) Request(req *Request) *PutAlibabacloud { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAlibabacloud) 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 PutAlibabacloud: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|alibabacloudinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "alibabacloudinferenceid", r.alibabacloudinferenceid) + } + path.WriteString(r.alibabacloudinferenceid) + + 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 PutAlibabacloud) 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_alibabacloud") + 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, "inference.put_alibabacloud") + if reader := instrument.RecordRequestBody(ctx, "inference.put_alibabacloud", 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_alibabacloud") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAlibabacloud 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 putalibabacloud.Response +func (r PutAlibabacloud) 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_alibabacloud") + 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 PutAlibabacloud headers map. +func (r *PutAlibabacloud) Header(key, value string) *PutAlibabacloud { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutAlibabacloud) _tasktype(tasktype string) *PutAlibabacloud { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AlibabacloudInferenceId The unique identifier of the inference endpoint. +// API Name: alibabacloudinferenceid +func (r *PutAlibabacloud) _alibabacloudinferenceid(alibabacloudinferenceid string) *PutAlibabacloud { + r.paramSet |= alibabacloudinferenceidMask + r.alibabacloudinferenceid = alibabacloudinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAlibabacloud) ErrorTrace(errortrace bool) *PutAlibabacloud { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAlibabacloud) FilterPath(filterpaths ...string) *PutAlibabacloud { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAlibabacloud) Human(human bool) *PutAlibabacloud { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAlibabacloud) Pretty(pretty bool) *PutAlibabacloud { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAlibabacloud) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAlibabacloud { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `alibabacloud-ai-search`. +// API name: service +func (r *PutAlibabacloud) Service(service alibabacloudservicetype.AlibabaCloudServiceType) *PutAlibabacloud { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `alibabacloud-ai-search` service. +// API name: service_settings +func (r *PutAlibabacloud) ServiceSettings(servicesettings types.AlibabaCloudServiceSettingsVariant) *PutAlibabacloud { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AlibabaCloudServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAlibabacloud) TaskSettings(tasksettings types.AlibabaCloudTaskSettingsVariant) *PutAlibabacloud { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AlibabaCloudTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putalibabacloud/request.go b/typedapi/inference/putalibabacloud/request.go new file mode 100644 index 0000000000..aeff13a2a2 --- /dev/null +++ b/typedapi/inference/putalibabacloud/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putalibabacloud + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/alibabacloudservicetype" +) + +// Request holds the request body struct for the package putalibabacloud +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L30-L83 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `alibabacloud-ai-search`. + Service alibabacloudservicetype.AlibabaCloudServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `alibabacloud-ai-search` service. + ServiceSettings types.AlibabaCloudServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AlibabaCloudTaskSettings `json:"task_settings,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 Putalibabacloud request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putalibabacloud/response.go b/typedapi/inference/putalibabacloud/response.go new file mode 100644 index 0000000000..bfbfbb31c3 --- /dev/null +++ b/typedapi/inference/putalibabacloud/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putalibabacloud + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putalibabacloud +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putamazonbedrock/put_amazonbedrock.go b/typedapi/inference/putamazonbedrock/put_amazonbedrock.go new file mode 100644 index 0000000000..0cb8fb05e9 --- /dev/null +++ b/typedapi/inference/putamazonbedrock/put_amazonbedrock.go @@ -0,0 +1,472 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an Amazon Bedrock inference endpoint. +// +// Creates an inference endpoint to perform an inference task with the +// `amazonbedrock` service. +// +// >info +// > You need to provide the access and secret keys only once, during the +// inference model creation. The get inference API does not retrieve your access +// or secret keys. After creating the inference model, you cannot change the +// associated key pairs. If you want to use a different access and secret key +// pair, delete the inference model and recreate it with the same name and the +// updated keys. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putamazonbedrock + +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/amazonbedrockservicetype" +) + +const ( + tasktypeMask = iota + 1 + + amazonbedrockinferenceidMask +) + +// 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 PutAmazonbedrock 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 + + tasktype string + amazonbedrockinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAmazonbedrock type alias for index. +type NewPutAmazonbedrock func(tasktype, amazonbedrockinferenceid string) *PutAmazonbedrock + +// NewPutAmazonbedrockFunc returns a new instance of PutAmazonbedrock with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAmazonbedrockFunc(tp elastictransport.Interface) NewPutAmazonbedrock { + return func(tasktype, amazonbedrockinferenceid string) *PutAmazonbedrock { + n := New(tp) + + n._tasktype(tasktype) + + n._amazonbedrockinferenceid(amazonbedrockinferenceid) + + return n + } +} + +// Create an Amazon Bedrock inference endpoint. +// +// Creates an inference endpoint to perform an inference task with the +// `amazonbedrock` service. +// +// >info +// > You need to provide the access and secret keys only once, during the +// inference model creation. The get inference API does not retrieve your access +// or secret keys. After creating the inference model, you cannot change the +// associated key pairs. If you want to use a different access and secret key +// pair, delete the inference model and recreate it with the same name and the +// updated keys. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-amazon-bedrock.html +func New(tp elastictransport.Interface) *PutAmazonbedrock { + r := &PutAmazonbedrock{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutAmazonbedrock) Raw(raw io.Reader) *PutAmazonbedrock { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAmazonbedrock) Request(req *Request) *PutAmazonbedrock { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAmazonbedrock) 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 PutAmazonbedrock: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|amazonbedrockinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "amazonbedrockinferenceid", r.amazonbedrockinferenceid) + } + path.WriteString(r.amazonbedrockinferenceid) + + 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 PutAmazonbedrock) 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_amazonbedrock") + 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, "inference.put_amazonbedrock") + if reader := instrument.RecordRequestBody(ctx, "inference.put_amazonbedrock", 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_amazonbedrock") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAmazonbedrock 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 putamazonbedrock.Response +func (r PutAmazonbedrock) 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_amazonbedrock") + 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 PutAmazonbedrock headers map. +func (r *PutAmazonbedrock) Header(key, value string) *PutAmazonbedrock { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutAmazonbedrock) _tasktype(tasktype string) *PutAmazonbedrock { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AmazonbedrockInferenceId The unique identifier of the inference endpoint. +// API Name: amazonbedrockinferenceid +func (r *PutAmazonbedrock) _amazonbedrockinferenceid(amazonbedrockinferenceid string) *PutAmazonbedrock { + r.paramSet |= amazonbedrockinferenceidMask + r.amazonbedrockinferenceid = amazonbedrockinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAmazonbedrock) ErrorTrace(errortrace bool) *PutAmazonbedrock { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAmazonbedrock) FilterPath(filterpaths ...string) *PutAmazonbedrock { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAmazonbedrock) Human(human bool) *PutAmazonbedrock { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAmazonbedrock) Pretty(pretty bool) *PutAmazonbedrock { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAmazonbedrock) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAmazonbedrock { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `amazonbedrock`. +// API name: service +func (r *PutAmazonbedrock) Service(service amazonbedrockservicetype.AmazonBedrockServiceType) *PutAmazonbedrock { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `amazonbedrock` service. +// API name: service_settings +func (r *PutAmazonbedrock) ServiceSettings(servicesettings types.AmazonBedrockServiceSettingsVariant) *PutAmazonbedrock { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AmazonBedrockServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAmazonbedrock) TaskSettings(tasksettings types.AmazonBedrockTaskSettingsVariant) *PutAmazonbedrock { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AmazonBedrockTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putamazonbedrock/request.go b/typedapi/inference/putamazonbedrock/request.go new file mode 100644 index 0000000000..733a45fe35 --- /dev/null +++ b/typedapi/inference/putamazonbedrock/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putamazonbedrock + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/amazonbedrockservicetype" +) + +// Request holds the request body struct for the package putamazonbedrock +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L30-L86 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `amazonbedrock`. + Service amazonbedrockservicetype.AmazonBedrockServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `amazonbedrock` service. + ServiceSettings types.AmazonBedrockServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AmazonBedrockTaskSettings `json:"task_settings,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 Putamazonbedrock request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putamazonbedrock/response.go b/typedapi/inference/putamazonbedrock/response.go new file mode 100644 index 0000000000..5400418b82 --- /dev/null +++ b/typedapi/inference/putamazonbedrock/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putamazonbedrock + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putamazonbedrock +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_amazonbedrock/PutAmazonBedrockResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putanthropic/put_anthropic.go b/typedapi/inference/putanthropic/put_anthropic.go new file mode 100644 index 0000000000..46bca90777 --- /dev/null +++ b/typedapi/inference/putanthropic/put_anthropic.go @@ -0,0 +1,457 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an Anthropic inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `anthropic` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putanthropic + +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/anthropicservicetype" +) + +const ( + tasktypeMask = iota + 1 + + anthropicinferenceidMask +) + +// 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 PutAnthropic 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 + + tasktype string + anthropicinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAnthropic type alias for index. +type NewPutAnthropic func(tasktype, anthropicinferenceid string) *PutAnthropic + +// NewPutAnthropicFunc returns a new instance of PutAnthropic with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAnthropicFunc(tp elastictransport.Interface) NewPutAnthropic { + return func(tasktype, anthropicinferenceid string) *PutAnthropic { + n := New(tp) + + n._tasktype(tasktype) + + n._anthropicinferenceid(anthropicinferenceid) + + return n + } +} + +// Create an Anthropic inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `anthropic` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-anthropic.html +func New(tp elastictransport.Interface) *PutAnthropic { + r := &PutAnthropic{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutAnthropic) Raw(raw io.Reader) *PutAnthropic { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAnthropic) Request(req *Request) *PutAnthropic { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAnthropic) 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 PutAnthropic: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|anthropicinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "anthropicinferenceid", r.anthropicinferenceid) + } + path.WriteString(r.anthropicinferenceid) + + 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 PutAnthropic) 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_anthropic") + 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, "inference.put_anthropic") + if reader := instrument.RecordRequestBody(ctx, "inference.put_anthropic", 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_anthropic") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAnthropic 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 putanthropic.Response +func (r PutAnthropic) 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_anthropic") + 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 PutAnthropic headers map. +func (r *PutAnthropic) Header(key, value string) *PutAnthropic { + r.headers.Set(key, value) + + return r +} + +// TaskType The task type. +// The only valid task type for the model to perform is `completion`. +// API Name: tasktype +func (r *PutAnthropic) _tasktype(tasktype string) *PutAnthropic { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AnthropicInferenceId The unique identifier of the inference endpoint. +// API Name: anthropicinferenceid +func (r *PutAnthropic) _anthropicinferenceid(anthropicinferenceid string) *PutAnthropic { + r.paramSet |= anthropicinferenceidMask + r.anthropicinferenceid = anthropicinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAnthropic) ErrorTrace(errortrace bool) *PutAnthropic { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAnthropic) FilterPath(filterpaths ...string) *PutAnthropic { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAnthropic) Human(human bool) *PutAnthropic { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAnthropic) Pretty(pretty bool) *PutAnthropic { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAnthropic) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAnthropic { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `anthropic`. +// API name: service +func (r *PutAnthropic) Service(service anthropicservicetype.AnthropicServiceType) *PutAnthropic { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `watsonxai` service. +// API name: service_settings +func (r *PutAnthropic) ServiceSettings(servicesettings types.AnthropicServiceSettingsVariant) *PutAnthropic { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AnthropicServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAnthropic) TaskSettings(tasksettings types.AnthropicTaskSettingsVariant) *PutAnthropic { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AnthropicTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putanthropic/request.go b/typedapi/inference/putanthropic/request.go new file mode 100644 index 0000000000..59dcd63bcf --- /dev/null +++ b/typedapi/inference/putanthropic/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putanthropic + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/anthropicservicetype" +) + +// Request holds the request body struct for the package putanthropic +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_anthropic/PutAnthropicRequest.ts#L30-L84 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `anthropic`. + Service anthropicservicetype.AnthropicServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `watsonxai` service. + ServiceSettings types.AnthropicServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AnthropicTaskSettings `json:"task_settings,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 Putanthropic request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putanthropic/response.go b/typedapi/inference/putanthropic/response.go new file mode 100644 index 0000000000..3f10d54ce6 --- /dev/null +++ b/typedapi/inference/putanthropic/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putanthropic + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putanthropic +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_anthropic/PutAnthropicResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putazureaistudio/put_azureaistudio.go b/typedapi/inference/putazureaistudio/put_azureaistudio.go new file mode 100644 index 0000000000..ef28801ba3 --- /dev/null +++ b/typedapi/inference/putazureaistudio/put_azureaistudio.go @@ -0,0 +1,456 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an Azure AI studio inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `azureaistudio` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putazureaistudio + +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/azureaistudioservicetype" +) + +const ( + tasktypeMask = iota + 1 + + azureaistudioinferenceidMask +) + +// 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 PutAzureaistudio 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 + + tasktype string + azureaistudioinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAzureaistudio type alias for index. +type NewPutAzureaistudio func(tasktype, azureaistudioinferenceid string) *PutAzureaistudio + +// NewPutAzureaistudioFunc returns a new instance of PutAzureaistudio with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAzureaistudioFunc(tp elastictransport.Interface) NewPutAzureaistudio { + return func(tasktype, azureaistudioinferenceid string) *PutAzureaistudio { + n := New(tp) + + n._tasktype(tasktype) + + n._azureaistudioinferenceid(azureaistudioinferenceid) + + return n + } +} + +// Create an Azure AI studio inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `azureaistudio` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-azure-ai-studio.html +func New(tp elastictransport.Interface) *PutAzureaistudio { + r := &PutAzureaistudio{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutAzureaistudio) Raw(raw io.Reader) *PutAzureaistudio { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAzureaistudio) Request(req *Request) *PutAzureaistudio { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAzureaistudio) 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 PutAzureaistudio: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|azureaistudioinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "azureaistudioinferenceid", r.azureaistudioinferenceid) + } + path.WriteString(r.azureaistudioinferenceid) + + 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 PutAzureaistudio) 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_azureaistudio") + 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, "inference.put_azureaistudio") + if reader := instrument.RecordRequestBody(ctx, "inference.put_azureaistudio", 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_azureaistudio") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAzureaistudio 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 putazureaistudio.Response +func (r PutAzureaistudio) 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_azureaistudio") + 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 PutAzureaistudio headers map. +func (r *PutAzureaistudio) Header(key, value string) *PutAzureaistudio { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutAzureaistudio) _tasktype(tasktype string) *PutAzureaistudio { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AzureaistudioInferenceId The unique identifier of the inference endpoint. +// API Name: azureaistudioinferenceid +func (r *PutAzureaistudio) _azureaistudioinferenceid(azureaistudioinferenceid string) *PutAzureaistudio { + r.paramSet |= azureaistudioinferenceidMask + r.azureaistudioinferenceid = azureaistudioinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAzureaistudio) ErrorTrace(errortrace bool) *PutAzureaistudio { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAzureaistudio) FilterPath(filterpaths ...string) *PutAzureaistudio { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAzureaistudio) Human(human bool) *PutAzureaistudio { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAzureaistudio) Pretty(pretty bool) *PutAzureaistudio { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAzureaistudio) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAzureaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `azureaistudio`. +// API name: service +func (r *PutAzureaistudio) Service(service azureaistudioservicetype.AzureAiStudioServiceType) *PutAzureaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `openai` service. +// API name: service_settings +func (r *PutAzureaistudio) ServiceSettings(servicesettings types.AzureAiStudioServiceSettingsVariant) *PutAzureaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AzureAiStudioServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAzureaistudio) TaskSettings(tasksettings types.AzureAiStudioTaskSettingsVariant) *PutAzureaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AzureAiStudioTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putazureaistudio/request.go b/typedapi/inference/putazureaistudio/request.go new file mode 100644 index 0000000000..c03687ec52 --- /dev/null +++ b/typedapi/inference/putazureaistudio/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putazureaistudio + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/azureaistudioservicetype" +) + +// Request holds the request body struct for the package putazureaistudio +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L30-L83 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `azureaistudio`. + Service azureaistudioservicetype.AzureAiStudioServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `openai` service. + ServiceSettings types.AzureAiStudioServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AzureAiStudioTaskSettings `json:"task_settings,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 Putazureaistudio request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putazureaistudio/response.go b/typedapi/inference/putazureaistudio/response.go new file mode 100644 index 0000000000..fe2035f59a --- /dev/null +++ b/typedapi/inference/putazureaistudio/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putazureaistudio + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putazureaistudio +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_azureaistudio/PutAzureAiStudioResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putazureopenai/put_azureopenai.go b/typedapi/inference/putazureopenai/put_azureopenai.go new file mode 100644 index 0000000000..a7fc313f21 --- /dev/null +++ b/typedapi/inference/putazureopenai/put_azureopenai.go @@ -0,0 +1,482 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an Azure OpenAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `azureopenai` service. +// +// The list of chat completion models that you can choose from in your Azure +// OpenAI deployment include: +// +// * [GPT-4 and GPT-4 Turbo +// models](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models) +// * +// [GPT-3.5](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35) +// +// The list of embeddings models that you can choose from in your deployment can +// be found in the [Azure models +// documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings). +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putazureopenai + +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/azureopenaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + azureopenaiinferenceidMask +) + +// 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 PutAzureopenai 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 + + tasktype string + azureopenaiinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAzureopenai type alias for index. +type NewPutAzureopenai func(tasktype, azureopenaiinferenceid string) *PutAzureopenai + +// NewPutAzureopenaiFunc returns a new instance of PutAzureopenai with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAzureopenaiFunc(tp elastictransport.Interface) NewPutAzureopenai { + return func(tasktype, azureopenaiinferenceid string) *PutAzureopenai { + n := New(tp) + + n._tasktype(tasktype) + + n._azureopenaiinferenceid(azureopenaiinferenceid) + + return n + } +} + +// Create an Azure OpenAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `azureopenai` service. +// +// The list of chat completion models that you can choose from in your Azure +// OpenAI deployment include: +// +// * [GPT-4 and GPT-4 Turbo +// models](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models) +// * +// [GPT-3.5](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35) +// +// The list of embeddings models that you can choose from in your deployment can +// be found in the [Azure models +// documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings). +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-azure-openai.html +func New(tp elastictransport.Interface) *PutAzureopenai { + r := &PutAzureopenai{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutAzureopenai) Raw(raw io.Reader) *PutAzureopenai { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAzureopenai) Request(req *Request) *PutAzureopenai { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAzureopenai) 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 PutAzureopenai: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|azureopenaiinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "azureopenaiinferenceid", r.azureopenaiinferenceid) + } + path.WriteString(r.azureopenaiinferenceid) + + 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 PutAzureopenai) 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_azureopenai") + 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, "inference.put_azureopenai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_azureopenai", 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_azureopenai") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAzureopenai 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 putazureopenai.Response +func (r PutAzureopenai) 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_azureopenai") + 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 PutAzureopenai headers map. +func (r *PutAzureopenai) Header(key, value string) *PutAzureopenai { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// NOTE: The `chat_completion` task type only supports streaming and only +// through the _stream API. +// API Name: tasktype +func (r *PutAzureopenai) _tasktype(tasktype string) *PutAzureopenai { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AzureopenaiInferenceId The unique identifier of the inference endpoint. +// API Name: azureopenaiinferenceid +func (r *PutAzureopenai) _azureopenaiinferenceid(azureopenaiinferenceid string) *PutAzureopenai { + r.paramSet |= azureopenaiinferenceidMask + r.azureopenaiinferenceid = azureopenaiinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAzureopenai) ErrorTrace(errortrace bool) *PutAzureopenai { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAzureopenai) FilterPath(filterpaths ...string) *PutAzureopenai { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAzureopenai) Human(human bool) *PutAzureopenai { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAzureopenai) Pretty(pretty bool) *PutAzureopenai { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAzureopenai) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAzureopenai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `azureopenai`. +// API name: service +func (r *PutAzureopenai) Service(service azureopenaiservicetype.AzureOpenAIServiceType) *PutAzureopenai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `azureopenai` service. +// API name: service_settings +func (r *PutAzureopenai) ServiceSettings(servicesettings types.AzureOpenAIServiceSettingsVariant) *PutAzureopenai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AzureOpenAIServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAzureopenai) TaskSettings(tasksettings types.AzureOpenAITaskSettingsVariant) *PutAzureopenai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AzureOpenAITaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putazureopenai/request.go b/typedapi/inference/putazureopenai/request.go new file mode 100644 index 0000000000..de5724c156 --- /dev/null +++ b/typedapi/inference/putazureopenai/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putazureopenai + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/azureopenaiservicetype" +) + +// Request holds the request body struct for the package putazureopenai +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts#L30-L91 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `azureopenai`. + Service azureopenaiservicetype.AzureOpenAIServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `azureopenai` service. + ServiceSettings types.AzureOpenAIServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AzureOpenAITaskSettings `json:"task_settings,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 Putazureopenai request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putazureopenai/response.go b/typedapi/inference/putazureopenai/response.go new file mode 100644 index 0000000000..427c455de2 --- /dev/null +++ b/typedapi/inference/putazureopenai/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putazureopenai + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putazureopenai +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_azureopenai/PutAzureOpenAiResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putcohere/put_cohere.go b/typedapi/inference/putcohere/put_cohere.go new file mode 100644 index 0000000000..4aafc6bcae --- /dev/null +++ b/typedapi/inference/putcohere/put_cohere.go @@ -0,0 +1,456 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create a Cohere inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `cohere` +// service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putcohere + +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/cohereservicetype" +) + +const ( + tasktypeMask = iota + 1 + + cohereinferenceidMask +) + +// 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 PutCohere 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 + + tasktype string + cohereinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutCohere type alias for index. +type NewPutCohere func(tasktype, cohereinferenceid string) *PutCohere + +// NewPutCohereFunc returns a new instance of PutCohere with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutCohereFunc(tp elastictransport.Interface) NewPutCohere { + return func(tasktype, cohereinferenceid string) *PutCohere { + n := New(tp) + + n._tasktype(tasktype) + + n._cohereinferenceid(cohereinferenceid) + + return n + } +} + +// Create a Cohere inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `cohere` +// service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-cohere.html +func New(tp elastictransport.Interface) *PutCohere { + r := &PutCohere{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutCohere) Raw(raw io.Reader) *PutCohere { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutCohere) Request(req *Request) *PutCohere { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutCohere) 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 PutCohere: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|cohereinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "cohereinferenceid", r.cohereinferenceid) + } + path.WriteString(r.cohereinferenceid) + + 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 PutCohere) 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_cohere") + 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, "inference.put_cohere") + if reader := instrument.RecordRequestBody(ctx, "inference.put_cohere", 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_cohere") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutCohere 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 putcohere.Response +func (r PutCohere) 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_cohere") + 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 PutCohere headers map. +func (r *PutCohere) Header(key, value string) *PutCohere { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutCohere) _tasktype(tasktype string) *PutCohere { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// CohereInferenceId The unique identifier of the inference endpoint. +// API Name: cohereinferenceid +func (r *PutCohere) _cohereinferenceid(cohereinferenceid string) *PutCohere { + r.paramSet |= cohereinferenceidMask + r.cohereinferenceid = cohereinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutCohere) ErrorTrace(errortrace bool) *PutCohere { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutCohere) FilterPath(filterpaths ...string) *PutCohere { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutCohere) Human(human bool) *PutCohere { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutCohere) Pretty(pretty bool) *PutCohere { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutCohere) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutCohere { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `cohere`. +// API name: service +func (r *PutCohere) Service(service cohereservicetype.CohereServiceType) *PutCohere { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. +// These settings are specific to the `cohere` service. +// API name: service_settings +func (r *PutCohere) ServiceSettings(servicesettings types.CohereServiceSettingsVariant) *PutCohere { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.CohereServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutCohere) TaskSettings(tasksettings types.CohereTaskSettingsVariant) *PutCohere { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.CohereTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putcohere/request.go b/typedapi/inference/putcohere/request.go new file mode 100644 index 0000000000..8b9480f6ab --- /dev/null +++ b/typedapi/inference/putcohere/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putcohere + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cohereservicetype" +) + +// Request holds the request body struct for the package putcohere +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_cohere/PutCohereRequest.ts#L30-L84 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `cohere`. + Service cohereservicetype.CohereServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. + // These settings are specific to the `cohere` service. + ServiceSettings types.CohereServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.CohereTaskSettings `json:"task_settings,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 Putcohere request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putcohere/response.go b/typedapi/inference/putcohere/response.go new file mode 100644 index 0000000000..4ed6c778c3 --- /dev/null +++ b/typedapi/inference/putcohere/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putcohere + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putcohere +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_cohere/PutCohereResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putelasticsearch/put_elasticsearch.go b/typedapi/inference/putelasticsearch/put_elasticsearch.go new file mode 100644 index 0000000000..b4d865769c --- /dev/null +++ b/typedapi/inference/putelasticsearch/put_elasticsearch.go @@ -0,0 +1,485 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an Elasticsearch inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `elasticsearch` service. +// +// > info +// > Your Elasticsearch deployment contains preconfigured ELSER and E5 inference +// endpoints, you only need to create the enpoints using the API if you want to +// customize the settings. +// +// If you use the ELSER or the E5 model through the `elasticsearch` service, the +// API request will automatically download and deploy the model if it isn't +// downloaded yet. +// +// > info +// > You might see a 502 bad gateway error in the response when using the Kibana +// Console. This error usually just reflects a timeout, while the model +// downloads in the background. You can check the download progress in the +// Machine Learning UI. If using the Python client, you can set the timeout +// parameter to a higher value. +// +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putelasticsearch + +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/elasticsearchservicetype" +) + +const ( + tasktypeMask = iota + 1 + + elasticsearchinferenceidMask +) + +// 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 PutElasticsearch 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 + + tasktype string + elasticsearchinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutElasticsearch type alias for index. +type NewPutElasticsearch func(tasktype, elasticsearchinferenceid string) *PutElasticsearch + +// NewPutElasticsearchFunc returns a new instance of PutElasticsearch with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutElasticsearchFunc(tp elastictransport.Interface) NewPutElasticsearch { + return func(tasktype, elasticsearchinferenceid string) *PutElasticsearch { + n := New(tp) + + n._tasktype(tasktype) + + n._elasticsearchinferenceid(elasticsearchinferenceid) + + return n + } +} + +// Create an Elasticsearch inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `elasticsearch` service. +// +// > info +// > Your Elasticsearch deployment contains preconfigured ELSER and E5 inference +// endpoints, you only need to create the enpoints using the API if you want to +// customize the settings. +// +// If you use the ELSER or the E5 model through the `elasticsearch` service, the +// API request will automatically download and deploy the model if it isn't +// downloaded yet. +// +// > info +// > You might see a 502 bad gateway error in the response when using the Kibana +// Console. This error usually just reflects a timeout, while the model +// downloads in the background. You can check the download progress in the +// Machine Learning UI. If using the Python client, you can set the timeout +// parameter to a higher value. +// +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elasticsearch.html +func New(tp elastictransport.Interface) *PutElasticsearch { + r := &PutElasticsearch{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutElasticsearch) Raw(raw io.Reader) *PutElasticsearch { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutElasticsearch) Request(req *Request) *PutElasticsearch { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutElasticsearch) 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 PutElasticsearch: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|elasticsearchinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "elasticsearchinferenceid", r.elasticsearchinferenceid) + } + path.WriteString(r.elasticsearchinferenceid) + + 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 PutElasticsearch) 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_elasticsearch") + 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, "inference.put_elasticsearch") + if reader := instrument.RecordRequestBody(ctx, "inference.put_elasticsearch", 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_elasticsearch") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutElasticsearch 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 putelasticsearch.Response +func (r PutElasticsearch) 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_elasticsearch") + 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 PutElasticsearch headers map. +func (r *PutElasticsearch) Header(key, value string) *PutElasticsearch { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutElasticsearch) _tasktype(tasktype string) *PutElasticsearch { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// ElasticsearchInferenceId The unique identifier of the inference endpoint. +// The must not match the `model_id`. +// API Name: elasticsearchinferenceid +func (r *PutElasticsearch) _elasticsearchinferenceid(elasticsearchinferenceid string) *PutElasticsearch { + r.paramSet |= elasticsearchinferenceidMask + r.elasticsearchinferenceid = elasticsearchinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutElasticsearch) ErrorTrace(errortrace bool) *PutElasticsearch { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutElasticsearch) FilterPath(filterpaths ...string) *PutElasticsearch { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutElasticsearch) Human(human bool) *PutElasticsearch { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutElasticsearch) Pretty(pretty bool) *PutElasticsearch { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutElasticsearch) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutElasticsearch { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `elasticsearch`. +// API name: service +func (r *PutElasticsearch) Service(service elasticsearchservicetype.ElasticsearchServiceType) *PutElasticsearch { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `elasticsearch` service. +// API name: service_settings +func (r *PutElasticsearch) ServiceSettings(servicesettings types.ElasticsearchServiceSettingsVariant) *PutElasticsearch { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.ElasticsearchServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutElasticsearch) TaskSettings(tasksettings types.ElasticsearchTaskSettingsVariant) *PutElasticsearch { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.ElasticsearchTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putelasticsearch/request.go b/typedapi/inference/putelasticsearch/request.go new file mode 100644 index 0000000000..c10447b5d5 --- /dev/null +++ b/typedapi/inference/putelasticsearch/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putelasticsearch + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/elasticsearchservicetype" +) + +// Request holds the request body struct for the package putelasticsearch +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts#L30-L91 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `elasticsearch`. + Service elasticsearchservicetype.ElasticsearchServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `elasticsearch` service. + ServiceSettings types.ElasticsearchServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.ElasticsearchTaskSettings `json:"task_settings,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 Putelasticsearch request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putelasticsearch/response.go b/typedapi/inference/putelasticsearch/response.go new file mode 100644 index 0000000000..c22795f0f0 --- /dev/null +++ b/typedapi/inference/putelasticsearch/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putelasticsearch + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putelasticsearch +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_elasticsearch/PutElasticsearchResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putelser/put_elser.go b/typedapi/inference/putelser/put_elser.go new file mode 100644 index 0000000000..4263b47ef7 --- /dev/null +++ b/typedapi/inference/putelser/put_elser.go @@ -0,0 +1,470 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an ELSER inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `elser` +// service. +// You can also deploy ELSER by using the Elasticsearch inference integration. +// +// > info +// > Your Elasticsearch deployment contains a preconfigured ELSER inference +// endpoint, you only need to create the enpoint using the API if you want to +// customize the settings. +// +// The API request will automatically download and deploy the ELSER model if it +// isn't already downloaded. +// +// > info +// > You might see a 502 bad gateway error in the response when using the Kibana +// Console. This error usually just reflects a timeout, while the model +// downloads in the background. You can check the download progress in the +// Machine Learning UI. If using the Python client, you can set the timeout +// parameter to a higher value. +// +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putelser + +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/elserservicetype" +) + +const ( + tasktypeMask = iota + 1 + + elserinferenceidMask +) + +// 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 PutElser 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 + + tasktype string + elserinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutElser type alias for index. +type NewPutElser func(tasktype, elserinferenceid string) *PutElser + +// NewPutElserFunc returns a new instance of PutElser with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutElserFunc(tp elastictransport.Interface) NewPutElser { + return func(tasktype, elserinferenceid string) *PutElser { + n := New(tp) + + n._tasktype(tasktype) + + n._elserinferenceid(elserinferenceid) + + return n + } +} + +// Create an ELSER inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `elser` +// service. +// You can also deploy ELSER by using the Elasticsearch inference integration. +// +// > info +// > Your Elasticsearch deployment contains a preconfigured ELSER inference +// endpoint, you only need to create the enpoint using the API if you want to +// customize the settings. +// +// The API request will automatically download and deploy the ELSER model if it +// isn't already downloaded. +// +// > info +// > You might see a 502 bad gateway error in the response when using the Kibana +// Console. This error usually just reflects a timeout, while the model +// downloads in the background. You can check the download progress in the +// Machine Learning UI. If using the Python client, you can set the timeout +// parameter to a higher value. +// +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elser.html +func New(tp elastictransport.Interface) *PutElser { + r := &PutElser{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutElser) Raw(raw io.Reader) *PutElser { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutElser) Request(req *Request) *PutElser { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutElser) 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 PutElser: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|elserinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "elserinferenceid", r.elserinferenceid) + } + path.WriteString(r.elserinferenceid) + + 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 PutElser) 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_elser") + 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, "inference.put_elser") + if reader := instrument.RecordRequestBody(ctx, "inference.put_elser", 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_elser") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutElser 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 putelser.Response +func (r PutElser) 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_elser") + 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 PutElser headers map. +func (r *PutElser) Header(key, value string) *PutElser { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutElser) _tasktype(tasktype string) *PutElser { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// ElserInferenceId The unique identifier of the inference endpoint. +// API Name: elserinferenceid +func (r *PutElser) _elserinferenceid(elserinferenceid string) *PutElser { + r.paramSet |= elserinferenceidMask + r.elserinferenceid = elserinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutElser) ErrorTrace(errortrace bool) *PutElser { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutElser) FilterPath(filterpaths ...string) *PutElser { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutElser) Human(human bool) *PutElser { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutElser) Pretty(pretty bool) *PutElser { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutElser) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutElser { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `elser`. +// API name: service +func (r *PutElser) Service(service elserservicetype.ElserServiceType) *PutElser { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `elser` service. +// API name: service_settings +func (r *PutElser) ServiceSettings(servicesettings types.ElserServiceSettingsVariant) *PutElser { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.ElserServiceSettingsCaster() + + return r +} diff --git a/typedapi/inference/putelser/request.go b/typedapi/inference/putelser/request.go new file mode 100644 index 0000000000..0f05bda0ed --- /dev/null +++ b/typedapi/inference/putelser/request.go @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putelser + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/elserservicetype" +) + +// Request holds the request body struct for the package putelser +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_elser/PutElserRequest.ts#L29-L86 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `elser`. + Service elserservicetype.ElserServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `elser` service. + ServiceSettings types.ElserServiceSettings `json:"service_settings"` +} + +// 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 Putelser request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putelser/response.go b/typedapi/inference/putelser/response.go new file mode 100644 index 0000000000..3a1475fd82 --- /dev/null +++ b/typedapi/inference/putelser/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putelser + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putelser +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_elser/PutElserResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putgoogleaistudio/put_googleaistudio.go b/typedapi/inference/putgoogleaistudio/put_googleaistudio.go new file mode 100644 index 0000000000..c624b69fba --- /dev/null +++ b/typedapi/inference/putgoogleaistudio/put_googleaistudio.go @@ -0,0 +1,442 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an Google AI Studio inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `googleaistudio` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putgoogleaistudio + +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/googleaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + googleaistudioinferenceidMask +) + +// 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 PutGoogleaistudio 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 + + tasktype string + googleaistudioinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutGoogleaistudio type alias for index. +type NewPutGoogleaistudio func(tasktype, googleaistudioinferenceid string) *PutGoogleaistudio + +// NewPutGoogleaistudioFunc returns a new instance of PutGoogleaistudio with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutGoogleaistudioFunc(tp elastictransport.Interface) NewPutGoogleaistudio { + return func(tasktype, googleaistudioinferenceid string) *PutGoogleaistudio { + n := New(tp) + + n._tasktype(tasktype) + + n._googleaistudioinferenceid(googleaistudioinferenceid) + + return n + } +} + +// Create an Google AI Studio inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `googleaistudio` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-google-ai-studio.html +func New(tp elastictransport.Interface) *PutGoogleaistudio { + r := &PutGoogleaistudio{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutGoogleaistudio) Raw(raw io.Reader) *PutGoogleaistudio { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutGoogleaistudio) Request(req *Request) *PutGoogleaistudio { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutGoogleaistudio) 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 PutGoogleaistudio: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|googleaistudioinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "googleaistudioinferenceid", r.googleaistudioinferenceid) + } + path.WriteString(r.googleaistudioinferenceid) + + 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 PutGoogleaistudio) 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_googleaistudio") + 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, "inference.put_googleaistudio") + if reader := instrument.RecordRequestBody(ctx, "inference.put_googleaistudio", 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_googleaistudio") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutGoogleaistudio 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 putgoogleaistudio.Response +func (r PutGoogleaistudio) 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_googleaistudio") + 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 PutGoogleaistudio headers map. +func (r *PutGoogleaistudio) Header(key, value string) *PutGoogleaistudio { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutGoogleaistudio) _tasktype(tasktype string) *PutGoogleaistudio { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// GoogleaistudioInferenceId The unique identifier of the inference endpoint. +// API Name: googleaistudioinferenceid +func (r *PutGoogleaistudio) _googleaistudioinferenceid(googleaistudioinferenceid string) *PutGoogleaistudio { + r.paramSet |= googleaistudioinferenceidMask + r.googleaistudioinferenceid = googleaistudioinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutGoogleaistudio) ErrorTrace(errortrace bool) *PutGoogleaistudio { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutGoogleaistudio) FilterPath(filterpaths ...string) *PutGoogleaistudio { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutGoogleaistudio) Human(human bool) *PutGoogleaistudio { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutGoogleaistudio) Pretty(pretty bool) *PutGoogleaistudio { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutGoogleaistudio) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutGoogleaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `googleaistudio`. +// API name: service +func (r *PutGoogleaistudio) Service(service googleaiservicetype.GoogleAiServiceType) *PutGoogleaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `googleaistudio` service. +// API name: service_settings +func (r *PutGoogleaistudio) ServiceSettings(servicesettings types.GoogleAiStudioServiceSettingsVariant) *PutGoogleaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.GoogleAiStudioServiceSettingsCaster() + + return r +} diff --git a/typedapi/inference/putgoogleaistudio/request.go b/typedapi/inference/putgoogleaistudio/request.go new file mode 100644 index 0000000000..150f02490d --- /dev/null +++ b/typedapi/inference/putgoogleaistudio/request.go @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putgoogleaistudio + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/googleaiservicetype" +) + +// Request holds the request body struct for the package putgoogleaistudio +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L29-L77 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `googleaistudio`. + Service googleaiservicetype.GoogleAiServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `googleaistudio` service. + ServiceSettings types.GoogleAiStudioServiceSettings `json:"service_settings"` +} + +// 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 Putgoogleaistudio request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putgoogleaistudio/response.go b/typedapi/inference/putgoogleaistudio/response.go new file mode 100644 index 0000000000..e900a72532 --- /dev/null +++ b/typedapi/inference/putgoogleaistudio/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putgoogleaistudio + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putgoogleaistudio +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_googleaistudio/PutGoogleAiStudioResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putgooglevertexai/put_googlevertexai.go b/typedapi/inference/putgooglevertexai/put_googlevertexai.go new file mode 100644 index 0000000000..5ebf2bd866 --- /dev/null +++ b/typedapi/inference/putgooglevertexai/put_googlevertexai.go @@ -0,0 +1,456 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create a Google Vertex AI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `googlevertexai` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putgooglevertexai + +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/googlevertexaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + googlevertexaiinferenceidMask +) + +// 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 PutGooglevertexai 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 + + tasktype string + googlevertexaiinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutGooglevertexai type alias for index. +type NewPutGooglevertexai func(tasktype, googlevertexaiinferenceid string) *PutGooglevertexai + +// NewPutGooglevertexaiFunc returns a new instance of PutGooglevertexai with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutGooglevertexaiFunc(tp elastictransport.Interface) NewPutGooglevertexai { + return func(tasktype, googlevertexaiinferenceid string) *PutGooglevertexai { + n := New(tp) + + n._tasktype(tasktype) + + n._googlevertexaiinferenceid(googlevertexaiinferenceid) + + return n + } +} + +// Create a Google Vertex AI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `googlevertexai` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-google-vertex-ai.html +func New(tp elastictransport.Interface) *PutGooglevertexai { + r := &PutGooglevertexai{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutGooglevertexai) Raw(raw io.Reader) *PutGooglevertexai { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutGooglevertexai) Request(req *Request) *PutGooglevertexai { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutGooglevertexai) 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 PutGooglevertexai: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|googlevertexaiinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "googlevertexaiinferenceid", r.googlevertexaiinferenceid) + } + path.WriteString(r.googlevertexaiinferenceid) + + 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 PutGooglevertexai) 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_googlevertexai") + 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, "inference.put_googlevertexai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_googlevertexai", 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_googlevertexai") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutGooglevertexai 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 putgooglevertexai.Response +func (r PutGooglevertexai) 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_googlevertexai") + 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 PutGooglevertexai headers map. +func (r *PutGooglevertexai) Header(key, value string) *PutGooglevertexai { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutGooglevertexai) _tasktype(tasktype string) *PutGooglevertexai { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// GooglevertexaiInferenceId The unique identifier of the inference endpoint. +// API Name: googlevertexaiinferenceid +func (r *PutGooglevertexai) _googlevertexaiinferenceid(googlevertexaiinferenceid string) *PutGooglevertexai { + r.paramSet |= googlevertexaiinferenceidMask + r.googlevertexaiinferenceid = googlevertexaiinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutGooglevertexai) ErrorTrace(errortrace bool) *PutGooglevertexai { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutGooglevertexai) FilterPath(filterpaths ...string) *PutGooglevertexai { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutGooglevertexai) Human(human bool) *PutGooglevertexai { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutGooglevertexai) Pretty(pretty bool) *PutGooglevertexai { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutGooglevertexai) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutGooglevertexai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `googlevertexai`. +// API name: service +func (r *PutGooglevertexai) Service(service googlevertexaiservicetype.GoogleVertexAIServiceType) *PutGooglevertexai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `googlevertexai` service. +// API name: service_settings +func (r *PutGooglevertexai) ServiceSettings(servicesettings types.GoogleVertexAIServiceSettingsVariant) *PutGooglevertexai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.GoogleVertexAIServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutGooglevertexai) TaskSettings(tasksettings types.GoogleVertexAITaskSettingsVariant) *PutGooglevertexai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.GoogleVertexAITaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putgooglevertexai/request.go b/typedapi/inference/putgooglevertexai/request.go new file mode 100644 index 0000000000..02d5bc12c9 --- /dev/null +++ b/typedapi/inference/putgooglevertexai/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putgooglevertexai + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/googlevertexaiservicetype" +) + +// Request holds the request body struct for the package putgooglevertexai +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L30-L83 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `googlevertexai`. + Service googlevertexaiservicetype.GoogleVertexAIServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `googlevertexai` service. + ServiceSettings types.GoogleVertexAIServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.GoogleVertexAITaskSettings `json:"task_settings,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 Putgooglevertexai request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putgooglevertexai/response.go b/typedapi/inference/putgooglevertexai/response.go new file mode 100644 index 0000000000..7bb372cb06 --- /dev/null +++ b/typedapi/inference/putgooglevertexai/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putgooglevertexai + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putgooglevertexai +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_googlevertexai/PutGoogleVertexAiResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/puthuggingface/put_hugging_face.go b/typedapi/inference/puthuggingface/put_hugging_face.go new file mode 100644 index 0000000000..4aeacb9474 --- /dev/null +++ b/typedapi/inference/puthuggingface/put_hugging_face.go @@ -0,0 +1,478 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create a Hugging Face inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `hugging_face` service. +// +// You must first create an inference endpoint on the Hugging Face endpoint page +// to get an endpoint URL. +// Select the model you want to use on the new endpoint creation page (for +// example `intfloat/e5-small-v2`), then select the sentence embeddings task +// under the advanced configuration section. +// Create the endpoint and copy the URL after the endpoint initialization has +// been finished. +// +// The following models are recommended for the Hugging Face service: +// +// * `all-MiniLM-L6-v2` +// * `all-MiniLM-L12-v2` +// * `all-mpnet-base-v2` +// * `e5-base-v2` +// * `e5-small-v2` +// * `multilingual-e5-base` +// * `multilingual-e5-small` +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package puthuggingface + +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/huggingfaceservicetype" +) + +const ( + tasktypeMask = iota + 1 + + huggingfaceinferenceidMask +) + +// 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 PutHuggingFace 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 + + tasktype string + huggingfaceinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutHuggingFace type alias for index. +type NewPutHuggingFace func(tasktype, huggingfaceinferenceid string) *PutHuggingFace + +// NewPutHuggingFaceFunc returns a new instance of PutHuggingFace with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutHuggingFaceFunc(tp elastictransport.Interface) NewPutHuggingFace { + return func(tasktype, huggingfaceinferenceid string) *PutHuggingFace { + n := New(tp) + + n._tasktype(tasktype) + + n._huggingfaceinferenceid(huggingfaceinferenceid) + + return n + } +} + +// Create a Hugging Face inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `hugging_face` service. +// +// You must first create an inference endpoint on the Hugging Face endpoint page +// to get an endpoint URL. +// Select the model you want to use on the new endpoint creation page (for +// example `intfloat/e5-small-v2`), then select the sentence embeddings task +// under the advanced configuration section. +// Create the endpoint and copy the URL after the endpoint initialization has +// been finished. +// +// The following models are recommended for the Hugging Face service: +// +// * `all-MiniLM-L6-v2` +// * `all-MiniLM-L12-v2` +// * `all-mpnet-base-v2` +// * `e5-base-v2` +// * `e5-small-v2` +// * `multilingual-e5-base` +// * `multilingual-e5-small` +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-hugging-face.html +func New(tp elastictransport.Interface) *PutHuggingFace { + r := &PutHuggingFace{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutHuggingFace) Raw(raw io.Reader) *PutHuggingFace { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutHuggingFace) Request(req *Request) *PutHuggingFace { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutHuggingFace) 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 PutHuggingFace: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|huggingfaceinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "huggingfaceinferenceid", r.huggingfaceinferenceid) + } + path.WriteString(r.huggingfaceinferenceid) + + 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 PutHuggingFace) 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_hugging_face") + 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, "inference.put_hugging_face") + if reader := instrument.RecordRequestBody(ctx, "inference.put_hugging_face", 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_hugging_face") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutHuggingFace 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 puthuggingface.Response +func (r PutHuggingFace) 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_hugging_face") + 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 PutHuggingFace headers map. +func (r *PutHuggingFace) Header(key, value string) *PutHuggingFace { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutHuggingFace) _tasktype(tasktype string) *PutHuggingFace { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// HuggingfaceInferenceId The unique identifier of the inference endpoint. +// API Name: huggingfaceinferenceid +func (r *PutHuggingFace) _huggingfaceinferenceid(huggingfaceinferenceid string) *PutHuggingFace { + r.paramSet |= huggingfaceinferenceidMask + r.huggingfaceinferenceid = huggingfaceinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutHuggingFace) ErrorTrace(errortrace bool) *PutHuggingFace { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutHuggingFace) FilterPath(filterpaths ...string) *PutHuggingFace { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutHuggingFace) Human(human bool) *PutHuggingFace { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutHuggingFace) Pretty(pretty bool) *PutHuggingFace { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutHuggingFace) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutHuggingFace { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `hugging_face`. +// API name: service +func (r *PutHuggingFace) Service(service huggingfaceservicetype.HuggingFaceServiceType) *PutHuggingFace { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `hugging_face` service. +// API name: service_settings +func (r *PutHuggingFace) ServiceSettings(servicesettings types.HuggingFaceServiceSettingsVariant) *PutHuggingFace { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.HuggingFaceServiceSettingsCaster() + + return r +} diff --git a/typedapi/inference/puthuggingface/request.go b/typedapi/inference/puthuggingface/request.go new file mode 100644 index 0000000000..9e8b629fdb --- /dev/null +++ b/typedapi/inference/puthuggingface/request.go @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package puthuggingface + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/huggingfaceservicetype" +) + +// Request holds the request body struct for the package puthuggingface +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts#L29-L91 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `hugging_face`. + Service huggingfaceservicetype.HuggingFaceServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `hugging_face` service. + ServiceSettings types.HuggingFaceServiceSettings `json:"service_settings"` +} + +// 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 Puthuggingface request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/puthuggingface/response.go b/typedapi/inference/puthuggingface/response.go new file mode 100644 index 0000000000..8019df698a --- /dev/null +++ b/typedapi/inference/puthuggingface/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package puthuggingface + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package puthuggingface +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_hugging_face/PutHuggingFaceResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putjinaai/put_jinaai.go b/typedapi/inference/putjinaai/put_jinaai.go new file mode 100644 index 0000000000..987910ecff --- /dev/null +++ b/typedapi/inference/putjinaai/put_jinaai.go @@ -0,0 +1,464 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create an JinaAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `jinaai` +// service. +// +// To review the available `rerank` models, refer to . +// To review the available `text_embedding` models, refer to the +// . +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putjinaai + +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/jinaaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + jinaaiinferenceidMask +) + +// 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 PutJinaai 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 + + tasktype string + jinaaiinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutJinaai type alias for index. +type NewPutJinaai func(tasktype, jinaaiinferenceid string) *PutJinaai + +// NewPutJinaaiFunc returns a new instance of PutJinaai with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutJinaaiFunc(tp elastictransport.Interface) NewPutJinaai { + return func(tasktype, jinaaiinferenceid string) *PutJinaai { + n := New(tp) + + n._tasktype(tasktype) + + n._jinaaiinferenceid(jinaaiinferenceid) + + return n + } +} + +// Create an JinaAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `jinaai` +// service. +// +// To review the available `rerank` models, refer to . +// To review the available `text_embedding` models, refer to the +// . +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-jinaai.html +func New(tp elastictransport.Interface) *PutJinaai { + r := &PutJinaai{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutJinaai) Raw(raw io.Reader) *PutJinaai { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutJinaai) Request(req *Request) *PutJinaai { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutJinaai) 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 PutJinaai: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|jinaaiinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "jinaaiinferenceid", r.jinaaiinferenceid) + } + path.WriteString(r.jinaaiinferenceid) + + 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 PutJinaai) 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_jinaai") + 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, "inference.put_jinaai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_jinaai", 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_jinaai") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutJinaai 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 putjinaai.Response +func (r PutJinaai) 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_jinaai") + 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 PutJinaai headers map. +func (r *PutJinaai) Header(key, value string) *PutJinaai { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutJinaai) _tasktype(tasktype string) *PutJinaai { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// JinaaiInferenceId The unique identifier of the inference endpoint. +// API Name: jinaaiinferenceid +func (r *PutJinaai) _jinaaiinferenceid(jinaaiinferenceid string) *PutJinaai { + r.paramSet |= jinaaiinferenceidMask + r.jinaaiinferenceid = jinaaiinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutJinaai) ErrorTrace(errortrace bool) *PutJinaai { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutJinaai) FilterPath(filterpaths ...string) *PutJinaai { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutJinaai) Human(human bool) *PutJinaai { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutJinaai) Pretty(pretty bool) *PutJinaai { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutJinaai) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutJinaai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `jinaai`. +// API name: service +func (r *PutJinaai) Service(service jinaaiservicetype.JinaAIServiceType) *PutJinaai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `jinaai` service. +// API name: service_settings +func (r *PutJinaai) ServiceSettings(servicesettings types.JinaAIServiceSettingsVariant) *PutJinaai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.JinaAIServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutJinaai) TaskSettings(tasksettings types.JinaAITaskSettingsVariant) *PutJinaai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.JinaAITaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putjinaai/request.go b/typedapi/inference/putjinaai/request.go new file mode 100644 index 0000000000..2d3d8d28e0 --- /dev/null +++ b/typedapi/inference/putjinaai/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putjinaai + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jinaaiservicetype" +) + +// Request holds the request body struct for the package putjinaai +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_jinaai/PutJinaAiRequest.ts#L30-L86 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `jinaai`. + Service jinaaiservicetype.JinaAIServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `jinaai` service. + ServiceSettings types.JinaAIServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.JinaAITaskSettings `json:"task_settings,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 Putjinaai request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putjinaai/response.go b/typedapi/inference/putjinaai/response.go new file mode 100644 index 0000000000..851a67db7e --- /dev/null +++ b/typedapi/inference/putjinaai/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putjinaai + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putjinaai +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_jinaai/PutJinaAiResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putmistral/put_mistral.go b/typedapi/inference/putmistral/put_mistral.go new file mode 100644 index 0000000000..9628b420ee --- /dev/null +++ b/typedapi/inference/putmistral/put_mistral.go @@ -0,0 +1,443 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create a Mistral inference endpoint. +// +// Creates an inference endpoint to perform an inference task with the `mistral` +// service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putmistral + +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/mistralservicetype" +) + +const ( + tasktypeMask = iota + 1 + + mistralinferenceidMask +) + +// 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 PutMistral 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 + + tasktype string + mistralinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutMistral type alias for index. +type NewPutMistral func(tasktype, mistralinferenceid string) *PutMistral + +// NewPutMistralFunc returns a new instance of PutMistral with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutMistralFunc(tp elastictransport.Interface) NewPutMistral { + return func(tasktype, mistralinferenceid string) *PutMistral { + n := New(tp) + + n._tasktype(tasktype) + + n._mistralinferenceid(mistralinferenceid) + + return n + } +} + +// Create a Mistral inference endpoint. +// +// Creates an inference endpoint to perform an inference task with the `mistral` +// service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-mistral.html +func New(tp elastictransport.Interface) *PutMistral { + r := &PutMistral{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutMistral) Raw(raw io.Reader) *PutMistral { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutMistral) Request(req *Request) *PutMistral { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutMistral) 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 PutMistral: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|mistralinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "mistralinferenceid", r.mistralinferenceid) + } + path.WriteString(r.mistralinferenceid) + + 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 PutMistral) 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_mistral") + 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, "inference.put_mistral") + if reader := instrument.RecordRequestBody(ctx, "inference.put_mistral", 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_mistral") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutMistral 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 putmistral.Response +func (r PutMistral) 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_mistral") + 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 PutMistral headers map. +func (r *PutMistral) Header(key, value string) *PutMistral { + r.headers.Set(key, value) + + return r +} + +// TaskType The task type. +// The only valid task type for the model to perform is `text_embedding`. +// API Name: tasktype +func (r *PutMistral) _tasktype(tasktype string) *PutMistral { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// MistralInferenceId The unique identifier of the inference endpoint. +// API Name: mistralinferenceid +func (r *PutMistral) _mistralinferenceid(mistralinferenceid string) *PutMistral { + r.paramSet |= mistralinferenceidMask + r.mistralinferenceid = mistralinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutMistral) ErrorTrace(errortrace bool) *PutMistral { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutMistral) FilterPath(filterpaths ...string) *PutMistral { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutMistral) Human(human bool) *PutMistral { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutMistral) Pretty(pretty bool) *PutMistral { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutMistral) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutMistral { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `mistral`. +// API name: service +func (r *PutMistral) Service(service mistralservicetype.MistralServiceType) *PutMistral { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `mistral` service. +// API name: service_settings +func (r *PutMistral) ServiceSettings(servicesettings types.MistralServiceSettingsVariant) *PutMistral { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.MistralServiceSettingsCaster() + + return r +} diff --git a/typedapi/inference/putmistral/request.go b/typedapi/inference/putmistral/request.go new file mode 100644 index 0000000000..4ea6f240bd --- /dev/null +++ b/typedapi/inference/putmistral/request.go @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putmistral + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/mistralservicetype" +) + +// Request holds the request body struct for the package putmistral +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_mistral/PutMistralRequest.ts#L29-L78 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `mistral`. + Service mistralservicetype.MistralServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `mistral` service. + ServiceSettings types.MistralServiceSettings `json:"service_settings"` +} + +// 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 Putmistral request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putmistral/response.go b/typedapi/inference/putmistral/response.go new file mode 100644 index 0000000000..1e0cad1c6e --- /dev/null +++ b/typedapi/inference/putmistral/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putmistral + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putmistral +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_mistral/PutMistralResponse.ts#L22-L24 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putopenai/put_openai.go b/typedapi/inference/putopenai/put_openai.go index fceb137563..42bfdbc2c0 100644 --- a/typedapi/inference/putopenai/put_openai.go +++ b/typedapi/inference/putopenai/put_openai.go @@ -16,12 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create an OpenAI inference endpoint. // // Create an inference endpoint to perform an inference task with the `openai` -// service. +// service or `openai` compatible APIs. // // When you create an inference endpoint, the associated machine learning model // is automatically deployed if it is not already running. @@ -48,7 +48,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/servicetype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/openaiservicetype" ) const ( @@ -103,7 +103,7 @@ func NewPutOpenaiFunc(tp elastictransport.Interface) NewPutOpenai { // Create an OpenAI inference endpoint. // // Create an inference endpoint to perform an inference task with the `openai` -// service. +// service or `openai` compatible APIs. // // When you create an inference endpoint, the associated machine learning model // is automatically deployed if it is not already running. @@ -420,7 +420,7 @@ func (r *PutOpenai) ChunkingSettings(chunkingsettings types.InferenceChunkingSet // The type of service supported for the specified task type. In this case, // `openai`. // API name: service -func (r *PutOpenai) Service(service servicetype.ServiceType) *PutOpenai { +func (r *PutOpenai) Service(service openaiservicetype.OpenAIServiceType) *PutOpenai { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() diff --git a/typedapi/inference/putopenai/request.go b/typedapi/inference/putopenai/request.go index 5c6dd9d5ab..c6e5fd311b 100644 --- a/typedapi/inference/putopenai/request.go +++ b/typedapi/inference/putopenai/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putopenai @@ -25,19 +25,19 @@ import ( "fmt" "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/servicetype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/openaiservicetype" ) // Request holds the request body struct for the package putopenai // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_openai/PutOpenAiRequest.ts#L28-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_openai/PutOpenAiRequest.ts#L30-L84 type Request struct { // ChunkingSettings The chunking configuration object. ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` // Service The type of service supported for the specified task type. In this case, // `openai`. - Service servicetype.ServiceType `json:"service"` + Service openaiservicetype.OpenAIServiceType `json:"service"` // ServiceSettings Settings used to install the inference model. These settings are specific to // the `openai` service. ServiceSettings types.OpenAIServiceSettings `json:"service_settings"` diff --git a/typedapi/inference/putopenai/response.go b/typedapi/inference/putopenai/response.go index 702d3a67c6..92442e23ab 100644 --- a/typedapi/inference/putopenai/response.go +++ b/typedapi/inference/putopenai/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putopenai @@ -29,7 +29,7 @@ import ( // Response holds the response body struct for the package putopenai // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_openai/PutOpenAiResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_openai/PutOpenAiResponse.ts#L22-L24 type Response struct { // ChunkingSettings Chunking configuration object diff --git a/typedapi/inference/putvoyageai/put_voyageai.go b/typedapi/inference/putvoyageai/put_voyageai.go new file mode 100644 index 0000000000..996682e223 --- /dev/null +++ b/typedapi/inference/putvoyageai/put_voyageai.go @@ -0,0 +1,442 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Create a VoyageAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `voyageai` +// service. +// +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putvoyageai + +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/voyageaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + voyageaiinferenceidMask +) + +// 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 PutVoyageai 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 + + tasktype string + voyageaiinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutVoyageai type alias for index. +type NewPutVoyageai func(tasktype, voyageaiinferenceid string) *PutVoyageai + +// NewPutVoyageaiFunc returns a new instance of PutVoyageai with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutVoyageaiFunc(tp elastictransport.Interface) NewPutVoyageai { + return func(tasktype, voyageaiinferenceid string) *PutVoyageai { + n := New(tp) + + n._tasktype(tasktype) + + n._voyageaiinferenceid(voyageaiinferenceid) + + return n + } +} + +// Create a VoyageAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `voyageai` +// service. +// +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-voyageai.html +func New(tp elastictransport.Interface) *PutVoyageai { + r := &PutVoyageai{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + 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 *PutVoyageai) Raw(raw io.Reader) *PutVoyageai { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutVoyageai) Request(req *Request) *PutVoyageai { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutVoyageai) 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 PutVoyageai: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|voyageaiinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "voyageaiinferenceid", r.voyageaiinferenceid) + } + path.WriteString(r.voyageaiinferenceid) + + 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 PutVoyageai) 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_voyageai") + 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, "inference.put_voyageai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_voyageai", 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_voyageai") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutVoyageai 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 putvoyageai.Response +func (r PutVoyageai) 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_voyageai") + 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 PutVoyageai headers map. +func (r *PutVoyageai) Header(key, value string) *PutVoyageai { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutVoyageai) _tasktype(tasktype string) *PutVoyageai { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// VoyageaiInferenceId The unique identifier of the inference endpoint. +// API Name: voyageaiinferenceid +func (r *PutVoyageai) _voyageaiinferenceid(voyageaiinferenceid string) *PutVoyageai { + r.paramSet |= voyageaiinferenceidMask + r.voyageaiinferenceid = voyageaiinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutVoyageai) ErrorTrace(errortrace bool) *PutVoyageai { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutVoyageai) FilterPath(filterpaths ...string) *PutVoyageai { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutVoyageai) Human(human bool) *PutVoyageai { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutVoyageai) Pretty(pretty bool) *PutVoyageai { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutVoyageai) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutVoyageai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `voyageai`. +// API name: service +func (r *PutVoyageai) Service(service voyageaiservicetype.VoyageAIServiceType) *PutVoyageai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `voyageai` service. +// API name: service_settings +func (r *PutVoyageai) ServiceSettings(servicesettings types.VoyageAIServiceSettingsVariant) *PutVoyageai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.VoyageAIServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutVoyageai) TaskSettings(tasksettings types.VoyageAITaskSettingsVariant) *PutVoyageai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.VoyageAITaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putvoyageai/request.go b/typedapi/inference/putvoyageai/request.go new file mode 100644 index 0000000000..2d2bd74d63 --- /dev/null +++ b/typedapi/inference/putvoyageai/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putvoyageai + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/voyageaiservicetype" +) + +// Request holds the request body struct for the package putvoyageai +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_voyageai/PutVoyageAIRequest.ts#L30-L79 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `voyageai`. + Service voyageaiservicetype.VoyageAIServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `voyageai` service. + ServiceSettings types.VoyageAIServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.VoyageAITaskSettings `json:"task_settings,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 Putvoyageai request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putvoyageai/response.go b/typedapi/inference/putvoyageai/response.go new file mode 100644 index 0000000000..623d18cf40 --- /dev/null +++ b/typedapi/inference/putvoyageai/response.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package putvoyageai + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putvoyageai +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_voyageai/PutVoyageAIResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // 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 task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putwatsonx/put_watsonx.go b/typedapi/inference/putwatsonx/put_watsonx.go index 5dc3a60a8d..8b40651937 100644 --- a/typedapi/inference/putwatsonx/put_watsonx.go +++ b/typedapi/inference/putwatsonx/put_watsonx.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a Watsonx inference endpoint. // @@ -52,7 +52,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/servicetype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watsonxservicetype" ) const ( @@ -414,7 +414,7 @@ func (r *PutWatsonx) Pretty(pretty bool) *PutWatsonx { // The type of service supported for the specified task type. In this case, // `watsonxai`. // API name: service -func (r *PutWatsonx) Service(service servicetype.ServiceType) *PutWatsonx { +func (r *PutWatsonx) Service(service watsonxservicetype.WatsonxServiceType) *PutWatsonx { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() diff --git a/typedapi/inference/putwatsonx/request.go b/typedapi/inference/putwatsonx/request.go index b7d875f73e..bbee39be37 100644 --- a/typedapi/inference/putwatsonx/request.go +++ b/typedapi/inference/putwatsonx/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putwatsonx @@ -25,17 +25,17 @@ import ( "fmt" "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/servicetype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watsonxservicetype" ) // Request holds the request body struct for the package putwatsonx // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_watsonx/PutWatsonxRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_watsonx/PutWatsonxRequest.ts#L28-L74 type Request struct { // Service The type of service supported for the specified task type. In this case, // `watsonxai`. - Service servicetype.ServiceType `json:"service"` + Service watsonxservicetype.WatsonxServiceType `json:"service"` // ServiceSettings Settings used to install the inference model. These settings are specific to // the `watsonxai` service. ServiceSettings types.WatsonxServiceSettings `json:"service_settings"` diff --git a/typedapi/inference/putwatsonx/response.go b/typedapi/inference/putwatsonx/response.go index 4513c89aa5..46ef7cf1d6 100644 --- a/typedapi/inference/putwatsonx/response.go +++ b/typedapi/inference/putwatsonx/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putwatsonx @@ -29,7 +29,7 @@ import ( // Response holds the response body struct for the package putwatsonx // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_watsonx/PutWatsonxResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/put_watsonx/PutWatsonxResponse.ts#L22-L24 type Response struct { // ChunkingSettings Chunking configuration object diff --git a/typedapi/inference/rerank/request.go b/typedapi/inference/rerank/request.go index 5b760cebfd..08ebf61bbe 100644 --- a/typedapi/inference/rerank/request.go +++ b/typedapi/inference/rerank/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rerank @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package rerank // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/rerank/RerankRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/rerank/RerankRequest.ts#L25-L72 type Request struct { // Input The text on which you want to perform the inference task. diff --git a/typedapi/inference/rerank/rerank.go b/typedapi/inference/rerank/rerank.go index bcbb8219e5..d04eb33dc9 100644 --- a/typedapi/inference/rerank/rerank.go +++ b/typedapi/inference/rerank/rerank.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Perform rereanking inference on the service package rerank diff --git a/typedapi/inference/rerank/response.go b/typedapi/inference/rerank/response.go index 55bd59f24a..310224c005 100644 --- a/typedapi/inference/rerank/response.go +++ b/typedapi/inference/rerank/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rerank @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package rerank // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/rerank/RerankResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/rerank/RerankResponse.ts#L22-L24 type Response []types.RankedDocument diff --git a/typedapi/inference/sparseembedding/request.go b/typedapi/inference/sparseembedding/request.go index 9171e440a6..9e81654454 100644 --- a/typedapi/inference/sparseembedding/request.go +++ b/typedapi/inference/sparseembedding/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package sparseembedding @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package sparseembedding // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L63 type Request struct { // Input Inference input. diff --git a/typedapi/inference/sparseembedding/response.go b/typedapi/inference/sparseembedding/response.go index bec9d81ca2..1cc116ec58 100644 --- a/typedapi/inference/sparseembedding/response.go +++ b/typedapi/inference/sparseembedding/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package sparseembedding @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package sparseembedding // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L24 type Response []types.SparseEmbeddingResult diff --git a/typedapi/inference/sparseembedding/sparse_embedding.go b/typedapi/inference/sparseembedding/sparse_embedding.go index 0b3411c5f7..e014035017 100644 --- a/typedapi/inference/sparseembedding/sparse_embedding.go +++ b/typedapi/inference/sparseembedding/sparse_embedding.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Perform sparse embedding inference on the service package sparseembedding diff --git a/typedapi/inference/streamcompletion/request.go b/typedapi/inference/streamcompletion/request.go index 9149d18146..1392a53389 100644 --- a/typedapi/inference/streamcompletion/request.go +++ b/typedapi/inference/streamcompletion/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package streamcompletion @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package streamcompletion // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/stream_completion/StreamInferenceRequest.ts#L24-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/stream_completion/StreamInferenceRequest.ts#L24-L63 type Request struct { // Input The text on which you want to perform the inference task. diff --git a/typedapi/inference/streamcompletion/response.go b/typedapi/inference/streamcompletion/response.go index 1c9018b703..e98ab24787 100644 --- a/typedapi/inference/streamcompletion/response.go +++ b/typedapi/inference/streamcompletion/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package streamcompletion // Response holds the response body struct for the package streamcompletion // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/stream_completion/StreamInferenceResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/stream_completion/StreamInferenceResponse.ts#L22-L24 type Response = []byte diff --git a/typedapi/inference/streamcompletion/stream_completion.go b/typedapi/inference/streamcompletion/stream_completion.go index d12410f1ca..6373b43050 100644 --- a/typedapi/inference/streamcompletion/stream_completion.go +++ b/typedapi/inference/streamcompletion/stream_completion.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Perform streaming inference. // Get real-time responses for completion tasks by delivering answers diff --git a/typedapi/inference/textembedding/request.go b/typedapi/inference/textembedding/request.go index 15c3b9694f..1350a307e7 100644 --- a/typedapi/inference/textembedding/request.go +++ b/typedapi/inference/textembedding/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package textembedding @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package textembedding // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/text_embedding/TextEmbeddingRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/text_embedding/TextEmbeddingRequest.ts#L25-L63 type Request struct { // Input Inference input. diff --git a/typedapi/inference/textembedding/response.go b/typedapi/inference/textembedding/response.go index a6dd83894e..ea07d2c9e6 100644 --- a/typedapi/inference/textembedding/response.go +++ b/typedapi/inference/textembedding/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package textembedding @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package textembedding // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/text_embedding/TextEmbeddingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/text_embedding/TextEmbeddingResponse.ts#L22-L24 type Response struct { AdditionalTextEmbeddingInferenceResultProperty map[string]json.RawMessage `json:"-"` TextEmbedding []types.TextEmbeddingResult `json:"text_embedding,omitempty"` diff --git a/typedapi/inference/textembedding/text_embedding.go b/typedapi/inference/textembedding/text_embedding.go index 03ec082f84..91836da197 100644 --- a/typedapi/inference/textembedding/text_embedding.go +++ b/typedapi/inference/textembedding/text_embedding.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Perform text embedding inference on the service package textembedding diff --git a/typedapi/inference/update/request.go b/typedapi/inference/update/request.go index 7d10b7ce72..276ce34444 100644 --- a/typedapi/inference/update/request.go +++ b/typedapi/inference/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package update @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/update/UpdateInferenceRequest.ts#L25-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/update/UpdateInferenceRequest.ts#L25-L61 type Request = types.InferenceEndpoint // NewRequest returns a Request diff --git a/typedapi/inference/update/response.go b/typedapi/inference/update/response.go index 31786f2983..878eee8073 100644 --- a/typedapi/inference/update/response.go +++ b/typedapi/inference/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package update @@ -29,7 +29,7 @@ import ( // Response holds the response body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/update/UpdateInferenceResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/update/UpdateInferenceResponse.ts#L22-L24 type Response struct { // ChunkingSettings Chunking configuration object diff --git a/typedapi/inference/update/update.go b/typedapi/inference/update/update.go index 1084293dc7..511b9c05f5 100644 --- a/typedapi/inference/update/update.go +++ b/typedapi/inference/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update an inference endpoint. // diff --git a/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go b/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go index 327464089d..319b784fda 100644 --- a/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go +++ b/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete GeoIP database configurations. // diff --git a/typedapi/ingest/deletegeoipdatabase/response.go b/typedapi/ingest/deletegeoipdatabase/response.go index 031bf3155f..57618f8b6f 100644 --- a/typedapi/ingest/deletegeoipdatabase/response.go +++ b/typedapi/ingest/deletegeoipdatabase/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletegeoipdatabase // Response holds the response body struct for the package deletegeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/ingest/deleteiplocationdatabase/delete_ip_location_database.go b/typedapi/ingest/deleteiplocationdatabase/delete_ip_location_database.go index 048355c885..10ee4b2480 100644 --- a/typedapi/ingest/deleteiplocationdatabase/delete_ip_location_database.go +++ b/typedapi/ingest/deleteiplocationdatabase/delete_ip_location_database.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete IP geolocation database configurations. package deleteiplocationdatabase diff --git a/typedapi/ingest/deleteiplocationdatabase/response.go b/typedapi/ingest/deleteiplocationdatabase/response.go index 91c13c0a63..c8d6f5e0e9 100644 --- a/typedapi/ingest/deleteiplocationdatabase/response.go +++ b/typedapi/ingest/deleteiplocationdatabase/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteiplocationdatabase // Response holds the response body struct for the package deleteiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/ingest/deletepipeline/delete_pipeline.go b/typedapi/ingest/deletepipeline/delete_pipeline.go index 5ffe7e517e..4e9f9f8143 100644 --- a/typedapi/ingest/deletepipeline/delete_pipeline.go +++ b/typedapi/ingest/deletepipeline/delete_pipeline.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete pipelines. // Delete one or more ingest pipelines. diff --git a/typedapi/ingest/deletepipeline/response.go b/typedapi/ingest/deletepipeline/response.go index daf0a8fcc8..6aeeb4e53e 100644 --- a/typedapi/ingest/deletepipeline/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletepipeline // Response holds the response body struct for the package deletepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ingest/geoipstats/geo_ip_stats.go b/typedapi/ingest/geoipstats/geo_ip_stats.go index ca4aa91b3a..fc52c7cdc2 100644 --- a/typedapi/ingest/geoipstats/geo_ip_stats.go +++ b/typedapi/ingest/geoipstats/geo_ip_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get GeoIP statistics. // Get download statistics for GeoIP2 databases that are used with the GeoIP diff --git a/typedapi/ingest/geoipstats/response.go b/typedapi/ingest/geoipstats/response.go index 0acb373750..7300a2a614 100644 --- a/typedapi/ingest/geoipstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package geoipstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package geoipstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31 type Response struct { // Nodes Downloaded GeoIP2 databases for each node. diff --git a/typedapi/ingest/getgeoipdatabase/get_geoip_database.go b/typedapi/ingest/getgeoipdatabase/get_geoip_database.go index 992d6cfb70..6c39c0f43b 100644 --- a/typedapi/ingest/getgeoipdatabase/get_geoip_database.go +++ b/typedapi/ingest/getgeoipdatabase/get_geoip_database.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get GeoIP database configurations. // diff --git a/typedapi/ingest/getgeoipdatabase/response.go b/typedapi/ingest/getgeoipdatabase/response.go index a54f851707..d288b05234 100644 --- a/typedapi/ingest/getgeoipdatabase/response.go +++ b/typedapi/ingest/getgeoipdatabase/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getgeoipdatabase @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L25-L27 type Response struct { Databases []types.GeoipDatabaseConfigurationMetadata `json:"databases"` } diff --git a/typedapi/ingest/getiplocationdatabase/get_ip_location_database.go b/typedapi/ingest/getiplocationdatabase/get_ip_location_database.go index 10b0180cc1..0194d3a6c8 100644 --- a/typedapi/ingest/getiplocationdatabase/get_ip_location_database.go +++ b/typedapi/ingest/getiplocationdatabase/get_ip_location_database.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get IP geolocation database configurations. package getiplocationdatabase diff --git a/typedapi/ingest/getiplocationdatabase/response.go b/typedapi/ingest/getiplocationdatabase/response.go index 90eb4e9f0e..2c4d64d4c3 100644 --- a/typedapi/ingest/getiplocationdatabase/response.go +++ b/typedapi/ingest/getiplocationdatabase/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getiplocationdatabase @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L24-L26 type Response struct { Databases []types.IpLocationDatabaseConfigurationMetadata `json:"databases"` } diff --git a/typedapi/ingest/getpipeline/get_pipeline.go b/typedapi/ingest/getpipeline/get_pipeline.go index d8bb7d05a4..db821f4a01 100644 --- a/typedapi/ingest/getpipeline/get_pipeline.go +++ b/typedapi/ingest/getpipeline/get_pipeline.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get pipelines. // diff --git a/typedapi/ingest/getpipeline/response.go b/typedapi/ingest/getpipeline/response.go index 307289c1f6..c1fdae8a45 100644 --- a/typedapi/ingest/getpipeline/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getpipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/get_pipeline/GetPipelineResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/get_pipeline/GetPipelineResponse.ts#L23-L26 type Response map[string]types.IngestPipeline diff --git a/typedapi/ingest/processorgrok/processor_grok.go b/typedapi/ingest/processorgrok/processor_grok.go index ac4e1d25ec..8044fb7096 100644 --- a/typedapi/ingest/processorgrok/processor_grok.go +++ b/typedapi/ingest/processorgrok/processor_grok.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a grok processor. // Extract structured fields out of a single text field within a document. diff --git a/typedapi/ingest/processorgrok/response.go b/typedapi/ingest/processorgrok/response.go index e11cbdeba0..28b12e1cc6 100644 --- a/typedapi/ingest/processorgrok/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package processorgrok // Response holds the response body struct for the package processorgrok // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24 type Response struct { Patterns map[string]string `json:"patterns"` } diff --git a/typedapi/ingest/putgeoipdatabase/put_geoip_database.go b/typedapi/ingest/putgeoipdatabase/put_geoip_database.go index ee3bf9e39b..8de4cd8009 100644 --- a/typedapi/ingest/putgeoipdatabase/put_geoip_database.go +++ b/typedapi/ingest/putgeoipdatabase/put_geoip_database.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a GeoIP database configuration. // diff --git a/typedapi/ingest/putgeoipdatabase/request.go b/typedapi/ingest/putgeoipdatabase/request.go index 5a4a0ce42a..bd73b42277 100644 --- a/typedapi/ingest/putgeoipdatabase/request.go +++ b/typedapi/ingest/putgeoipdatabase/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putgeoipdatabase @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L66 type Request struct { // Maxmind The configuration necessary to identify which IP geolocation provider to use diff --git a/typedapi/ingest/putgeoipdatabase/response.go b/typedapi/ingest/putgeoipdatabase/response.go index f5c06fe1cb..34827fca77 100644 --- a/typedapi/ingest/putgeoipdatabase/response.go +++ b/typedapi/ingest/putgeoipdatabase/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putgeoipdatabase // Response holds the response body struct for the package putgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/put_geoip_database/PutGeoipDatabaseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/put_geoip_database/PutGeoipDatabaseResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/ingest/putiplocationdatabase/put_ip_location_database.go b/typedapi/ingest/putiplocationdatabase/put_ip_location_database.go index cd48dee9e8..da74875535 100644 --- a/typedapi/ingest/putiplocationdatabase/put_ip_location_database.go +++ b/typedapi/ingest/putiplocationdatabase/put_ip_location_database.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update an IP geolocation database configuration. package putiplocationdatabase diff --git a/typedapi/ingest/putiplocationdatabase/request.go b/typedapi/ingest/putiplocationdatabase/request.go index 428d58a17f..1403c682db 100644 --- a/typedapi/ingest/putiplocationdatabase/request.go +++ b/typedapi/ingest/putiplocationdatabase/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putiplocationdatabase @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L62 type Request = types.DatabaseConfiguration // NewRequest returns a Request diff --git a/typedapi/ingest/putiplocationdatabase/response.go b/typedapi/ingest/putiplocationdatabase/response.go index 43d0795aae..2dcdfdead0 100644 --- a/typedapi/ingest/putiplocationdatabase/response.go +++ b/typedapi/ingest/putiplocationdatabase/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putiplocationdatabase // Response holds the response body struct for the package putiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/put_ip_location_database/PutIpLocationDatabaseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/put_ip_location_database/PutIpLocationDatabaseResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/ingest/putpipeline/put_pipeline.go b/typedapi/ingest/putpipeline/put_pipeline.go index 0529b4cf49..deecc15fe6 100644 --- a/typedapi/ingest/putpipeline/put_pipeline.go +++ b/typedapi/ingest/putpipeline/put_pipeline.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a pipeline. // Changes made using this API take effect immediately. diff --git a/typedapi/ingest/putpipeline/request.go b/typedapi/ingest/putpipeline/request.go index 679f826ce4..9e4b713852 100644 --- a/typedapi/ingest/putpipeline/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putpipeline @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L90 type Request struct { // Deprecated Marks this ingest pipeline as deprecated. diff --git a/typedapi/ingest/putpipeline/response.go b/typedapi/ingest/putpipeline/response.go index f15d69b161..512766c21f 100644 --- a/typedapi/ingest/putpipeline/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putpipeline // Response holds the response body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/put_pipeline/PutPipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ingest/simulate/request.go b/typedapi/ingest/simulate/request.go index 0eff38ad16..f7ec589cd6 100644 --- a/typedapi/ingest/simulate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package simulate @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L72 type Request struct { // Docs Sample documents to test in the pipeline. diff --git a/typedapi/ingest/simulate/response.go b/typedapi/ingest/simulate/response.go index 326acd5459..896c4afbd7 100644 --- a/typedapi/ingest/simulate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package simulate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24 type Response struct { Docs []types.SimulateDocumentResult `json:"docs"` } diff --git a/typedapi/ingest/simulate/simulate.go b/typedapi/ingest/simulate/simulate.go index 1e222aab02..3942f1fe1d 100644 --- a/typedapi/ingest/simulate/simulate.go +++ b/typedapi/ingest/simulate/simulate.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Simulate a pipeline. // diff --git a/typedapi/license/delete/delete.go b/typedapi/license/delete/delete.go index eb7bf21d2a..d154fda28f 100644 --- a/typedapi/license/delete/delete.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete the license. // diff --git a/typedapi/license/delete/response.go b/typedapi/license/delete/response.go index 97d368021e..6437813c66 100644 --- a/typedapi/license/delete/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/delete/DeleteLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/license/get/get.go b/typedapi/license/get/get.go index 324ec3df77..d85ed936c6 100644 --- a/typedapi/license/get/get.go +++ b/typedapi/license/get/get.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get license information. // diff --git a/typedapi/license/get/response.go b/typedapi/license/get/response.go index 8f0daac7f0..1d8fb014b7 100644 --- a/typedapi/license/get/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/get/GetLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/get/GetLicenseResponse.ts#L22-L24 type Response struct { License types.LicenseInformation `json:"license"` } diff --git a/typedapi/license/getbasicstatus/get_basic_status.go b/typedapi/license/getbasicstatus/get_basic_status.go index 8a5b46fccc..b7c325aba7 100644 --- a/typedapi/license/getbasicstatus/get_basic_status.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the basic license status. package getbasicstatus diff --git a/typedapi/license/getbasicstatus/response.go b/typedapi/license/getbasicstatus/response.go index cca5dd92d2..31e2135a80 100644 --- a/typedapi/license/getbasicstatus/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getbasicstatus // Response holds the response body struct for the package getbasicstatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22 type Response struct { EligibleToStartBasic bool `json:"eligible_to_start_basic"` } diff --git a/typedapi/license/gettrialstatus/get_trial_status.go b/typedapi/license/gettrialstatus/get_trial_status.go index e9c4aa133a..2b60106233 100644 --- a/typedapi/license/gettrialstatus/get_trial_status.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the trial status. package gettrialstatus diff --git a/typedapi/license/gettrialstatus/response.go b/typedapi/license/gettrialstatus/response.go index 9a8902b1b8..d2ac3fbc81 100644 --- a/typedapi/license/gettrialstatus/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package gettrialstatus // Response holds the response body struct for the package gettrialstatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22 type Response struct { EligibleToStartTrial bool `json:"eligible_to_start_trial"` } diff --git a/typedapi/license/post/post.go b/typedapi/license/post/post.go index 0858e1fd53..8aeefec7e5 100644 --- a/typedapi/license/post/post.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update the license. // @@ -103,7 +103,7 @@ func NewPostFunc(tp elastictransport.Interface) NewPost { // If the operator privileges feature is enabled, only operator users can use // this API. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-license.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-license-post func New(tp elastictransport.Interface) *Post { r := &Post{ transport: tp, diff --git a/typedapi/license/post/request.go b/typedapi/license/post/request.go index cedfbba0eb..9ae06804dd 100644 --- a/typedapi/license/post/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package post @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/post/PostLicenseRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/post/PostLicenseRequest.ts#L24-L70 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/typedapi/license/post/response.go b/typedapi/license/post/response.go index 5c97e853ec..5198d644a1 100644 --- a/typedapi/license/post/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package post @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/post/PostLicenseResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/post/PostLicenseResponse.ts#L23-L29 type Response struct { Acknowledge *types.Acknowledgement `json:"acknowledge,omitempty"` Acknowledged bool `json:"acknowledged"` diff --git a/typedapi/license/poststartbasic/post_start_basic.go b/typedapi/license/poststartbasic/post_start_basic.go index c047af50ff..9915ad4abd 100644 --- a/typedapi/license/poststartbasic/post_start_basic.go +++ b/typedapi/license/poststartbasic/post_start_basic.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start a basic license. // diff --git a/typedapi/license/poststartbasic/response.go b/typedapi/license/poststartbasic/response.go index 0f9b9a65cd..280772ca27 100644 --- a/typedapi/license/poststartbasic/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package poststartbasic @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package poststartbasic // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/license/poststarttrial/post_start_trial.go b/typedapi/license/poststarttrial/post_start_trial.go index dc575019f7..9ebe975684 100644 --- a/typedapi/license/poststarttrial/post_start_trial.go +++ b/typedapi/license/poststarttrial/post_start_trial.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start a trial. // Start a 30-day trial, which gives access to all subscription features. diff --git a/typedapi/license/poststarttrial/response.go b/typedapi/license/poststarttrial/response.go index 1a3cf168ed..945ec7c979 100644 --- a/typedapi/license/poststarttrial/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package poststarttrial @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package poststarttrial // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/logstash/deletepipeline/delete_pipeline.go b/typedapi/logstash/deletepipeline/delete_pipeline.go index 158d4455e7..6ed9c60d8d 100644 --- a/typedapi/logstash/deletepipeline/delete_pipeline.go +++ b/typedapi/logstash/deletepipeline/delete_pipeline.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a Logstash pipeline. // Delete a pipeline that is used for Logstash Central Management. diff --git a/typedapi/logstash/getpipeline/get_pipeline.go b/typedapi/logstash/getpipeline/get_pipeline.go index 92864f3d28..63f27ef14e 100644 --- a/typedapi/logstash/getpipeline/get_pipeline.go +++ b/typedapi/logstash/getpipeline/get_pipeline.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get Logstash pipelines. // Get pipelines that are used for Logstash Central Management. diff --git a/typedapi/logstash/getpipeline/response.go b/typedapi/logstash/getpipeline/response.go index 3e1d4cb7c8..15260ecbca 100644 --- a/typedapi/logstash/getpipeline/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getpipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27 type Response map[string]types.LogstashPipeline diff --git a/typedapi/logstash/putpipeline/put_pipeline.go b/typedapi/logstash/putpipeline/put_pipeline.go index 9f4a774a5a..880c46d28e 100644 --- a/typedapi/logstash/putpipeline/put_pipeline.go +++ b/typedapi/logstash/putpipeline/put_pipeline.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a Logstash pipeline. // diff --git a/typedapi/logstash/putpipeline/request.go b/typedapi/logstash/putpipeline/request.go index 6508454dd6..e0369eda4a 100644 --- a/typedapi/logstash/putpipeline/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putpipeline @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L51 type Request = types.LogstashPipeline // NewRequest returns a Request diff --git a/typedapi/migration/deprecations/deprecations.go b/typedapi/migration/deprecations/deprecations.go index 3eedfd6b9e..fe36cb586a 100644 --- a/typedapi/migration/deprecations/deprecations.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get deprecation information. // Get information about different cluster, node, and index level settings that diff --git a/typedapi/migration/deprecations/response.go b/typedapi/migration/deprecations/response.go index 8973452b9a..cab095b8dc 100644 --- a/typedapi/migration/deprecations/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deprecations @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deprecations // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/deprecations/DeprecationInfoResponse.ts#L23-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/migration/deprecations/DeprecationInfoResponse.ts#L23-L54 type Response struct { // ClusterSettings Cluster-level deprecation warnings. diff --git a/typedapi/migration/getfeatureupgradestatus/get_feature_upgrade_status.go b/typedapi/migration/getfeatureupgradestatus/get_feature_upgrade_status.go index 1c00b7a73f..92eed7376e 100644 --- a/typedapi/migration/getfeatureupgradestatus/get_feature_upgrade_status.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get feature migration information. // Version upgrades sometimes require changes to how features store diff --git a/typedapi/migration/getfeatureupgradestatus/response.go b/typedapi/migration/getfeatureupgradestatus/response.go index c53744497b..fc2e1459e6 100644 --- a/typedapi/migration/getfeatureupgradestatus/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getfeatureupgradestatus @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getfeatureupgradestatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/migration/postfeatureupgrade/post_feature_upgrade.go b/typedapi/migration/postfeatureupgrade/post_feature_upgrade.go index 989e79ede1..cf3de174ee 100644 --- a/typedapi/migration/postfeatureupgrade/post_feature_upgrade.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start the feature migration. // Version upgrades sometimes require changes to how features store diff --git a/typedapi/migration/postfeatureupgrade/response.go b/typedapi/migration/postfeatureupgrade/response.go index 53bcd5057d..a79debe1ab 100644 --- a/typedapi/migration/postfeatureupgrade/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package postfeatureupgrade @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postfeatureupgrade // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25 type Response struct { Accepted bool `json:"accepted"` Features []types.PostMigrationFeature `json:"features"` diff --git a/typedapi/ml/cleartrainedmodeldeploymentcache/clear_trained_model_deployment_cache.go b/typedapi/ml/cleartrainedmodeldeploymentcache/clear_trained_model_deployment_cache.go index aee064636c..0b98826a6f 100644 --- a/typedapi/ml/cleartrainedmodeldeploymentcache/clear_trained_model_deployment_cache.go +++ b/typedapi/ml/cleartrainedmodeldeploymentcache/clear_trained_model_deployment_cache.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear trained model deployment cache. // diff --git a/typedapi/ml/cleartrainedmodeldeploymentcache/response.go b/typedapi/ml/cleartrainedmodeldeploymentcache/response.go index 2c660996d6..df050a056c 100644 --- a/typedapi/ml/cleartrainedmodeldeploymentcache/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package cleartrainedmodeldeploymentcache // Response holds the response body struct for the package cleartrainedmodeldeploymentcache // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24 type Response struct { Cleared bool `json:"cleared"` } diff --git a/typedapi/ml/closejob/close_job.go b/typedapi/ml/closejob/close_job.go index e206db61d4..09833110d4 100644 --- a/typedapi/ml/closejob/close_job.go +++ b/typedapi/ml/closejob/close_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Close anomaly detection jobs. // diff --git a/typedapi/ml/closejob/request.go b/typedapi/ml/closejob/request.go index edfa49bbfb..45a2326bd2 100644 --- a/typedapi/ml/closejob/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package closejob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/close_job/MlCloseJobRequest.ts#L24-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/close_job/MlCloseJobRequest.ts#L24-L85 type Request struct { // AllowNoMatch Refer to the description for the `allow_no_match` query parameter. diff --git a/typedapi/ml/closejob/response.go b/typedapi/ml/closejob/response.go index e313cbebee..453dcf6665 100644 --- a/typedapi/ml/closejob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package closejob // Response holds the response body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/close_job/MlCloseJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/close_job/MlCloseJobResponse.ts#L20-L22 type Response struct { Closed bool `json:"closed"` } diff --git a/typedapi/ml/deletecalendar/delete_calendar.go b/typedapi/ml/deletecalendar/delete_calendar.go index 21641c57b5..25ad864053 100644 --- a/typedapi/ml/deletecalendar/delete_calendar.go +++ b/typedapi/ml/deletecalendar/delete_calendar.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a calendar. // diff --git a/typedapi/ml/deletecalendar/response.go b/typedapi/ml/deletecalendar/response.go index a5b824db7d..f1f6865272 100644 --- a/typedapi/ml/deletecalendar/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletecalendar // Response holds the response body struct for the package deletecalendar // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deletecalendarevent/delete_calendar_event.go b/typedapi/ml/deletecalendarevent/delete_calendar_event.go index 5c82731c3c..38fe25d917 100644 --- a/typedapi/ml/deletecalendarevent/delete_calendar_event.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete events from a calendar. package deletecalendarevent diff --git a/typedapi/ml/deletecalendarevent/response.go b/typedapi/ml/deletecalendarevent/response.go index 8ac6067d5a..e91546b31b 100644 --- a/typedapi/ml/deletecalendarevent/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletecalendarevent // Response holds the response body struct for the package deletecalendarevent // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deletecalendarjob/delete_calendar_job.go b/typedapi/ml/deletecalendarjob/delete_calendar_job.go index 52668d3436..74e9393b49 100644 --- a/typedapi/ml/deletecalendarjob/delete_calendar_job.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete anomaly jobs from a calendar. package deletecalendarjob diff --git a/typedapi/ml/deletecalendarjob/response.go b/typedapi/ml/deletecalendarjob/response.go index 7f145f8099..f0a7b130f8 100644 --- a/typedapi/ml/deletecalendarjob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletecalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package deletecalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31 type Response struct { // CalendarId A string that uniquely identifies a calendar. diff --git a/typedapi/ml/deletedatafeed/delete_datafeed.go b/typedapi/ml/deletedatafeed/delete_datafeed.go index 0cb454422b..82359b2b36 100644 --- a/typedapi/ml/deletedatafeed/delete_datafeed.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a datafeed. package deletedatafeed diff --git a/typedapi/ml/deletedatafeed/response.go b/typedapi/ml/deletedatafeed/response.go index 32fac75de0..2ea0687182 100644 --- a/typedapi/ml/deletedatafeed/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletedatafeed // Response holds the response body struct for the package deletedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deletedataframeanalytics/delete_data_frame_analytics.go b/typedapi/ml/deletedataframeanalytics/delete_data_frame_analytics.go index 525134cf67..46917ea847 100644 --- a/typedapi/ml/deletedataframeanalytics/delete_data_frame_analytics.go +++ b/typedapi/ml/deletedataframeanalytics/delete_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a data frame analytics job. package deletedataframeanalytics diff --git a/typedapi/ml/deletedataframeanalytics/response.go b/typedapi/ml/deletedataframeanalytics/response.go index 25930131db..d2650d16f8 100644 --- a/typedapi/ml/deletedataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletedataframeanalytics // Response holds the response body struct for the package deletedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deleteexpireddata/delete_expired_data.go b/typedapi/ml/deleteexpireddata/delete_expired_data.go index d5ecb07b10..df89bed82e 100644 --- a/typedapi/ml/deleteexpireddata/delete_expired_data.go +++ b/typedapi/ml/deleteexpireddata/delete_expired_data.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete expired ML data. // diff --git a/typedapi/ml/deleteexpireddata/request.go b/typedapi/ml/deleteexpireddata/request.go index ebb0225567..2d328ac093 100644 --- a/typedapi/ml/deleteexpireddata/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteexpireddata @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L85 type Request struct { // RequestsPerSecond The desired requests per second for the deletion processes. The default diff --git a/typedapi/ml/deleteexpireddata/response.go b/typedapi/ml/deleteexpireddata/response.go index 75451bc182..1203037173 100644 --- a/typedapi/ml/deleteexpireddata/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteexpireddata // Response holds the response body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22 type Response struct { Deleted bool `json:"deleted"` } diff --git a/typedapi/ml/deletefilter/delete_filter.go b/typedapi/ml/deletefilter/delete_filter.go index 6120d9971a..f90ca9a16b 100644 --- a/typedapi/ml/deletefilter/delete_filter.go +++ b/typedapi/ml/deletefilter/delete_filter.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a filter. // diff --git a/typedapi/ml/deletefilter/response.go b/typedapi/ml/deletefilter/response.go index 17016067a6..9342b6e847 100644 --- a/typedapi/ml/deletefilter/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletefilter // Response holds the response body struct for the package deletefilter // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_filter/MlDeleteFilterResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deleteforecast/delete_forecast.go b/typedapi/ml/deleteforecast/delete_forecast.go index 45e45d75cc..7fc3383f90 100644 --- a/typedapi/ml/deleteforecast/delete_forecast.go +++ b/typedapi/ml/deleteforecast/delete_forecast.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete forecasts from a job. // diff --git a/typedapi/ml/deleteforecast/response.go b/typedapi/ml/deleteforecast/response.go index 8383a37746..225845e827 100644 --- a/typedapi/ml/deleteforecast/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteforecast // Response holds the response body struct for the package deleteforecast // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deletejob/delete_job.go b/typedapi/ml/deletejob/delete_job.go index e66378b908..584421d0af 100644 --- a/typedapi/ml/deletejob/delete_job.go +++ b/typedapi/ml/deletejob/delete_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an anomaly detection job. // diff --git a/typedapi/ml/deletejob/response.go b/typedapi/ml/deletejob/response.go index f83d753771..a897159c97 100644 --- a/typedapi/ml/deletejob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletejob // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_job/MlDeleteJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deletemodelsnapshot/delete_model_snapshot.go b/typedapi/ml/deletemodelsnapshot/delete_model_snapshot.go index 92f2f31c6e..a817a73e2d 100644 --- a/typedapi/ml/deletemodelsnapshot/delete_model_snapshot.go +++ b/typedapi/ml/deletemodelsnapshot/delete_model_snapshot.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a model snapshot. // diff --git a/typedapi/ml/deletemodelsnapshot/response.go b/typedapi/ml/deletemodelsnapshot/response.go index 895b983c58..c54ff51f68 100644 --- a/typedapi/ml/deletemodelsnapshot/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletemodelsnapshot // Response holds the response body struct for the package deletemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deletetrainedmodel/delete_trained_model.go b/typedapi/ml/deletetrainedmodel/delete_trained_model.go index 5980a6b685..abb8b9881b 100644 --- a/typedapi/ml/deletetrainedmodel/delete_trained_model.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an unreferenced trained model. // diff --git a/typedapi/ml/deletetrainedmodel/response.go b/typedapi/ml/deletetrainedmodel/response.go index 865d754b88..8483d78f2e 100644 --- a/typedapi/ml/deletetrainedmodel/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletetrainedmodel // Response holds the response body struct for the package deletetrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/deletetrainedmodelalias/delete_trained_model_alias.go b/typedapi/ml/deletetrainedmodelalias/delete_trained_model_alias.go index 4e8c94aea4..be8c2f4973 100644 --- a/typedapi/ml/deletetrainedmodelalias/delete_trained_model_alias.go +++ b/typedapi/ml/deletetrainedmodelalias/delete_trained_model_alias.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a trained model alias. // diff --git a/typedapi/ml/deletetrainedmodelalias/response.go b/typedapi/ml/deletetrainedmodelalias/response.go index 4afe426096..08cf369e01 100644 --- a/typedapi/ml/deletetrainedmodelalias/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletetrainedmodelalias // Response holds the response body struct for the package deletetrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/estimatemodelmemory/estimate_model_memory.go b/typedapi/ml/estimatemodelmemory/estimate_model_memory.go index ca507d3634..5f6278ad72 100644 --- a/typedapi/ml/estimatemodelmemory/estimate_model_memory.go +++ b/typedapi/ml/estimatemodelmemory/estimate_model_memory.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Estimate job model memory usage. // diff --git a/typedapi/ml/estimatemodelmemory/request.go b/typedapi/ml/estimatemodelmemory/request.go index 10b1a49592..97e8071898 100644 --- a/typedapi/ml/estimatemodelmemory/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package estimatemodelmemory @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L71 type Request struct { // AnalysisConfig For a list of the properties that you can specify in the diff --git a/typedapi/ml/estimatemodelmemory/response.go b/typedapi/ml/estimatemodelmemory/response.go index 9af1772297..9f8f5b8b35 100644 --- a/typedapi/ml/estimatemodelmemory/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package estimatemodelmemory // Response holds the response body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24 type Response struct { ModelMemoryEstimate string `json:"model_memory_estimate"` } diff --git a/typedapi/ml/evaluatedataframe/evaluate_data_frame.go b/typedapi/ml/evaluatedataframe/evaluate_data_frame.go index 229d53ba58..0f668fe293 100644 --- a/typedapi/ml/evaluatedataframe/evaluate_data_frame.go +++ b/typedapi/ml/evaluatedataframe/evaluate_data_frame.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Evaluate data frame analytics. // diff --git a/typedapi/ml/evaluatedataframe/request.go b/typedapi/ml/evaluatedataframe/request.go index 4ef27a3c5e..e8eeb02336 100644 --- a/typedapi/ml/evaluatedataframe/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package evaluatedataframe @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L61 type Request struct { // Evaluation Defines the type of evaluation you want to perform. diff --git a/typedapi/ml/evaluatedataframe/response.go b/typedapi/ml/evaluatedataframe/response.go index c84f210db3..a379353600 100644 --- a/typedapi/ml/evaluatedataframe/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package evaluatedataframe @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L44 type Response struct { // Classification Evaluation results for a classification analysis. diff --git a/typedapi/ml/explaindataframeanalytics/explain_data_frame_analytics.go b/typedapi/ml/explaindataframeanalytics/explain_data_frame_analytics.go index 219eefeabe..8e5219cfe1 100644 --- a/typedapi/ml/explaindataframeanalytics/explain_data_frame_analytics.go +++ b/typedapi/ml/explaindataframeanalytics/explain_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Explain data frame analytics config. // diff --git a/typedapi/ml/explaindataframeanalytics/request.go b/typedapi/ml/explaindataframeanalytics/request.go index 1d419a0e4a..da5f09bffd 100644 --- a/typedapi/ml/explaindataframeanalytics/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package explaindataframeanalytics @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L120 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L120 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine diff --git a/typedapi/ml/explaindataframeanalytics/response.go b/typedapi/ml/explaindataframeanalytics/response.go index 7a6bb48ea6..4b469cb07d 100644 --- a/typedapi/ml/explaindataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package explaindataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/flushjob/flush_job.go b/typedapi/ml/flushjob/flush_job.go index 450b20dfba..2e67b06c54 100644 --- a/typedapi/ml/flushjob/flush_job.go +++ b/typedapi/ml/flushjob/flush_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Force buffered data to be processed. // The flush jobs API is only applicable when sending data for analysis using diff --git a/typedapi/ml/flushjob/request.go b/typedapi/ml/flushjob/request.go index 258163039a..e4c8c4029e 100644 --- a/typedapi/ml/flushjob/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package flushjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L107 type Request struct { // AdvanceTime Refer to the description for the `advance_time` query parameter. diff --git a/typedapi/ml/flushjob/response.go b/typedapi/ml/flushjob/response.go index ce7e9822aa..3db5af1420 100644 --- a/typedapi/ml/flushjob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package flushjob // Response holds the response body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/flush_job/MlFlushJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/forecast/forecast.go b/typedapi/ml/forecast/forecast.go index c5ec62a1e1..09b45109e4 100644 --- a/typedapi/ml/forecast/forecast.go +++ b/typedapi/ml/forecast/forecast.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Predict future behavior of a time series. // diff --git a/typedapi/ml/forecast/request.go b/typedapi/ml/forecast/request.go index b3443e6cc4..2bf0ff37d4 100644 --- a/typedapi/ml/forecast/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package forecast @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/forecast/MlForecastJobRequest.ts#L24-L95 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/forecast/MlForecastJobRequest.ts#L24-L95 type Request struct { // Duration Refer to the description for the `duration` query parameter. diff --git a/typedapi/ml/forecast/response.go b/typedapi/ml/forecast/response.go index 6e0c3ec031..cff342876b 100644 --- a/typedapi/ml/forecast/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package forecast // Response holds the response body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/forecast/MlForecastJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/forecast/MlForecastJobResponse.ts#L22-L27 type Response struct { Acknowledged bool `json:"acknowledged"` ForecastId string `json:"forecast_id"` diff --git a/typedapi/ml/getbuckets/get_buckets.go b/typedapi/ml/getbuckets/get_buckets.go index 5e187c9a3e..ccf3ecf62d 100644 --- a/typedapi/ml/getbuckets/get_buckets.go +++ b/typedapi/ml/getbuckets/get_buckets.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get anomaly detection job results for buckets. // The API presents a chronological view of the records, grouped by bucket. diff --git a/typedapi/ml/getbuckets/request.go b/typedapi/ml/getbuckets/request.go index 2d2e4ea898..1d67c31cb5 100644 --- a/typedapi/ml/getbuckets/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getbuckets @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L145 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L145 type Request struct { // AnomalyScore Refer to the description for the `anomaly_score` query parameter. diff --git a/typedapi/ml/getbuckets/response.go b/typedapi/ml/getbuckets/response.go index f699b56b67..8e8eeba3fb 100644 --- a/typedapi/ml/getbuckets/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getbuckets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_buckets/MlGetBucketsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_buckets/MlGetBucketsResponse.ts#L23-L28 type Response struct { Buckets []types.BucketSummary `json:"buckets"` Count int64 `json:"count"` diff --git a/typedapi/ml/getcalendarevents/get_calendar_events.go b/typedapi/ml/getcalendarevents/get_calendar_events.go index c2347d6269..bc8473c092 100644 --- a/typedapi/ml/getcalendarevents/get_calendar_events.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get info about events in calendars. package getcalendarevents diff --git a/typedapi/ml/getcalendarevents/response.go b/typedapi/ml/getcalendarevents/response.go index 3b58088784..3fee5ff9d6 100644 --- a/typedapi/ml/getcalendarevents/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getcalendarevents @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Events []types.CalendarEvent `json:"events"` diff --git a/typedapi/ml/getcalendars/get_calendars.go b/typedapi/ml/getcalendars/get_calendars.go index c98f6954d0..5bf1959ae5 100644 --- a/typedapi/ml/getcalendars/get_calendars.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get calendar configuration info. package getcalendars diff --git a/typedapi/ml/getcalendars/request.go b/typedapi/ml/getcalendars/request.go index c5a5ffe014..894d4bdb57 100644 --- a/typedapi/ml/getcalendars/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getcalendars @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L63 type Request struct { // Page This object is supported only when you omit the calendar identifier. diff --git a/typedapi/ml/getcalendars/response.go b/typedapi/ml/getcalendars/response.go index 733dec17c7..c0b3004e4c 100644 --- a/typedapi/ml/getcalendars/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getcalendars @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25 type Response struct { Calendars []types.Calendar `json:"calendars"` Count int64 `json:"count"` diff --git a/typedapi/ml/getcategories/get_categories.go b/typedapi/ml/getcategories/get_categories.go index 4d89957739..54e54b9ad4 100644 --- a/typedapi/ml/getcategories/get_categories.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get anomaly detection job results for categories. package getcategories diff --git a/typedapi/ml/getcategories/request.go b/typedapi/ml/getcategories/request.go index 3e59c1c489..8adbbe53f7 100644 --- a/typedapi/ml/getcategories/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getcategories @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L82 type Request struct { // Page Configures pagination. diff --git a/typedapi/ml/getcategories/response.go b/typedapi/ml/getcategories/response.go index 150fb35bfb..e53a853117 100644 --- a/typedapi/ml/getcategories/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getcategories @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_categories/MlGetCategoriesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_categories/MlGetCategoriesResponse.ts#L23-L28 type Response struct { Categories []types.Category `json:"categories"` Count int64 `json:"count"` diff --git a/typedapi/ml/getdatafeeds/get_datafeeds.go b/typedapi/ml/getdatafeeds/get_datafeeds.go index 907d682d75..6b07c58bdd 100644 --- a/typedapi/ml/getdatafeeds/get_datafeeds.go +++ b/typedapi/ml/getdatafeeds/get_datafeeds.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get datafeeds configuration info. // You can get information for multiple datafeeds in a single API request by diff --git a/typedapi/ml/getdatafeeds/response.go b/typedapi/ml/getdatafeeds/response.go index d1f0d16fe1..16372d91c6 100644 --- a/typedapi/ml/getdatafeeds/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getdatafeeds @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Datafeeds []types.MLDatafeed `json:"datafeeds"` diff --git a/typedapi/ml/getdatafeedstats/get_datafeed_stats.go b/typedapi/ml/getdatafeedstats/get_datafeed_stats.go index aeca5055f9..a78709d0e5 100644 --- a/typedapi/ml/getdatafeedstats/get_datafeed_stats.go +++ b/typedapi/ml/getdatafeedstats/get_datafeed_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get datafeeds usage info. // You can get statistics for multiple datafeeds in a single API request by diff --git a/typedapi/ml/getdatafeedstats/response.go b/typedapi/ml/getdatafeedstats/response.go index f70c6363fe..7da4ffe13e 100644 --- a/typedapi/ml/getdatafeedstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getdatafeedstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatafeedstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Datafeeds []types.DatafeedStats `json:"datafeeds"` diff --git a/typedapi/ml/getdataframeanalytics/get_data_frame_analytics.go b/typedapi/ml/getdataframeanalytics/get_data_frame_analytics.go index a43d403d47..79ccb1d43e 100644 --- a/typedapi/ml/getdataframeanalytics/get_data_frame_analytics.go +++ b/typedapi/ml/getdataframeanalytics/get_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get data frame analytics job configuration info. // You can get information for multiple data frame analytics jobs in a single diff --git a/typedapi/ml/getdataframeanalytics/response.go b/typedapi/ml/getdataframeanalytics/response.go index 88bbe5da4b..319eed707b 100644 --- a/typedapi/ml/getdataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getdataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go b/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go index ed6094b1c3..b6fe17b2c5 100644 --- a/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get data frame analytics jobs usage info. package getdataframeanalyticsstats diff --git a/typedapi/ml/getdataframeanalyticsstats/response.go b/typedapi/ml/getdataframeanalyticsstats/response.go index f7156c7f55..d6e43e986c 100644 --- a/typedapi/ml/getdataframeanalyticsstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getdataframeanalyticsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdataframeanalyticsstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L23-L29 type Response struct { Count int64 `json:"count"` // DataFrameAnalytics An array of objects that contain usage information for data frame analytics diff --git a/typedapi/ml/getfilters/get_filters.go b/typedapi/ml/getfilters/get_filters.go index ba5d7bcc3d..16abd63c81 100644 --- a/typedapi/ml/getfilters/get_filters.go +++ b/typedapi/ml/getfilters/get_filters.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get filters. // You can get a single filter or all filters. diff --git a/typedapi/ml/getfilters/response.go b/typedapi/ml/getfilters/response.go index a882f9b398..1bb6b8c43a 100644 --- a/typedapi/ml/getfilters/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getfilters @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfilters // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_filters/MlGetFiltersResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_filters/MlGetFiltersResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Filters []types.MLFilter `json:"filters"` diff --git a/typedapi/ml/getinfluencers/get_influencers.go b/typedapi/ml/getinfluencers/get_influencers.go index cd72a4ada8..2913b0e94b 100644 --- a/typedapi/ml/getinfluencers/get_influencers.go +++ b/typedapi/ml/getinfluencers/get_influencers.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get anomaly detection job results for influencers. // Influencers are the entities that have contributed to, or are to blame for, diff --git a/typedapi/ml/getinfluencers/request.go b/typedapi/ml/getinfluencers/request.go index 99890b484a..87083e58c0 100644 --- a/typedapi/ml/getinfluencers/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getinfluencers @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L105 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L105 type Request struct { // Page Configures pagination. diff --git a/typedapi/ml/getinfluencers/response.go b/typedapi/ml/getinfluencers/response.go index 477e997a79..db428e127c 100644 --- a/typedapi/ml/getinfluencers/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getinfluencers @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29 type Response struct { Count int64 `json:"count"` // Influencers Array of influencer objects diff --git a/typedapi/ml/getjobs/get_jobs.go b/typedapi/ml/getjobs/get_jobs.go index 9211e3d572..9812059fa1 100644 --- a/typedapi/ml/getjobs/get_jobs.go +++ b/typedapi/ml/getjobs/get_jobs.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get anomaly detection jobs configuration info. // You can get information for multiple anomaly detection jobs in a single API diff --git a/typedapi/ml/getjobs/response.go b/typedapi/ml/getjobs/response.go index edc93984c9..995c530416 100644 --- a/typedapi/ml/getjobs/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getjobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_jobs/MlGetJobsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_jobs/MlGetJobsResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Jobs []types.Job `json:"jobs"` diff --git a/typedapi/ml/getjobstats/get_job_stats.go b/typedapi/ml/getjobstats/get_job_stats.go index 40ecacb41b..f7072698ea 100644 --- a/typedapi/ml/getjobstats/get_job_stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get anomaly detection jobs usage info. package getjobstats diff --git a/typedapi/ml/getjobstats/response.go b/typedapi/ml/getjobstats/response.go index 5708ed4cbc..6b75208361 100644 --- a/typedapi/ml/getjobstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getjobstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Jobs []types.JobStats `json:"jobs"` diff --git a/typedapi/ml/getmemorystats/get_memory_stats.go b/typedapi/ml/getmemorystats/get_memory_stats.go index 24ffe4b4d3..307247eab6 100644 --- a/typedapi/ml/getmemorystats/get_memory_stats.go +++ b/typedapi/ml/getmemorystats/get_memory_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get machine learning memory usage info. // Get information about how machine learning jobs and trained models are using diff --git a/typedapi/ml/getmemorystats/response.go b/typedapi/ml/getmemorystats/response.go index a5a76bfe52..1260274aca 100644 --- a/typedapi/ml/getmemorystats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getmemorystats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmemorystats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/getmodelsnapshots/get_model_snapshots.go b/typedapi/ml/getmodelsnapshots/get_model_snapshots.go index 3e0e14bbe1..bdde64ef4c 100644 --- a/typedapi/ml/getmodelsnapshots/get_model_snapshots.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get model snapshots info. package getmodelsnapshots diff --git a/typedapi/ml/getmodelsnapshots/request.go b/typedapi/ml/getmodelsnapshots/request.go index 6c55cf6457..bf38c0703c 100644 --- a/typedapi/ml/getmodelsnapshots/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getmodelsnapshots @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L108 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L108 type Request struct { // Desc Refer to the description for the `desc` query parameter. diff --git a/typedapi/ml/getmodelsnapshots/response.go b/typedapi/ml/getmodelsnapshots/response.go index b296137d8e..f870c57b9c 100644 --- a/typedapi/ml/getmodelsnapshots/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getmodelsnapshots @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/getmodelsnapshotupgradestats/get_model_snapshot_upgrade_stats.go b/typedapi/ml/getmodelsnapshotupgradestats/get_model_snapshot_upgrade_stats.go index 66a6b687c1..ac67ab6098 100644 --- a/typedapi/ml/getmodelsnapshotupgradestats/get_model_snapshot_upgrade_stats.go +++ b/typedapi/ml/getmodelsnapshotupgradestats/get_model_snapshot_upgrade_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get anomaly detection job model snapshot upgrade usage info. package getmodelsnapshotupgradestats diff --git a/typedapi/ml/getmodelsnapshotupgradestats/response.go b/typedapi/ml/getmodelsnapshotupgradestats/response.go index a6a799db7e..7b4e972884 100644 --- a/typedapi/ml/getmodelsnapshotupgradestats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getmodelsnapshotupgradestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmodelsnapshotupgradestats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/getoverallbuckets/get_overall_buckets.go b/typedapi/ml/getoverallbuckets/get_overall_buckets.go index a0eb85ad36..1ad7e267d9 100644 --- a/typedapi/ml/getoverallbuckets/get_overall_buckets.go +++ b/typedapi/ml/getoverallbuckets/get_overall_buckets.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get overall bucket results. // diff --git a/typedapi/ml/getoverallbuckets/request.go b/typedapi/ml/getoverallbuckets/request.go index 6682047aec..408fc33527 100644 --- a/typedapi/ml/getoverallbuckets/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getoverallbuckets @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153 type Request struct { // AllowNoMatch Refer to the description for the `allow_no_match` query parameter. diff --git a/typedapi/ml/getoverallbuckets/response.go b/typedapi/ml/getoverallbuckets/response.go index c18b30d05e..a4004bb2bb 100644 --- a/typedapi/ml/getoverallbuckets/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getoverallbuckets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/getrecords/get_records.go b/typedapi/ml/getrecords/get_records.go index 44e8287baa..968e976dac 100644 --- a/typedapi/ml/getrecords/get_records.go +++ b/typedapi/ml/getrecords/get_records.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get anomaly records for an anomaly detection job. // Records contain the detailed analytical results. They describe the anomalous diff --git a/typedapi/ml/getrecords/request.go b/typedapi/ml/getrecords/request.go index 19b109e677..fe2d8646ef 100644 --- a/typedapi/ml/getrecords/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrecords @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L135 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L135 type Request struct { // Desc Refer to the description for the `desc` query parameter. diff --git a/typedapi/ml/getrecords/response.go b/typedapi/ml/getrecords/response.go index ba9c6517e0..2c14dca28b 100644 --- a/typedapi/ml/getrecords/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrecords @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Records []types.Anomaly `json:"records"` diff --git a/typedapi/ml/gettrainedmodels/get_trained_models.go b/typedapi/ml/gettrainedmodels/get_trained_models.go index da6fa4b5ad..6d40a81175 100644 --- a/typedapi/ml/gettrainedmodels/get_trained_models.go +++ b/typedapi/ml/gettrainedmodels/get_trained_models.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get trained model configuration info. package gettrainedmodels diff --git a/typedapi/ml/gettrainedmodels/response.go b/typedapi/ml/gettrainedmodels/response.go index 1bbb366b1b..3529168a8d 100644 --- a/typedapi/ml/gettrainedmodels/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package gettrainedmodels @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/gettrainedmodelsstats/get_trained_models_stats.go b/typedapi/ml/gettrainedmodelsstats/get_trained_models_stats.go index fbc958775d..8d1c47da7c 100644 --- a/typedapi/ml/gettrainedmodelsstats/get_trained_models_stats.go +++ b/typedapi/ml/gettrainedmodelsstats/get_trained_models_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get trained models usage info. // You can get usage information for multiple trained diff --git a/typedapi/ml/gettrainedmodelsstats/response.go b/typedapi/ml/gettrainedmodelsstats/response.go index 8cf6dcfe9a..d3bc89194a 100644 --- a/typedapi/ml/gettrainedmodelsstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package gettrainedmodelsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettrainedmodelsstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/infertrainedmodel/infer_trained_model.go b/typedapi/ml/infertrainedmodel/infer_trained_model.go index 3aad7c6c8b..df2ed688ac 100644 --- a/typedapi/ml/infertrainedmodel/infer_trained_model.go +++ b/typedapi/ml/infertrainedmodel/infer_trained_model.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Evaluate a trained model. package infertrainedmodel diff --git a/typedapi/ml/infertrainedmodel/request.go b/typedapi/ml/infertrainedmodel/request.go index 74abed9717..e14d6b085f 100644 --- a/typedapi/ml/infertrainedmodel/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package infertrainedmodel @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L72 type Request struct { // Docs An array of objects to pass to the model for inference. The objects should diff --git a/typedapi/ml/infertrainedmodel/response.go b/typedapi/ml/infertrainedmodel/response.go index a8d62201c5..d2cf69d9d1 100644 --- a/typedapi/ml/infertrainedmodel/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package infertrainedmodel @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26 type Response struct { InferenceResults []types.InferenceResponseResult `json:"inference_results"` } diff --git a/typedapi/ml/info/info.go b/typedapi/ml/info/info.go index 5ebe1a1b2c..4d5f9f6e46 100644 --- a/typedapi/ml/info/info.go +++ b/typedapi/ml/info/info.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get machine learning information. // Get defaults and limits used by machine learning. diff --git a/typedapi/ml/info/response.go b/typedapi/ml/info/response.go index 4617aed054..7d9cd03ef3 100644 --- a/typedapi/ml/info/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/info/MlInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/info/MlInfoResponse.ts#L22-L29 type Response struct { Defaults types.Defaults `json:"defaults"` Limits types.Limits `json:"limits"` diff --git a/typedapi/ml/openjob/open_job.go b/typedapi/ml/openjob/open_job.go index 97139be212..4c778b09f2 100644 --- a/typedapi/ml/openjob/open_job.go +++ b/typedapi/ml/openjob/open_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Open anomaly detection jobs. // diff --git a/typedapi/ml/openjob/request.go b/typedapi/ml/openjob/request.go index 0cda993af6..ca78af69c6 100644 --- a/typedapi/ml/openjob/request.go +++ b/typedapi/ml/openjob/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package openjob @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/open_job/MlOpenJobRequest.ts#L24-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/open_job/MlOpenJobRequest.ts#L24-L67 type Request struct { // Timeout Refer to the description for the `timeout` query parameter. diff --git a/typedapi/ml/openjob/response.go b/typedapi/ml/openjob/response.go index bbe562e85b..45219ae6f4 100644 --- a/typedapi/ml/openjob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package openjob // Response holds the response body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/open_job/MlOpenJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/postcalendarevents/post_calendar_events.go b/typedapi/ml/postcalendarevents/post_calendar_events.go index d942c609bc..88b94df7ef 100644 --- a/typedapi/ml/postcalendarevents/post_calendar_events.go +++ b/typedapi/ml/postcalendarevents/post_calendar_events.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Add scheduled events to the calendar. package postcalendarevents diff --git a/typedapi/ml/postcalendarevents/request.go b/typedapi/ml/postcalendarevents/request.go index 1f15d56884..1496c20354 100644 --- a/typedapi/ml/postcalendarevents/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package postcalendarevents @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L48 type Request struct { // Events A list of one of more scheduled events. The event’s start and end times can diff --git a/typedapi/ml/postcalendarevents/response.go b/typedapi/ml/postcalendarevents/response.go index 2e497ed8e0..0438157676 100644 --- a/typedapi/ml/postcalendarevents/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package postcalendarevents @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24 type Response struct { Events []types.CalendarEvent `json:"events"` } diff --git a/typedapi/ml/postdata/post_data.go b/typedapi/ml/postdata/post_data.go index 92c5d4a66f..a5964deac9 100644 --- a/typedapi/ml/postdata/post_data.go +++ b/typedapi/ml/postdata/post_data.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Send data to an anomaly detection job for analysis. // diff --git a/typedapi/ml/postdata/request.go b/typedapi/ml/postdata/request.go index e9e80b8213..cc85b2b72f 100644 --- a/typedapi/ml/postdata/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package postdata @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L76 type Request = []json.RawMessage // NewRequest returns a Request diff --git a/typedapi/ml/postdata/response.go b/typedapi/ml/postdata/response.go index 24f7fbc6f6..da36819f6f 100644 --- a/typedapi/ml/postdata/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package postdata // Response holds the response body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/post_data/MlPostJobDataResponse.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/post_data/MlPostJobDataResponse.ts#L24-L45 type Response struct { BucketCount int64 `json:"bucket_count"` EarliestRecordTimestamp *int64 `json:"earliest_record_timestamp,omitempty"` diff --git a/typedapi/ml/previewdatafeed/preview_datafeed.go b/typedapi/ml/previewdatafeed/preview_datafeed.go index df70989896..4b1fbcea5d 100644 --- a/typedapi/ml/previewdatafeed/preview_datafeed.go +++ b/typedapi/ml/previewdatafeed/preview_datafeed.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Preview a datafeed. // This API returns the first "page" of search results from a datafeed. diff --git a/typedapi/ml/previewdatafeed/request.go b/typedapi/ml/previewdatafeed/request.go index 4f9ced1325..7467515e70 100644 --- a/typedapi/ml/previewdatafeed/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package previewdatafeed @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L81 type Request struct { // DatafeedConfig The datafeed definition to preview. diff --git a/typedapi/ml/previewdatafeed/response.go b/typedapi/ml/previewdatafeed/response.go index 09217a1724..11843e4486 100644 --- a/typedapi/ml/previewdatafeed/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package previewdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23 type Response []json.RawMessage diff --git a/typedapi/ml/previewdataframeanalytics/preview_data_frame_analytics.go b/typedapi/ml/previewdataframeanalytics/preview_data_frame_analytics.go index 95f3267297..a376576f99 100644 --- a/typedapi/ml/previewdataframeanalytics/preview_data_frame_analytics.go +++ b/typedapi/ml/previewdataframeanalytics/preview_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Preview features used by data frame analytics. // Preview the extracted features used by a data frame analytics config. diff --git a/typedapi/ml/previewdataframeanalytics/request.go b/typedapi/ml/previewdataframeanalytics/request.go index 6142fce6e4..855a20492c 100644 --- a/typedapi/ml/previewdataframeanalytics/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package previewdataframeanalytics @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L60 type Request struct { // Config A data frame analytics config as described in create data frame analytics diff --git a/typedapi/ml/previewdataframeanalytics/response.go b/typedapi/ml/previewdataframeanalytics/response.go index d7d48d5a0e..b8ecffca84 100644 --- a/typedapi/ml/previewdataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package previewdataframeanalytics // Response holds the response body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/putcalendar/put_calendar.go b/typedapi/ml/putcalendar/put_calendar.go index 3f464ff6de..d252fcb97f 100644 --- a/typedapi/ml/putcalendar/put_calendar.go +++ b/typedapi/ml/putcalendar/put_calendar.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a calendar. package putcalendar diff --git a/typedapi/ml/putcalendar/request.go b/typedapi/ml/putcalendar/request.go index 3cd0c23155..f0b5313b27 100644 --- a/typedapi/ml/putcalendar/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putcalendar @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L51 type Request struct { // Description A description of the calendar. diff --git a/typedapi/ml/putcalendar/response.go b/typedapi/ml/putcalendar/response.go index 0f3e8697f9..f8e2343de0 100644 --- a/typedapi/ml/putcalendar/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putcalendar @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_calendar/MlPutCalendarResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_calendar/MlPutCalendarResponse.ts#L22-L31 type Response struct { // CalendarId A string that uniquely identifies a calendar. diff --git a/typedapi/ml/putcalendarjob/put_calendar_job.go b/typedapi/ml/putcalendarjob/put_calendar_job.go index 615edd9a15..c5851cde72 100644 --- a/typedapi/ml/putcalendarjob/put_calendar_job.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Add anomaly detection job to calendar. package putcalendarjob diff --git a/typedapi/ml/putcalendarjob/response.go b/typedapi/ml/putcalendarjob/response.go index ef1a014986..23e6e7d32b 100644 --- a/typedapi/ml/putcalendarjob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putcalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31 type Response struct { // CalendarId A string that uniquely identifies a calendar. diff --git a/typedapi/ml/putdatafeed/put_datafeed.go b/typedapi/ml/putdatafeed/put_datafeed.go index 9ef3168747..4e85c5c9f8 100644 --- a/typedapi/ml/putdatafeed/put_datafeed.go +++ b/typedapi/ml/putdatafeed/put_datafeed.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a datafeed. // Datafeeds retrieve data from Elasticsearch for analysis by an anomaly diff --git a/typedapi/ml/putdatafeed/request.go b/typedapi/ml/putdatafeed/request.go index 18d8c5cef7..f347161061 100644 --- a/typedapi/ml/putdatafeed/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putdatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L184 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L184 type Request struct { // Aggregations If set, the datafeed performs aggregation searches. diff --git a/typedapi/ml/putdatafeed/response.go b/typedapi/ml/putdatafeed/response.go index 8544f8fe70..0e3c12f19c 100644 --- a/typedapi/ml/putdatafeed/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/putdataframeanalytics/put_data_frame_analytics.go b/typedapi/ml/putdataframeanalytics/put_data_frame_analytics.go index 7ba464ee0c..847a16a09e 100644 --- a/typedapi/ml/putdataframeanalytics/put_data_frame_analytics.go +++ b/typedapi/ml/putdataframeanalytics/put_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a data frame analytics job. // This API creates a data frame analytics job that performs an analysis on the diff --git a/typedapi/ml/putdataframeanalytics/request.go b/typedapi/ml/putdataframeanalytics/request.go index 26795c71d4..50fd45e95d 100644 --- a/typedapi/ml/putdataframeanalytics/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putdataframeanalytics @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L155 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L155 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine diff --git a/typedapi/ml/putdataframeanalytics/response.go b/typedapi/ml/putdataframeanalytics/response.go index c52e3f8654..dc584b013d 100644 --- a/typedapi/ml/putdataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putdataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L47 type Response struct { AllowLazyStart bool `json:"allow_lazy_start"` Analysis types.DataframeAnalysisContainer `json:"analysis"` diff --git a/typedapi/ml/putfilter/put_filter.go b/typedapi/ml/putfilter/put_filter.go index 0c3c62b82a..f2d7220fe2 100644 --- a/typedapi/ml/putfilter/put_filter.go +++ b/typedapi/ml/putfilter/put_filter.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a filter. // A filter contains a list of strings. It can be used by one or more anomaly diff --git a/typedapi/ml/putfilter/request.go b/typedapi/ml/putfilter/request.go index b770369a0f..19e14f3149 100644 --- a/typedapi/ml/putfilter/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putfilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L58 type Request struct { // Description A description of the filter. diff --git a/typedapi/ml/putfilter/response.go b/typedapi/ml/putfilter/response.go index f7c4c599c9..87e79f48ce 100644 --- a/typedapi/ml/putfilter/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putfilter // Response holds the response body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_filter/MlPutFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_filter/MlPutFilterResponse.ts#L22-L28 type Response struct { Description string `json:"description"` FilterId string `json:"filter_id"` diff --git a/typedapi/ml/putjob/put_job.go b/typedapi/ml/putjob/put_job.go index cff401e0b1..4401cd1267 100644 --- a/typedapi/ml/putjob/put_job.go +++ b/typedapi/ml/putjob/put_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create an anomaly detection job. // diff --git a/typedapi/ml/putjob/request.go b/typedapi/ml/putjob/request.go index d94bef736e..22e95b291f 100644 --- a/typedapi/ml/putjob/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_job/MlPutJobRequest.ts#L30-L157 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_job/MlPutJobRequest.ts#L30-L157 type Request struct { // AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there diff --git a/typedapi/ml/putjob/response.go b/typedapi/ml/putjob/response.go index 6a98193475..7be75665e5 100644 --- a/typedapi/ml/putjob/response.go +++ b/typedapi/ml/putjob/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putjob @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_job/MlPutJobResponse.ts#L29-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_job/MlPutJobResponse.ts#L29-L52 type Response struct { AllowLazyOpen bool `json:"allow_lazy_open"` AnalysisConfig types.AnalysisConfigRead `json:"analysis_config"` diff --git a/typedapi/ml/puttrainedmodel/put_trained_model.go b/typedapi/ml/puttrainedmodel/put_trained_model.go index f13a99e3e3..bf45ff2a65 100644 --- a/typedapi/ml/puttrainedmodel/put_trained_model.go +++ b/typedapi/ml/puttrainedmodel/put_trained_model.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a trained model. // Enable you to supply a trained model that is not created by data frame diff --git a/typedapi/ml/puttrainedmodel/request.go b/typedapi/ml/puttrainedmodel/request.go index 0ecabf2a2c..b84a165578 100644 --- a/typedapi/ml/puttrainedmodel/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttrainedmodel @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L135 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L135 type Request struct { // CompressedDefinition The compressed (GZipped and Base64 encoded) inference definition of the diff --git a/typedapi/ml/puttrainedmodel/response.go b/typedapi/ml/puttrainedmodel/response.go index f8dc54711d..55fa341c84 100644 --- a/typedapi/ml/puttrainedmodel/response.go +++ b/typedapi/ml/puttrainedmodel/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttrainedmodel @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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. @@ -69,8 +69,9 @@ type Response struct { ModelPackage *types.ModelPackageConfig `json:"model_package,omitempty"` ModelSizeBytes types.ByteSize `json:"model_size_bytes,omitempty"` // ModelType The model type - ModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"` - PrefixStrings *types.TrainedModelPrefixStrings `json:"prefix_strings,omitempty"` + ModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"` + PlatformArchitecture *string `json:"platform_architecture,omitempty"` + PrefixStrings *types.TrainedModelPrefixStrings `json:"prefix_strings,omitempty"` // Tags A comma delimited string of tags. A trained model can have many tags, or // none. Tags []string `json:"tags"` @@ -247,6 +248,18 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "ModelType", err) } + case "platform_architecture": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "PlatformArchitecture", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.PlatformArchitecture = &o + case "prefix_strings": if err := dec.Decode(&s.PrefixStrings); err != nil { return fmt.Errorf("%s | %w", "PrefixStrings", err) diff --git a/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go b/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go index 2c630d9a8f..d1cd4cfd7e 100644 --- a/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go +++ b/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a trained model alias. // A trained model alias is a logical name used to reference a single trained diff --git a/typedapi/ml/puttrainedmodelalias/response.go b/typedapi/ml/puttrainedmodelalias/response.go index 6ff0fb045f..c96c2cd415 100644 --- a/typedapi/ml/puttrainedmodelalias/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttrainedmodelalias // Response holds the response body struct for the package puttrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/puttrainedmodeldefinitionpart/put_trained_model_definition_part.go b/typedapi/ml/puttrainedmodeldefinitionpart/put_trained_model_definition_part.go index 8040ecc037..f7992f4323 100644 --- a/typedapi/ml/puttrainedmodeldefinitionpart/put_trained_model_definition_part.go +++ b/typedapi/ml/puttrainedmodeldefinitionpart/put_trained_model_definition_part.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create part of a trained model definition. package puttrainedmodeldefinitionpart diff --git a/typedapi/ml/puttrainedmodeldefinitionpart/request.go b/typedapi/ml/puttrainedmodeldefinitionpart/request.go index 4c07afbc2c..ad7436d18e 100644 --- a/typedapi/ml/puttrainedmodeldefinitionpart/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttrainedmodeldefinitionpart @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L65 type Request struct { // Definition The definition part for the model. Must be a base64 encoded string. diff --git a/typedapi/ml/puttrainedmodeldefinitionpart/response.go b/typedapi/ml/puttrainedmodeldefinitionpart/response.go index b9cb8a08a8..9dce1f4e15 100644 --- a/typedapi/ml/puttrainedmodeldefinitionpart/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttrainedmodeldefinitionpart // Response holds the response body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/puttrainedmodelvocabulary/put_trained_model_vocabulary.go b/typedapi/ml/puttrainedmodelvocabulary/put_trained_model_vocabulary.go index 7ed96821b9..ef50c753f5 100644 --- a/typedapi/ml/puttrainedmodelvocabulary/put_trained_model_vocabulary.go +++ b/typedapi/ml/puttrainedmodelvocabulary/put_trained_model_vocabulary.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a trained model vocabulary. // This API is supported only for natural language processing (NLP) models. diff --git a/typedapi/ml/puttrainedmodelvocabulary/request.go b/typedapi/ml/puttrainedmodelvocabulary/request.go index 62d3a036ac..9b466854a8 100644 --- a/typedapi/ml/puttrainedmodelvocabulary/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttrainedmodelvocabulary @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L68 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L68 type Request struct { // Merges The optional model merges if required by the tokenizer. diff --git a/typedapi/ml/puttrainedmodelvocabulary/response.go b/typedapi/ml/puttrainedmodelvocabulary/response.go index 3b98b34f96..896f460955 100644 --- a/typedapi/ml/puttrainedmodelvocabulary/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttrainedmodelvocabulary // Response holds the response body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/resetjob/reset_job.go b/typedapi/ml/resetjob/reset_job.go index 11120417d7..a8baa79bea 100644 --- a/typedapi/ml/resetjob/reset_job.go +++ b/typedapi/ml/resetjob/reset_job.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Reset an anomaly detection job. // All model state and results are deleted. The job is ready to start over as if diff --git a/typedapi/ml/resetjob/response.go b/typedapi/ml/resetjob/response.go index c5492bc8b5..f9b55c8245 100644 --- a/typedapi/ml/resetjob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package resetjob // Response holds the response body struct for the package resetjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/reset_job/MlResetJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/revertmodelsnapshot/request.go b/typedapi/ml/revertmodelsnapshot/request.go index 04b9aaa893..ce522ce1d0 100644 --- a/typedapi/ml/revertmodelsnapshot/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package revertmodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L77 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L77 type Request struct { // DeleteInterveningResults Refer to the description for the `delete_intervening_results` query diff --git a/typedapi/ml/revertmodelsnapshot/response.go b/typedapi/ml/revertmodelsnapshot/response.go index 1bfcb2edc5..ded170b8d0 100644 --- a/typedapi/ml/revertmodelsnapshot/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package revertmodelsnapshot @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24 type Response struct { Model types.ModelSnapshot `json:"model"` } diff --git a/typedapi/ml/revertmodelsnapshot/revert_model_snapshot.go b/typedapi/ml/revertmodelsnapshot/revert_model_snapshot.go index f377a8834c..227a4049ae 100644 --- a/typedapi/ml/revertmodelsnapshot/revert_model_snapshot.go +++ b/typedapi/ml/revertmodelsnapshot/revert_model_snapshot.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Revert to a snapshot. // The machine learning features react quickly to anomalous input, learning new diff --git a/typedapi/ml/setupgrademode/response.go b/typedapi/ml/setupgrademode/response.go index c80aa6cf0d..19093117b9 100644 --- a/typedapi/ml/setupgrademode/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package setupgrademode // Response holds the response body struct for the package setupgrademode // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/setupgrademode/set_upgrade_mode.go b/typedapi/ml/setupgrademode/set_upgrade_mode.go index 5c02d8abdf..ebf451372c 100644 --- a/typedapi/ml/setupgrademode/set_upgrade_mode.go +++ b/typedapi/ml/setupgrademode/set_upgrade_mode.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Set upgrade_mode for ML indices. // Sets a cluster wide upgrade_mode setting that prepares machine learning diff --git a/typedapi/ml/startdatafeed/request.go b/typedapi/ml/startdatafeed/request.go index d40edb6c45..8b6daa32e3 100644 --- a/typedapi/ml/startdatafeed/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package startdatafeed @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L99 type Request struct { // End Refer to the description for the `end` query parameter. diff --git a/typedapi/ml/startdatafeed/response.go b/typedapi/ml/startdatafeed/response.go index e2ce0cb52f..b4c5b63f5b 100644 --- a/typedapi/ml/startdatafeed/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package startdatafeed @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/startdatafeed/start_datafeed.go b/typedapi/ml/startdatafeed/start_datafeed.go index 33469ff0d6..45cf5fd3ff 100644 --- a/typedapi/ml/startdatafeed/start_datafeed.go +++ b/typedapi/ml/startdatafeed/start_datafeed.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start datafeeds. // diff --git a/typedapi/ml/startdataframeanalytics/response.go b/typedapi/ml/startdataframeanalytics/response.go index 4e0bf60d23..7566f7e817 100644 --- a/typedapi/ml/startdataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package startdataframeanalytics // Response holds the response body struct for the package startdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/startdataframeanalytics/start_data_frame_analytics.go b/typedapi/ml/startdataframeanalytics/start_data_frame_analytics.go index 46a7283deb..10cbf1579b 100644 --- a/typedapi/ml/startdataframeanalytics/start_data_frame_analytics.go +++ b/typedapi/ml/startdataframeanalytics/start_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start a data frame analytics job. // A data frame analytics job can be started and stopped multiple times diff --git a/typedapi/ml/starttrainedmodeldeployment/request.go b/typedapi/ml/starttrainedmodeldeployment/request.go index 24377a283d..f4d7aa7de3 100644 --- a/typedapi/ml/starttrainedmodeldeployment/request.go +++ b/typedapi/ml/starttrainedmodeldeployment/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package starttrainedmodeldeployment @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package starttrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L111 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L111 type Request struct { // AdaptiveAllocations Adaptive allocations configuration. When enabled, the number of allocations diff --git a/typedapi/ml/starttrainedmodeldeployment/response.go b/typedapi/ml/starttrainedmodeldeployment/response.go index 728ec7b8f3..c0014413d6 100644 --- a/typedapi/ml/starttrainedmodeldeployment/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package starttrainedmodeldeployment @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package starttrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26 type Response struct { Assignment types.TrainedModelAssignment `json:"assignment"` } diff --git a/typedapi/ml/starttrainedmodeldeployment/start_trained_model_deployment.go b/typedapi/ml/starttrainedmodeldeployment/start_trained_model_deployment.go index b128ac1b1b..553a064a40 100644 --- a/typedapi/ml/starttrainedmodeldeployment/start_trained_model_deployment.go +++ b/typedapi/ml/starttrainedmodeldeployment/start_trained_model_deployment.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start a trained model deployment. // It allocates the model to every machine learning node. diff --git a/typedapi/ml/stopdatafeed/request.go b/typedapi/ml/stopdatafeed/request.go index b7550d765a..acaaeb8e32 100644 --- a/typedapi/ml/stopdatafeed/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stopdatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L86 type Request struct { // AllowNoMatch Refer to the description for the `allow_no_match` query parameter. diff --git a/typedapi/ml/stopdatafeed/response.go b/typedapi/ml/stopdatafeed/response.go index bafd99efb8..99be073246 100644 --- a/typedapi/ml/stopdatafeed/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stopdatafeed // Response holds the response body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22 type Response struct { Stopped bool `json:"stopped"` } diff --git a/typedapi/ml/stopdatafeed/stop_datafeed.go b/typedapi/ml/stopdatafeed/stop_datafeed.go index 4327b1cb89..dcfd008e5a 100644 --- a/typedapi/ml/stopdatafeed/stop_datafeed.go +++ b/typedapi/ml/stopdatafeed/stop_datafeed.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop datafeeds. // A datafeed that is stopped ceases to retrieve data from Elasticsearch. A diff --git a/typedapi/ml/stopdataframeanalytics/response.go b/typedapi/ml/stopdataframeanalytics/response.go index fe052effb1..ae1a64ec6b 100644 --- a/typedapi/ml/stopdataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stopdataframeanalytics // Response holds the response body struct for the package stopdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22 type Response struct { Stopped bool `json:"stopped"` } diff --git a/typedapi/ml/stopdataframeanalytics/stop_data_frame_analytics.go b/typedapi/ml/stopdataframeanalytics/stop_data_frame_analytics.go index 48b674b2ba..afb3f56fc9 100644 --- a/typedapi/ml/stopdataframeanalytics/stop_data_frame_analytics.go +++ b/typedapi/ml/stopdataframeanalytics/stop_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop data frame analytics jobs. // A data frame analytics job can be started and stopped multiple times diff --git a/typedapi/ml/stoptrainedmodeldeployment/response.go b/typedapi/ml/stoptrainedmodeldeployment/response.go index 26c005d593..8da4c0d41c 100644 --- a/typedapi/ml/stoptrainedmodeldeployment/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stoptrainedmodeldeployment // Response holds the response body struct for the package stoptrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22 type Response struct { Stopped bool `json:"stopped"` } diff --git a/typedapi/ml/stoptrainedmodeldeployment/stop_trained_model_deployment.go b/typedapi/ml/stoptrainedmodeldeployment/stop_trained_model_deployment.go index 19f3cbf26f..f20d8e21ec 100644 --- a/typedapi/ml/stoptrainedmodeldeployment/stop_trained_model_deployment.go +++ b/typedapi/ml/stoptrainedmodeldeployment/stop_trained_model_deployment.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop a trained model deployment. package stoptrainedmodeldeployment diff --git a/typedapi/ml/updatedatafeed/request.go b/typedapi/ml/updatedatafeed/request.go index ed8ca50bdf..37ccf1cc6b 100644 --- a/typedapi/ml/updatedatafeed/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatedatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L170 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L170 type Request struct { // Aggregations If set, the datafeed performs aggregation searches. Support for aggregations diff --git a/typedapi/ml/updatedatafeed/response.go b/typedapi/ml/updatedatafeed/response.go index deabd4b579..efd95b7ada 100644 --- a/typedapi/ml/updatedatafeed/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatedatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/updatedatafeed/update_datafeed.go b/typedapi/ml/updatedatafeed/update_datafeed.go index f08f7e43e4..434a8f526a 100644 --- a/typedapi/ml/updatedatafeed/update_datafeed.go +++ b/typedapi/ml/updatedatafeed/update_datafeed.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update a datafeed. // You must stop and start the datafeed for the changes to be applied. diff --git a/typedapi/ml/updatedataframeanalytics/request.go b/typedapi/ml/updatedataframeanalytics/request.go index bec98654a6..9477baf744 100644 --- a/typedapi/ml/updatedataframeanalytics/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatedataframeanalytics @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L80 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L80 type Request struct { // AllowLazyStart Specifies whether this job can start when there is insufficient machine diff --git a/typedapi/ml/updatedataframeanalytics/response.go b/typedapi/ml/updatedataframeanalytics/response.go index 24ef45fb8a..b3daec00d4 100644 --- a/typedapi/ml/updatedataframeanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatedataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/updatedataframeanalytics/update_data_frame_analytics.go b/typedapi/ml/updatedataframeanalytics/update_data_frame_analytics.go index d5d6eb3cf3..d7754473f6 100644 --- a/typedapi/ml/updatedataframeanalytics/update_data_frame_analytics.go +++ b/typedapi/ml/updatedataframeanalytics/update_data_frame_analytics.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update a data frame analytics job. package updatedataframeanalytics @@ -83,7 +83,7 @@ func NewUpdateDataFrameAnalyticsFunc(tp elastictransport.Interface) NewUpdateDat // Update a data frame analytics job. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ml-update-data-frame-analytics func New(tp elastictransport.Interface) *UpdateDataFrameAnalytics { r := &UpdateDataFrameAnalytics{ transport: tp, diff --git a/typedapi/ml/updatefilter/request.go b/typedapi/ml/updatefilter/request.go index 29e3d41915..1e085c26e6 100644 --- a/typedapi/ml/updatefilter/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatefilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L60 type Request struct { // AddItems The items to add to the filter. diff --git a/typedapi/ml/updatefilter/response.go b/typedapi/ml/updatefilter/response.go index eaa935f42f..203af00f88 100644 --- a/typedapi/ml/updatefilter/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatefilter // Response holds the response body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_filter/MlUpdateFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_filter/MlUpdateFilterResponse.ts#L22-L28 type Response struct { Description string `json:"description"` FilterId string `json:"filter_id"` diff --git a/typedapi/ml/updatefilter/update_filter.go b/typedapi/ml/updatefilter/update_filter.go index ce9d4fd6b9..6e3c431f15 100644 --- a/typedapi/ml/updatefilter/update_filter.go +++ b/typedapi/ml/updatefilter/update_filter.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update a filter. // Updates the description of a filter, adds items, or removes items from the diff --git a/typedapi/ml/updatejob/request.go b/typedapi/ml/updatejob/request.go index 39bd3e7a75..3c100cb4db 100644 --- a/typedapi/ml/updatejob/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatejob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L147 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L147 type Request struct { // AllowLazyOpen Advanced configuration option. Specifies whether this job can open when diff --git a/typedapi/ml/updatejob/response.go b/typedapi/ml/updatejob/response.go index 603a03fb22..113a5457c1 100644 --- a/typedapi/ml/updatejob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatejob @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_job/MlUpdateJobResponse.ts#L29-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/updatejob/update_job.go b/typedapi/ml/updatejob/update_job.go index 5ab365e157..7581a719c8 100644 --- a/typedapi/ml/updatejob/update_job.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update an anomaly detection job. // Updates certain properties of an anomaly detection job. diff --git a/typedapi/ml/updatemodelsnapshot/request.go b/typedapi/ml/updatemodelsnapshot/request.go index 2c3a188bcf..94dff58ec6 100644 --- a/typedapi/ml/updatemodelsnapshot/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatemodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L63 type Request struct { // Description A description of the model snapshot. diff --git a/typedapi/ml/updatemodelsnapshot/response.go b/typedapi/ml/updatemodelsnapshot/response.go index f76ee501d6..2a3f2a5e4d 100644 --- a/typedapi/ml/updatemodelsnapshot/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatemodelsnapshot @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27 type Response struct { Acknowledged bool `json:"acknowledged"` Model types.ModelSnapshot `json:"model"` diff --git a/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go b/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go index 7944f9e640..1f6278ca20 100644 --- a/typedapi/ml/updatemodelsnapshot/update_model_snapshot.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update a snapshot. // Updates certain properties of a snapshot. diff --git a/typedapi/ml/updatetrainedmodeldeployment/request.go b/typedapi/ml/updatetrainedmodeldeployment/request.go index 45f617b295..a6abf951d2 100644 --- a/typedapi/ml/updatetrainedmodeldeployment/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatetrainedmodeldeployment @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L78 type Request struct { // AdaptiveAllocations Adaptive allocations configuration. When enabled, the number of allocations diff --git a/typedapi/ml/updatetrainedmodeldeployment/response.go b/typedapi/ml/updatetrainedmodeldeployment/response.go index 9b1cdd5254..f8d3367a67 100644 --- a/typedapi/ml/updatetrainedmodeldeployment/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatetrainedmodeldeployment @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26 type Response struct { Assignment types.TrainedModelAssignment `json:"assignment"` } diff --git a/typedapi/ml/updatetrainedmodeldeployment/update_trained_model_deployment.go b/typedapi/ml/updatetrainedmodeldeployment/update_trained_model_deployment.go index a8222e4d43..f638bc297c 100644 --- a/typedapi/ml/updatetrainedmodeldeployment/update_trained_model_deployment.go +++ b/typedapi/ml/updatetrainedmodeldeployment/update_trained_model_deployment.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update a trained model deployment. package updatetrainedmodeldeployment @@ -83,7 +83,7 @@ func NewUpdateTrainedModelDeploymentFunc(tp elastictransport.Interface) NewUpdat // Update a trained model deployment. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-ml-update-trained-model-deployment func New(tp elastictransport.Interface) *UpdateTrainedModelDeployment { r := &UpdateTrainedModelDeployment{ transport: tp, diff --git a/typedapi/ml/upgradejobsnapshot/response.go b/typedapi/ml/upgradejobsnapshot/response.go index 25b775ad1b..38028c4ef7 100644 --- a/typedapi/ml/upgradejobsnapshot/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package upgradejobsnapshot // Response holds the response body struct for the package upgradejobsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/upgradejobsnapshot/upgrade_job_snapshot.go b/typedapi/ml/upgradejobsnapshot/upgrade_job_snapshot.go index 186817d149..c2bb729e09 100644 --- a/typedapi/ml/upgradejobsnapshot/upgrade_job_snapshot.go +++ b/typedapi/ml/upgradejobsnapshot/upgrade_job_snapshot.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Upgrade a snapshot. // Upgrade an anomaly detection model snapshot to the latest major version. diff --git a/typedapi/ml/validate/request.go b/typedapi/ml/validate/request.go index a53a836a65..1731cced54 100644 --- a/typedapi/ml/validate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package validate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/validate/MlValidateJobRequest.ts#L27-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/validate/MlValidateJobRequest.ts#L27-L52 type Request struct { AnalysisConfig *types.AnalysisConfig `json:"analysis_config,omitempty"` AnalysisLimits *types.AnalysisLimits `json:"analysis_limits,omitempty"` diff --git a/typedapi/ml/validate/response.go b/typedapi/ml/validate/response.go index 941b8216cc..7077a2b426 100644 --- a/typedapi/ml/validate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package validate // Response holds the response body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/validate/MlValidateJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/validate/validate.go b/typedapi/ml/validate/validate.go index f472bb87ce..06f3e41f68 100644 --- a/typedapi/ml/validate/validate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Validate an anomaly detection job. package validate diff --git a/typedapi/ml/validatedetector/request.go b/typedapi/ml/validatedetector/request.go index 3ca8453c04..172090eb4b 100644 --- a/typedapi/ml/validatedetector/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package validatedetector @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/validate_detector/MlValidateDetectorRequest.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/validate_detector/MlValidateDetectorRequest.ts#L23-L40 type Request = types.Detector // NewRequest returns a Request diff --git a/typedapi/ml/validatedetector/response.go b/typedapi/ml/validatedetector/response.go index 2306b40160..159e9d7af4 100644 --- a/typedapi/ml/validatedetector/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package validatedetector // Response holds the response body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/validate_detector/MlValidateDetectorResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/ml/validatedetector/validate_detector.go b/typedapi/ml/validatedetector/validate_detector.go index 448234a31f..cd06487bac 100644 --- a/typedapi/ml/validatedetector/validate_detector.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Validate an anomaly detection job. package validatedetector diff --git a/typedapi/monitoring/bulk/bulk.go b/typedapi/monitoring/bulk/bulk.go index b1f5cda337..354e5de32b 100644 --- a/typedapi/monitoring/bulk/bulk.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Send monitoring data. // This API is used by the monitoring features to send monitoring data. diff --git a/typedapi/monitoring/bulk/request.go b/typedapi/monitoring/bulk/request.go index 21aa977c15..f7f143798e 100644 --- a/typedapi/monitoring/bulk/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/monitoring/bulk/BulkMonitoringRequest.ts#L24-L73 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/monitoring/bulk/BulkMonitoringRequest.ts#L24-L73 type Request = []any diff --git a/typedapi/monitoring/bulk/response.go b/typedapi/monitoring/bulk/response.go index 516add8c2c..be769dbb60 100644 --- a/typedapi/monitoring/bulk/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulk @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/monitoring/bulk/BulkMonitoringResponse.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/nodes/clearrepositoriesmeteringarchive/clear_repositories_metering_archive.go b/typedapi/nodes/clearrepositoriesmeteringarchive/clear_repositories_metering_archive.go index ae0a6f9287..f90539518e 100644 --- a/typedapi/nodes/clearrepositoriesmeteringarchive/clear_repositories_metering_archive.go +++ b/typedapi/nodes/clearrepositoriesmeteringarchive/clear_repositories_metering_archive.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear the archived repositories metering. // Clear the archived repositories metering information in the cluster. diff --git a/typedapi/nodes/clearrepositoriesmeteringarchive/response.go b/typedapi/nodes/clearrepositoriesmeteringarchive/response.go index 43a79bc0fd..222258fdbd 100644 --- a/typedapi/nodes/clearrepositoriesmeteringarchive/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearrepositoriesmeteringarchive @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearrepositoriesmeteringarchive // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L39 type Response struct { // ClusterName Name of the cluster. Based on the `cluster.name` setting. diff --git a/typedapi/nodes/getrepositoriesmeteringinfo/get_repositories_metering_info.go b/typedapi/nodes/getrepositoriesmeteringinfo/get_repositories_metering_info.go index 866bc18cb3..5325f581b4 100644 --- a/typedapi/nodes/getrepositoriesmeteringinfo/get_repositories_metering_info.go +++ b/typedapi/nodes/getrepositoriesmeteringinfo/get_repositories_metering_info.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get cluster repositories metering. // Get repositories metering information for a cluster. diff --git a/typedapi/nodes/getrepositoriesmeteringinfo/response.go b/typedapi/nodes/getrepositoriesmeteringinfo/response.go index 0fed686b9b..d4bf5892b9 100644 --- a/typedapi/nodes/getrepositoriesmeteringinfo/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrepositoriesmeteringinfo @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrepositoriesmeteringinfo // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L38 type Response struct { // ClusterName Name of the cluster. Based on the `cluster.name` setting. diff --git a/typedapi/nodes/hotthreads/hot_threads.go b/typedapi/nodes/hotthreads/hot_threads.go index 3eeb1e0861..543c957451 100644 --- a/typedapi/nodes/hotthreads/hot_threads.go +++ b/typedapi/nodes/hotthreads/hot_threads.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the hot threads for nodes. // Get a breakdown of the hot threads on each selected node in the cluster. diff --git a/typedapi/nodes/hotthreads/response.go b/typedapi/nodes/hotthreads/response.go index fa15e7ebe3..507105df10 100644 --- a/typedapi/nodes/hotthreads/response.go +++ b/typedapi/nodes/hotthreads/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package hotthreads // Response holds the response body struct for the package hotthreads // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/nodes/info/info.go b/typedapi/nodes/info/info.go index 7d65dc6fc3..1d80c9bc6e 100644 --- a/typedapi/nodes/info/info.go +++ b/typedapi/nodes/info/info.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get node information. // diff --git a/typedapi/nodes/info/response.go b/typedapi/nodes/info/response.go index 5d104eb2d9..706d4caaf0 100644 --- a/typedapi/nodes/info/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/NodesInfoResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/nodes/reloadsecuresettings/reload_secure_settings.go b/typedapi/nodes/reloadsecuresettings/reload_secure_settings.go index 332be0a55c..6d40f0d72b 100644 --- a/typedapi/nodes/reloadsecuresettings/reload_secure_settings.go +++ b/typedapi/nodes/reloadsecuresettings/reload_secure_settings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Reload the keystore on nodes in the cluster. // diff --git a/typedapi/nodes/reloadsecuresettings/request.go b/typedapi/nodes/reloadsecuresettings/request.go index ad8946ff04..8117364353 100644 --- a/typedapi/nodes/reloadsecuresettings/request.go +++ b/typedapi/nodes/reloadsecuresettings/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package reloadsecuresettings @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L70 type Request struct { // SecureSettingsPassword The password for the Elasticsearch keystore. diff --git a/typedapi/nodes/reloadsecuresettings/response.go b/typedapi/nodes/reloadsecuresettings/response.go index ba07cda62f..c4a1009948 100644 --- a/typedapi/nodes/reloadsecuresettings/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package reloadsecuresettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/nodes/stats/response.go b/typedapi/nodes/stats/response.go index 600979c9ed..13e3636c3f 100644 --- a/typedapi/nodes/stats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/stats/NodesStatsResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/nodes/stats/stats.go b/typedapi/nodes/stats/stats.go index 60892a816e..686fd4aff7 100644 --- a/typedapi/nodes/stats/stats.go +++ b/typedapi/nodes/stats/stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get node statistics. // Get statistics for nodes in a cluster. diff --git a/typedapi/nodes/usage/response.go b/typedapi/nodes/usage/response.go index 2d22399307..311da2cfab 100644 --- a/typedapi/nodes/usage/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package usage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/usage/NodesUsageResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/nodes/usage/usage.go b/typedapi/nodes/usage/usage.go index e2f742df39..6dbaa12a6d 100644 --- a/typedapi/nodes/usage/usage.go +++ b/typedapi/nodes/usage/usage.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get feature usage information. package usage diff --git a/typedapi/profiling/flamegraph/flamegraph.go b/typedapi/profiling/flamegraph/flamegraph.go index 0a7e54818b..7d429ac9f0 100644 --- a/typedapi/profiling/flamegraph/flamegraph.go +++ b/typedapi/profiling/flamegraph/flamegraph.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Extracts a UI-optimized structure to render flamegraphs from Universal // Profiling. diff --git a/typedapi/profiling/stacktraces/stacktraces.go b/typedapi/profiling/stacktraces/stacktraces.go index 4539bb9ded..567e911cb8 100644 --- a/typedapi/profiling/stacktraces/stacktraces.go +++ b/typedapi/profiling/stacktraces/stacktraces.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Extracts raw stacktrace information from Universal Profiling. package stacktraces diff --git a/typedapi/profiling/status/status.go b/typedapi/profiling/status/status.go index 20a2704aee..9dd93f304e 100644 --- a/typedapi/profiling/status/status.go +++ b/typedapi/profiling/status/status.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Returns basic information about the status of Universal Profiling. package status diff --git a/typedapi/profiling/topnfunctions/topn_functions.go b/typedapi/profiling/topnfunctions/topn_functions.go index ce7751d64b..6653c91494 100644 --- a/typedapi/profiling/topnfunctions/topn_functions.go +++ b/typedapi/profiling/topnfunctions/topn_functions.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Extracts a list of topN functions from Universal Profiling. package topnfunctions diff --git a/typedapi/queryrules/deleterule/delete_rule.go b/typedapi/queryrules/deleterule/delete_rule.go index 35558371d6..b8e25ba5db 100644 --- a/typedapi/queryrules/deleterule/delete_rule.go +++ b/typedapi/queryrules/deleterule/delete_rule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a query rule. // Delete a query rule within a query ruleset. diff --git a/typedapi/queryrules/deleterule/response.go b/typedapi/queryrules/deleterule/response.go index f2220c126d..9b97834390 100644 --- a/typedapi/queryrules/deleterule/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleterule // Response holds the response body struct for the package deleterule // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/queryrules/deleteruleset/delete_ruleset.go b/typedapi/queryrules/deleteruleset/delete_ruleset.go index 80271b12b7..459e33e024 100644 --- a/typedapi/queryrules/deleteruleset/delete_ruleset.go +++ b/typedapi/queryrules/deleteruleset/delete_ruleset.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a query ruleset. // Remove a query ruleset and its associated data. diff --git a/typedapi/queryrules/deleteruleset/response.go b/typedapi/queryrules/deleteruleset/response.go index 9109eb073b..048688fa2a 100644 --- a/typedapi/queryrules/deleteruleset/response.go +++ b/typedapi/queryrules/deleteruleset/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteruleset // Response holds the response body struct for the package deleteruleset // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L24 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/queryrules/getrule/get_rule.go b/typedapi/queryrules/getrule/get_rule.go index 81a5b23733..0856219aff 100644 --- a/typedapi/queryrules/getrule/get_rule.go +++ b/typedapi/queryrules/getrule/get_rule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a query rule. // Get details about a query rule within a query ruleset. diff --git a/typedapi/queryrules/getrule/response.go b/typedapi/queryrules/getrule/response.go index cd00a74e15..b1506dd3d2 100644 --- a/typedapi/queryrules/getrule/response.go +++ b/typedapi/queryrules/getrule/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getrule // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/get_rule/QueryRuleGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/get_rule/QueryRuleGetResponse.ts#L22-L24 type Response struct { // Actions The actions to take when the rule is matched. diff --git a/typedapi/queryrules/getruleset/get_ruleset.go b/typedapi/queryrules/getruleset/get_ruleset.go index a94db7a259..29faea7372 100644 --- a/typedapi/queryrules/getruleset/get_ruleset.go +++ b/typedapi/queryrules/getruleset/get_ruleset.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a query ruleset. // Get details about a query ruleset. diff --git a/typedapi/queryrules/getruleset/response.go b/typedapi/queryrules/getruleset/response.go index a2e53a4fea..ec7f2465c8 100644 --- a/typedapi/queryrules/getruleset/response.go +++ b/typedapi/queryrules/getruleset/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getruleset @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getruleset // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L24 type Response struct { // Rules Rules associated with the query ruleset. diff --git a/typedapi/queryrules/listrulesets/list_rulesets.go b/typedapi/queryrules/listrulesets/list_rulesets.go index 64e29c9453..1fa6f9c927 100644 --- a/typedapi/queryrules/listrulesets/list_rulesets.go +++ b/typedapi/queryrules/listrulesets/list_rulesets.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get all query rulesets. // Get summarized information about the query rulesets. diff --git a/typedapi/queryrules/listrulesets/response.go b/typedapi/queryrules/listrulesets/response.go index a199ae22e4..7367e5c8fc 100644 --- a/typedapi/queryrules/listrulesets/response.go +++ b/typedapi/queryrules/listrulesets/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package listrulesets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package listrulesets // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Results []types.QueryRulesetListItem `json:"results"` diff --git a/typedapi/queryrules/putrule/put_rule.go b/typedapi/queryrules/putrule/put_rule.go index 7b3a979610..55f68bfa24 100644 --- a/typedapi/queryrules/putrule/put_rule.go +++ b/typedapi/queryrules/putrule/put_rule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a query rule. // Create or update a query rule within a query ruleset. diff --git a/typedapi/queryrules/putrule/request.go b/typedapi/queryrules/putrule/request.go index 9564f4d07e..a4e26b3218 100644 --- a/typedapi/queryrules/putrule/request.go +++ b/typedapi/queryrules/putrule/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putrule @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putrule // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/put_rule/QueryRulePutRequest.ts#L28-L79 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/put_rule/QueryRulePutRequest.ts#L28-L79 type Request struct { // Actions The actions to take when the rule is matched. diff --git a/typedapi/queryrules/putrule/response.go b/typedapi/queryrules/putrule/response.go index fb1f264718..b8c481689a 100644 --- a/typedapi/queryrules/putrule/response.go +++ b/typedapi/queryrules/putrule/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putrule @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrule // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/put_rule/QueryRulePutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/put_rule/QueryRulePutResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/queryrules/putruleset/put_ruleset.go b/typedapi/queryrules/putruleset/put_ruleset.go index 9c93c9f7bd..b2c984c161 100644 --- a/typedapi/queryrules/putruleset/put_ruleset.go +++ b/typedapi/queryrules/putruleset/put_ruleset.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a query ruleset. // There is a limit of 100 rules per ruleset. diff --git a/typedapi/queryrules/putruleset/request.go b/typedapi/queryrules/putruleset/request.go index 40307f589d..a451dd32ba 100644 --- a/typedapi/queryrules/putruleset/request.go +++ b/typedapi/queryrules/putruleset/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putruleset @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putruleset // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L59 type Request struct { Rules []types.QueryRule `json:"rules"` } diff --git a/typedapi/queryrules/putruleset/response.go b/typedapi/queryrules/putruleset/response.go index 7e2d940cf9..6021376a98 100644 --- a/typedapi/queryrules/putruleset/response.go +++ b/typedapi/queryrules/putruleset/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putruleset @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putruleset // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/queryrules/test/request.go b/typedapi/queryrules/test/request.go index 77783f9a5a..2d818a9ff7 100644 --- a/typedapi/queryrules/test/request.go +++ b/typedapi/queryrules/test/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package test @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package test // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/test/QueryRulesetTestRequest.ts#L24-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/test/QueryRulesetTestRequest.ts#L24-L57 type Request struct { // MatchCriteria The match criteria to apply to rules in the given query ruleset. diff --git a/typedapi/queryrules/test/response.go b/typedapi/queryrules/test/response.go index 55962373e9..45eb46b65c 100644 --- a/typedapi/queryrules/test/response.go +++ b/typedapi/queryrules/test/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package test @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package test // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/test/QueryRulesetTestResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/test/QueryRulesetTestResponse.ts#L23-L28 type Response struct { MatchedRules []types.QueryRulesetMatchedRule `json:"matched_rules"` TotalMatchedRules int `json:"total_matched_rules"` diff --git a/typedapi/queryrules/test/test.go b/typedapi/queryrules/test/test.go index cf3513b514..88cd39686b 100644 --- a/typedapi/queryrules/test/test.go +++ b/typedapi/queryrules/test/test.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Test a query ruleset. // Evaluate match criteria against a query ruleset to identify the rules that diff --git a/typedapi/rollup/deletejob/delete_job.go b/typedapi/rollup/deletejob/delete_job.go index 3a34473685..d42249dc7f 100644 --- a/typedapi/rollup/deletejob/delete_job.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a rollup job. // diff --git a/typedapi/rollup/deletejob/response.go b/typedapi/rollup/deletejob/response.go index c999d943dc..87ba12b508 100644 --- a/typedapi/rollup/deletejob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletejob @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/rollup/getjobs/get_jobs.go b/typedapi/rollup/getjobs/get_jobs.go index 15c70d71b8..cc3eb7ab53 100644 --- a/typedapi/rollup/getjobs/get_jobs.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get rollup job information. // Get the configuration, stats, and status of rollup jobs. diff --git a/typedapi/rollup/getjobs/response.go b/typedapi/rollup/getjobs/response.go index 89e609d767..9bc2ba2a7f 100644 --- a/typedapi/rollup/getjobs/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getjobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_jobs/GetRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_jobs/GetRollupJobResponse.ts#L22-L24 type Response struct { Jobs []types.RollupJob `json:"jobs"` } diff --git a/typedapi/rollup/getrollupcaps/get_rollup_caps.go b/typedapi/rollup/getrollupcaps/get_rollup_caps.go index b397aa654f..327e164670 100644 --- a/typedapi/rollup/getrollupcaps/get_rollup_caps.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the rollup job capabilities. // Get the capabilities of any rollup jobs that have been configured for a diff --git a/typedapi/rollup/getrollupcaps/response.go b/typedapi/rollup/getrollupcaps/response.go index 35b52f867e..b94f7150cc 100644 --- a/typedapi/rollup/getrollupcaps/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrollupcaps @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrollupcaps // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27 type Response map[string]types.RollupCapabilities diff --git a/typedapi/rollup/getrollupindexcaps/get_rollup_index_caps.go b/typedapi/rollup/getrollupindexcaps/get_rollup_index_caps.go index ca93c0e1f2..fdf82082b2 100644 --- a/typedapi/rollup/getrollupindexcaps/get_rollup_index_caps.go +++ b/typedapi/rollup/getrollupindexcaps/get_rollup_index_caps.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the rollup index capabilities. // Get the rollup capabilities of all jobs inside of a rollup index. diff --git a/typedapi/rollup/getrollupindexcaps/response.go b/typedapi/rollup/getrollupindexcaps/response.go index 0fe7323671..57b5fd88b3 100644 --- a/typedapi/rollup/getrollupindexcaps/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrollupindexcaps @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrollupindexcaps // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27 type Response map[string]types.IndexCapabilities diff --git a/typedapi/rollup/putjob/put_job.go b/typedapi/rollup/putjob/put_job.go index 2e80d17667..6ce28bd90f 100644 --- a/typedapi/rollup/putjob/put_job.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a rollup job. // diff --git a/typedapi/rollup/putjob/request.go b/typedapi/rollup/putjob/request.go index 563fda0951..49997d4a74 100644 --- a/typedapi/rollup/putjob/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/put_job/CreateRollupJobRequest.ts#L27-L105 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/put_job/CreateRollupJobRequest.ts#L27-L105 type Request struct { // Cron A cron string which defines the intervals when the rollup job should be diff --git a/typedapi/rollup/putjob/response.go b/typedapi/rollup/putjob/response.go index d0d9c4e55f..ad65152bd5 100644 --- a/typedapi/rollup/putjob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putjob // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/put_job/CreateRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/rollup/rollupsearch/request.go b/typedapi/rollup/rollupsearch/request.go index 453a9909d6..c3c00e148b 100644 --- a/typedapi/rollup/rollupsearch/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rollupsearch @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L109 type Request struct { // Aggregations Specifies aggregations. diff --git a/typedapi/rollup/rollupsearch/response.go b/typedapi/rollup/rollupsearch/response.go index 21f2223b2d..c28eb57218 100644 --- a/typedapi/rollup/rollupsearch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package rollupsearch @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/rollup/rollupsearch/rollup_search.go b/typedapi/rollup/rollupsearch/rollup_search.go index 212960ae46..02a133fc90 100644 --- a/typedapi/rollup/rollupsearch/rollup_search.go +++ b/typedapi/rollup/rollupsearch/rollup_search.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Search rolled-up data. // The rollup search endpoint is needed because, internally, rolled-up documents diff --git a/typedapi/rollup/startjob/response.go b/typedapi/rollup/startjob/response.go index 7b20ee9d12..e13c0b0ff5 100644 --- a/typedapi/rollup/startjob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package startjob // Response holds the response body struct for the package startjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/start_job/StartRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/start_job/StartRollupJobResponse.ts#L20-L22 type Response struct { Started bool `json:"started"` } diff --git a/typedapi/rollup/startjob/start_job.go b/typedapi/rollup/startjob/start_job.go index 4c50782bac..a7d0275dfc 100644 --- a/typedapi/rollup/startjob/start_job.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start rollup jobs. // If you try to start a job that does not exist, an exception occurs. diff --git a/typedapi/rollup/stopjob/response.go b/typedapi/rollup/stopjob/response.go index 4b293c9e69..739a43dd9b 100644 --- a/typedapi/rollup/stopjob/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stopjob // Response holds the response body struct for the package stopjob // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/stop_job/StopRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/stop_job/StopRollupJobResponse.ts#L20-L22 type Response struct { Stopped bool `json:"stopped"` } diff --git a/typedapi/rollup/stopjob/stop_job.go b/typedapi/rollup/stopjob/stop_job.go index 38fbe07738..f5f1a948bc 100644 --- a/typedapi/rollup/stopjob/stop_job.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop rollup jobs. // If you try to stop a job that does not exist, an exception occurs. diff --git a/typedapi/searchablesnapshots/cachestats/cache_stats.go b/typedapi/searchablesnapshots/cachestats/cache_stats.go index 2e52e8bdb2..b7a0d1836f 100644 --- a/typedapi/searchablesnapshots/cachestats/cache_stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get cache statistics. // Get statistics about the shared cache for partially mounted indices. diff --git a/typedapi/searchablesnapshots/cachestats/response.go b/typedapi/searchablesnapshots/cachestats/response.go index 86f9d1b9c3..b087c9c04a 100644 --- a/typedapi/searchablesnapshots/cachestats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package cachestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package cachestats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/cache_stats/Response.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/searchable_snapshots/cache_stats/Response.ts#L24-L28 type Response struct { Nodes map[string]types.Node `json:"nodes"` } diff --git a/typedapi/searchablesnapshots/clearcache/clear_cache.go b/typedapi/searchablesnapshots/clearcache/clear_cache.go index 49f97e6522..7bf01e73ac 100644 --- a/typedapi/searchablesnapshots/clearcache/clear_cache.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear the cache. // Clear indices and data streams from the shared cache for partially mounted diff --git a/typedapi/searchablesnapshots/clearcache/response.go b/typedapi/searchablesnapshots/clearcache/response.go index 1b4b1e6dc2..69c03cde5b 100644 --- a/typedapi/searchablesnapshots/clearcache/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearcache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25 type Response = json.RawMessage diff --git a/typedapi/searchablesnapshots/mount/mount.go b/typedapi/searchablesnapshots/mount/mount.go index 5fc785f5ce..b92eb2b3da 100644 --- a/typedapi/searchablesnapshots/mount/mount.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Mount a snapshot. // Mount a snapshot as a searchable snapshot index. diff --git a/typedapi/searchablesnapshots/mount/request.go b/typedapi/searchablesnapshots/mount/request.go index a6394b4f1f..20cfebf703 100644 --- a/typedapi/searchablesnapshots/mount/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mount @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L92 type Request struct { // IgnoreIndexSettings The names of settings that should be removed from the index when it is diff --git a/typedapi/searchablesnapshots/mount/response.go b/typedapi/searchablesnapshots/mount/response.go index ae3b51c02e..6d1df32c5d 100644 --- a/typedapi/searchablesnapshots/mount/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package mount @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26 type Response struct { Snapshot types.MountedSnapshot `json:"snapshot"` } diff --git a/typedapi/searchablesnapshots/stats/response.go b/typedapi/searchablesnapshots/stats/response.go index f6bd25d01c..4f9e816e31 100644 --- a/typedapi/searchablesnapshots/stats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/searchablesnapshots/stats/stats.go b/typedapi/searchablesnapshots/stats/stats.go index b4d05fa492..1cf91e66a4 100644 --- a/typedapi/searchablesnapshots/stats/stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get searchable snapshot statistics. package stats diff --git a/typedapi/searchapplication/delete/delete.go b/typedapi/searchapplication/delete/delete.go index 6b4e95d8e0..723766a0c9 100644 --- a/typedapi/searchapplication/delete/delete.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a search application. // diff --git a/typedapi/searchapplication/delete/response.go b/typedapi/searchapplication/delete/response.go index 277adf72d7..eb6e2c22be 100644 --- a/typedapi/searchapplication/delete/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go b/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go index bd8b7e9a86..6c9744cf60 100644 --- a/typedapi/searchapplication/deletebehavioralanalytics/delete_behavioral_analytics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a behavioral analytics collection. // The associated data stream is also deleted. diff --git a/typedapi/searchapplication/deletebehavioralanalytics/response.go b/typedapi/searchapplication/deletebehavioralanalytics/response.go index 4346b86305..05ea1f327d 100644 --- a/typedapi/searchapplication/deletebehavioralanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletebehavioralanalytics // Response holds the response body struct for the package deletebehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/searchapplication/get/get.go b/typedapi/searchapplication/get/get.go index ceca61a9a5..12c0359aff 100644 --- a/typedapi/searchapplication/get/get.go +++ b/typedapi/searchapplication/get/get.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get search application details. package get diff --git a/typedapi/searchapplication/get/response.go b/typedapi/searchapplication/get/response.go index ea98b6e401..ec0f9ba954 100644 --- a/typedapi/searchapplication/get/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L24 type Response struct { // AnalyticsCollectionName Analytics collection associated to the Search Application. diff --git a/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go b/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go index a31cd8500c..417e39fdb9 100644 --- a/typedapi/searchapplication/getbehavioralanalytics/get_behavioral_analytics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get behavioral analytics collections. package getbehavioralanalytics diff --git a/typedapi/searchapplication/getbehavioralanalytics/response.go b/typedapi/searchapplication/getbehavioralanalytics/response.go index 8f66f25c49..a457076f38 100644 --- a/typedapi/searchapplication/getbehavioralanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getbehavioralanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27 type Response map[string]types.AnalyticsCollection diff --git a/typedapi/searchapplication/list/list.go b/typedapi/searchapplication/list/list.go index 5109f845da..f304903298 100644 --- a/typedapi/searchapplication/list/list.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get search applications. // Get information about search applications. diff --git a/typedapi/searchapplication/list/response.go b/typedapi/searchapplication/list/response.go index fcc376a2c5..cac0a3c265 100644 --- a/typedapi/searchapplication/list/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package list @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/list/SearchApplicationsListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/list/SearchApplicationsListResponse.ts#L23-L28 type Response struct { Count int64 `json:"count"` Results []types.SearchApplication `json:"results"` diff --git a/typedapi/searchapplication/postbehavioralanalyticsevent/post_behavioral_analytics_event.go b/typedapi/searchapplication/postbehavioralanalyticsevent/post_behavioral_analytics_event.go index 796ee9db69..27c19039bd 100644 --- a/typedapi/searchapplication/postbehavioralanalyticsevent/post_behavioral_analytics_event.go +++ b/typedapi/searchapplication/postbehavioralanalyticsevent/post_behavioral_analytics_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a behavioral analytics collection event. package postbehavioralanalyticsevent diff --git a/typedapi/searchapplication/postbehavioralanalyticsevent/request.go b/typedapi/searchapplication/postbehavioralanalyticsevent/request.go index 9496db26a4..82abf12f41 100644 --- a/typedapi/searchapplication/postbehavioralanalyticsevent/request.go +++ b/typedapi/searchapplication/postbehavioralanalyticsevent/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package postbehavioralanalyticsevent @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package postbehavioralanalyticsevent // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L57 type Request = json.RawMessage // NewRequest returns a Request diff --git a/typedapi/searchapplication/postbehavioralanalyticsevent/response.go b/typedapi/searchapplication/postbehavioralanalyticsevent/response.go index bec368deba..492cb4b1cf 100644 --- a/typedapi/searchapplication/postbehavioralanalyticsevent/response.go +++ b/typedapi/searchapplication/postbehavioralanalyticsevent/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package postbehavioralanalyticsevent @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postbehavioralanalyticsevent // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostResponse.ts#L22-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostResponse.ts#L22-L47 type Response struct { Accepted bool `json:"accepted"` Event json.RawMessage `json:"event,omitempty"` diff --git a/typedapi/searchapplication/put/put.go b/typedapi/searchapplication/put/put.go index cd3a537e68..ee7fa42dd2 100644 --- a/typedapi/searchapplication/put/put.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a search application. package put diff --git a/typedapi/searchapplication/put/request.go b/typedapi/searchapplication/put/request.go index 29b25ee98d..1b975aca3a 100644 --- a/typedapi/searchapplication/put/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package put @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/put/SearchApplicationsPutRequest.ts#L23-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/put/SearchApplicationsPutRequest.ts#L23-L57 type Request = types.SearchApplicationParameters // NewRequest returns a Request diff --git a/typedapi/searchapplication/put/response.go b/typedapi/searchapplication/put/response.go index 054da9b47d..07d8292f1f 100644 --- a/typedapi/searchapplication/put/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package put @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/put/SearchApplicationsPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/put/SearchApplicationsPutResponse.ts#L22-L26 type Response struct { Result result.Result `json:"result"` } diff --git a/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go b/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go index b1c37b39fd..fd22c7b53f 100644 --- a/typedapi/searchapplication/putbehavioralanalytics/put_behavioral_analytics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a behavioral analytics collection. package putbehavioralanalytics diff --git a/typedapi/searchapplication/putbehavioralanalytics/response.go b/typedapi/searchapplication/putbehavioralanalytics/response.go index ef38ec3358..47c8187ced 100644 --- a/typedapi/searchapplication/putbehavioralanalytics/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putbehavioralanalytics // Response holds the response body struct for the package putbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L23-L25 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/searchapplication/renderquery/render_query.go b/typedapi/searchapplication/renderquery/render_query.go index b4d51599e4..401bf6ad1f 100644 --- a/typedapi/searchapplication/renderquery/render_query.go +++ b/typedapi/searchapplication/renderquery/render_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Render a search application query. // Generate an Elasticsearch query using the specified query parameters and the diff --git a/typedapi/searchapplication/renderquery/request.go b/typedapi/searchapplication/renderquery/request.go index 3b822abbe6..212b4b3f7b 100644 --- a/typedapi/searchapplication/renderquery/request.go +++ b/typedapi/searchapplication/renderquery/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package renderquery @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package renderquery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L54 type Request struct { Params map[string]json.RawMessage `json:"params,omitempty"` } diff --git a/typedapi/searchapplication/renderquery/response.go b/typedapi/searchapplication/renderquery/response.go index 06ee3d1032..6cf9e25876 100644 --- a/typedapi/searchapplication/renderquery/response.go +++ b/typedapi/searchapplication/renderquery/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package renderquery // Response holds the response body struct for the package renderquery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/render_query/SearchApplicationsRenderQueryResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/render_query/SearchApplicationsRenderQueryResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/searchapplication/search/request.go b/typedapi/searchapplication/search/request.go index c42fbad2e9..70678ef62b 100644 --- a/typedapi/searchapplication/search/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package search @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L61 type Request struct { // Params Query parameters specific to this request, which will override any defaults diff --git a/typedapi/searchapplication/search/response.go b/typedapi/searchapplication/search/response.go index 0d62ddf9ab..80b82c23a0 100644 --- a/typedapi/searchapplication/search/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/search/SearchApplicationsSearchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/search/SearchApplicationsSearchResponse.ts#L22-L24 type Response struct { Aggregations map[string]types.Aggregate `json:"aggregations,omitempty"` Clusters_ *types.ClusterStatistics `json:"_clusters,omitempty"` diff --git a/typedapi/searchapplication/search/search.go b/typedapi/searchapplication/search/search.go index e4254194e6..7e1242db97 100644 --- a/typedapi/searchapplication/search/search.go +++ b/typedapi/searchapplication/search/search.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a search application search. // Generate and run an Elasticsearch query that uses the specified query diff --git a/typedapi/security/activateuserprofile/activate_user_profile.go b/typedapi/security/activateuserprofile/activate_user_profile.go index d3ee0aee56..873bc966a7 100644 --- a/typedapi/security/activateuserprofile/activate_user_profile.go +++ b/typedapi/security/activateuserprofile/activate_user_profile.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Activate a user profile. // diff --git a/typedapi/security/activateuserprofile/request.go b/typedapi/security/activateuserprofile/request.go index 8d725dde0c..8bfc3765d6 100644 --- a/typedapi/security/activateuserprofile/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package activateuserprofile @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/activate_user_profile/Request.ts#L23-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/activate_user_profile/Request.ts#L23-L76 type Request struct { // AccessToken The user's Elasticsearch access token or JWT. diff --git a/typedapi/security/activateuserprofile/response.go b/typedapi/security/activateuserprofile/response.go index c71dd764da..4418c2099d 100644 --- a/typedapi/security/activateuserprofile/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package activateuserprofile @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/activate_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/authenticate/authenticate.go b/typedapi/security/authenticate/authenticate.go index 259c216dd3..3be63e67ee 100644 --- a/typedapi/security/authenticate/authenticate.go +++ b/typedapi/security/authenticate/authenticate.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Authenticate a user. // diff --git a/typedapi/security/authenticate/response.go b/typedapi/security/authenticate/response.go index 5fd156c8ff..3ea215f37d 100644 --- a/typedapi/security/authenticate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package authenticate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package authenticate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/authenticate/SecurityAuthenticateResponse.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/authenticate/SecurityAuthenticateResponse.ts#L24-L42 type Response struct { ApiKey *types.AuthenticateApiKey `json:"api_key,omitempty"` AuthenticationRealm types.RealmInfo `json:"authentication_realm"` diff --git a/typedapi/security/bulkdeleterole/bulk_delete_role.go b/typedapi/security/bulkdeleterole/bulk_delete_role.go index 9cbaf41627..5890f9c6ee 100644 --- a/typedapi/security/bulkdeleterole/bulk_delete_role.go +++ b/typedapi/security/bulkdeleterole/bulk_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Bulk delete roles. // diff --git a/typedapi/security/bulkdeleterole/request.go b/typedapi/security/bulkdeleterole/request.go index 0d4de328a2..a798c3727a 100644 --- a/typedapi/security/bulkdeleterole/request.go +++ b/typedapi/security/bulkdeleterole/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulkdeleterole @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package bulkdeleterole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L50 type Request struct { // Names An array of role names to delete diff --git a/typedapi/security/bulkdeleterole/response.go b/typedapi/security/bulkdeleterole/response.go index 55f7e0d98b..9954ed6e76 100644 --- a/typedapi/security/bulkdeleterole/response.go +++ b/typedapi/security/bulkdeleterole/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulkdeleterole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulkdeleterole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/bulk_delete_role/SecurityBulkDeleteRoleResponse.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/bulk_delete_role/SecurityBulkDeleteRoleResponse.ts#L22-L37 type Response struct { // Deleted Array of deleted roles diff --git a/typedapi/security/bulkputrole/bulk_put_role.go b/typedapi/security/bulkputrole/bulk_put_role.go index 3707a6e422..d0053b2f6d 100644 --- a/typedapi/security/bulkputrole/bulk_put_role.go +++ b/typedapi/security/bulkputrole/bulk_put_role.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Bulk create or update roles. // diff --git a/typedapi/security/bulkputrole/request.go b/typedapi/security/bulkputrole/request.go index ff528a5e18..862a3b8b37 100644 --- a/typedapi/security/bulkputrole/request.go +++ b/typedapi/security/bulkputrole/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulkputrole @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package bulkputrole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L52 type Request struct { // Roles A dictionary of role name to RoleDescriptor objects to add or update diff --git a/typedapi/security/bulkputrole/response.go b/typedapi/security/bulkputrole/response.go index c8d1263672..573f6ce5e4 100644 --- a/typedapi/security/bulkputrole/response.go +++ b/typedapi/security/bulkputrole/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulkputrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulkputrole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/bulk_put_role/SecurityBulkPutRoleResponse.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/bulk_put_role/SecurityBulkPutRoleResponse.ts#L22-L41 type Response struct { // Created Array of created roles diff --git a/typedapi/security/bulkupdateapikeys/bulk_update_api_keys.go b/typedapi/security/bulkupdateapikeys/bulk_update_api_keys.go index 01ea756a91..8f863b8686 100644 --- a/typedapi/security/bulkupdateapikeys/bulk_update_api_keys.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Bulk update API keys. // Update the attributes for multiple API keys. diff --git a/typedapi/security/bulkupdateapikeys/request.go b/typedapi/security/bulkupdateapikeys/request.go index ac77787036..ace4c9d5b5 100644 --- a/typedapi/security/bulkupdateapikeys/request.go +++ b/typedapi/security/bulkupdateapikeys/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulkupdateapikeys @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package bulkupdateapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L83 type Request struct { // Expiration Expiration time for the API keys. diff --git a/typedapi/security/bulkupdateapikeys/response.go b/typedapi/security/bulkupdateapikeys/response.go index a76690645b..6b4022272c 100644 --- a/typedapi/security/bulkupdateapikeys/response.go +++ b/typedapi/security/bulkupdateapikeys/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package bulkupdateapikeys @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulkupdateapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysResponse.ts#L22-L28 type Response struct { Errors *types.BulkError `json:"errors,omitempty"` Noops []string `json:"noops"` diff --git a/typedapi/security/changepassword/change_password.go b/typedapi/security/changepassword/change_password.go index 1d970b2a59..c6409cba05 100644 --- a/typedapi/security/changepassword/change_password.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Change passwords. // diff --git a/typedapi/security/changepassword/request.go b/typedapi/security/changepassword/request.go index 1c95347179..9acb3c2e33 100644 --- a/typedapi/security/changepassword/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package changepassword @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L65 type Request struct { // Password The new password value. Passwords must be at least 6 characters long. diff --git a/typedapi/security/changepassword/response.go b/typedapi/security/changepassword/response.go index 6e1f03e381..14713f0942 100644 --- a/typedapi/security/changepassword/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package changepassword // Response holds the response body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/change_password/SecurityChangePasswordResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/change_password/SecurityChangePasswordResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/security/clearapikeycache/clear_api_key_cache.go b/typedapi/security/clearapikeycache/clear_api_key_cache.go index 500129ff1a..a4003ac5e4 100644 --- a/typedapi/security/clearapikeycache/clear_api_key_cache.go +++ b/typedapi/security/clearapikeycache/clear_api_key_cache.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear the API key cache. // diff --git a/typedapi/security/clearapikeycache/response.go b/typedapi/security/clearapikeycache/response.go index f52b8ab740..8839438d61 100644 --- a/typedapi/security/clearapikeycache/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearapikeycache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearapikeycache // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/clearcachedprivileges/clear_cached_privileges.go b/typedapi/security/clearcachedprivileges/clear_cached_privileges.go index d3b4bd1a1d..ec2212c68b 100644 --- a/typedapi/security/clearcachedprivileges/clear_cached_privileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear the privileges cache. // diff --git a/typedapi/security/clearcachedprivileges/response.go b/typedapi/security/clearcachedprivileges/response.go index d7ef0ff2c1..4f470b1489 100644 --- a/typedapi/security/clearcachedprivileges/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearcachedprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/clearcachedrealms/clear_cached_realms.go b/typedapi/security/clearcachedrealms/clear_cached_realms.go index 846ce6fd7d..59ec121e00 100644 --- a/typedapi/security/clearcachedrealms/clear_cached_realms.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear the user cache. // diff --git a/typedapi/security/clearcachedrealms/response.go b/typedapi/security/clearcachedrealms/response.go index 2a92ad8a29..621a17c856 100644 --- a/typedapi/security/clearcachedrealms/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearcachedrealms @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedrealms // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/clearcachedroles/clear_cached_roles.go b/typedapi/security/clearcachedroles/clear_cached_roles.go index 1e7d5abc99..8d7715d0b1 100644 --- a/typedapi/security/clearcachedroles/clear_cached_roles.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear the roles cache. // diff --git a/typedapi/security/clearcachedroles/response.go b/typedapi/security/clearcachedroles/response.go index 6679989bdc..6f82e7916f 100644 --- a/typedapi/security/clearcachedroles/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearcachedroles @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedroles // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go b/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go index f232b525c9..ad54a92bc6 100644 --- a/typedapi/security/clearcachedservicetokens/clear_cached_service_tokens.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear service account token caches. // diff --git a/typedapi/security/clearcachedservicetokens/response.go b/typedapi/security/clearcachedservicetokens/response.go index b7bcca37bd..e8d319b3b5 100644 --- a/typedapi/security/clearcachedservicetokens/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearcachedservicetokens @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedservicetokens // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/createapikey/create_api_key.go b/typedapi/security/createapikey/create_api_key.go index 87bb0be280..306bf588b0 100644 --- a/typedapi/security/createapikey/create_api_key.go +++ b/typedapi/security/createapikey/create_api_key.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create an API key. // diff --git a/typedapi/security/createapikey/request.go b/typedapi/security/createapikey/request.go index b143dcdcfb..6abb362c19 100644 --- a/typedapi/security/createapikey/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L86 type Request struct { // Expiration The expiration time for the API key. diff --git a/typedapi/security/createapikey/response.go b/typedapi/security/createapikey/response.go index 64c5092217..2b33f40dae 100644 --- a/typedapi/security/createapikey/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createapikey // Response holds the response body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50 type Response struct { // ApiKey Generated API key. diff --git a/typedapi/security/createcrossclusterapikey/create_cross_cluster_api_key.go b/typedapi/security/createcrossclusterapikey/create_cross_cluster_api_key.go index 5e1531c19a..e9c1b87fd3 100644 --- a/typedapi/security/createcrossclusterapikey/create_cross_cluster_api_key.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a cross-cluster API key. // diff --git a/typedapi/security/createcrossclusterapikey/request.go b/typedapi/security/createcrossclusterapikey/request.go index bf2cd32f89..e2a447a95f 100644 --- a/typedapi/security/createcrossclusterapikey/request.go +++ b/typedapi/security/createcrossclusterapikey/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createcrossclusterapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package createcrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L80 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L80 type Request struct { // Access The access to be granted to this API key. diff --git a/typedapi/security/createcrossclusterapikey/response.go b/typedapi/security/createcrossclusterapikey/response.go index 59aba83832..8c4eda4914 100644 --- a/typedapi/security/createcrossclusterapikey/response.go +++ b/typedapi/security/createcrossclusterapikey/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createcrossclusterapikey // Response holds the response body struct for the package createcrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyResponse.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyResponse.ts#L23-L48 type Response struct { // ApiKey Generated API key. diff --git a/typedapi/security/createservicetoken/create_service_token.go b/typedapi/security/createservicetoken/create_service_token.go index 622a84df30..cccc706f5a 100644 --- a/typedapi/security/createservicetoken/create_service_token.go +++ b/typedapi/security/createservicetoken/create_service_token.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a service account token. // diff --git a/typedapi/security/createservicetoken/response.go b/typedapi/security/createservicetoken/response.go index 64ec08d949..cf7721fbff 100644 --- a/typedapi/security/createservicetoken/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createservicetoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package createservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/create_service_token/CreateServiceTokenResponse.ts#L22-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/create_service_token/CreateServiceTokenResponse.ts#L22-L30 type Response struct { Created bool `json:"created"` Token types.ServiceToken `json:"token"` diff --git a/typedapi/security/delegatepki/delegate_pki.go b/typedapi/security/delegatepki/delegate_pki.go index 980d596e83..a995a0cd38 100644 --- a/typedapi/security/delegatepki/delegate_pki.go +++ b/typedapi/security/delegatepki/delegate_pki.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delegate PKI authentication. // diff --git a/typedapi/security/delegatepki/request.go b/typedapi/security/delegatepki/request.go index 3b814b13b6..9e2efb9144 100644 --- a/typedapi/security/delegatepki/request.go +++ b/typedapi/security/delegatepki/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delegatepki @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package delegatepki // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts#L22-L57 type Request struct { // X509CertificateChain The X509Certificate chain, which is represented as an ordered string array. diff --git a/typedapi/security/delegatepki/response.go b/typedapi/security/delegatepki/response.go index 40c38bc143..ffde2646e9 100644 --- a/typedapi/security/delegatepki/response.go +++ b/typedapi/security/delegatepki/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delegatepki @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package delegatepki // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L24-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L24-L41 type Response struct { // AccessToken An access token associated with the subject distinguished name of the diff --git a/typedapi/security/deleteprivileges/delete_privileges.go b/typedapi/security/deleteprivileges/delete_privileges.go index f1cf48cdea..1998b32005 100644 --- a/typedapi/security/deleteprivileges/delete_privileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete application privileges. // diff --git a/typedapi/security/deleteprivileges/response.go b/typedapi/security/deleteprivileges/response.go index 822c407337..48c757cd51 100644 --- a/typedapi/security/deleteprivileges/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deleteprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26 type Response map[string]map[string]types.FoundStatus diff --git a/typedapi/security/deleterole/delete_role.go b/typedapi/security/deleterole/delete_role.go index a4a4508029..d3cc7586ee 100644 --- a/typedapi/security/deleterole/delete_role.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete roles. // diff --git a/typedapi/security/deleterole/response.go b/typedapi/security/deleterole/response.go index 70ea2f5fa9..f586b9be8b 100644 --- a/typedapi/security/deleterole/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleterole // Response holds the response body struct for the package deleterole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delete_role/SecurityDeleteRoleResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delete_role/SecurityDeleteRoleResponse.ts#L20-L28 type Response struct { // Found If the role is successfully deleted, `found` is `true`. diff --git a/typedapi/security/deleterolemapping/delete_role_mapping.go b/typedapi/security/deleterolemapping/delete_role_mapping.go index ac32479f08..dec4d38e11 100644 --- a/typedapi/security/deleterolemapping/delete_role_mapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete role mappings. // diff --git a/typedapi/security/deleterolemapping/response.go b/typedapi/security/deleterolemapping/response.go index 9ac224dda9..45d712c927 100644 --- a/typedapi/security/deleterolemapping/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleterolemapping // Response holds the response body struct for the package deleterolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L28 type Response struct { // Found If the mapping is successfully deleted, `found` is `true`. diff --git a/typedapi/security/deleteservicetoken/delete_service_token.go b/typedapi/security/deleteservicetoken/delete_service_token.go index 897017b08d..765349b3ca 100644 --- a/typedapi/security/deleteservicetoken/delete_service_token.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete service account tokens. // diff --git a/typedapi/security/deleteservicetoken/response.go b/typedapi/security/deleteservicetoken/response.go index 67ce38c636..05740ad0ee 100644 --- a/typedapi/security/deleteservicetoken/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteservicetoken // Response holds the response body struct for the package deleteservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L28 type Response struct { // Found If the service account token is successfully deleted, the request returns diff --git a/typedapi/security/deleteuser/delete_user.go b/typedapi/security/deleteuser/delete_user.go index d55dca48fa..577cc09c8d 100644 --- a/typedapi/security/deleteuser/delete_user.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete users. // diff --git a/typedapi/security/deleteuser/response.go b/typedapi/security/deleteuser/response.go index 6412e0018b..5b29d38782 100644 --- a/typedapi/security/deleteuser/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteuser // Response holds the response body struct for the package deleteuser // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delete_user/SecurityDeleteUserResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delete_user/SecurityDeleteUserResponse.ts#L20-L28 type Response struct { // Found If the user is successfully deleted, the request returns `{"found": true}`. diff --git a/typedapi/security/disableuser/disable_user.go b/typedapi/security/disableuser/disable_user.go index 26ff03e5c6..046a5ea1fa 100644 --- a/typedapi/security/disableuser/disable_user.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Disable users. // diff --git a/typedapi/security/disableuser/response.go b/typedapi/security/disableuser/response.go index 5c4d46f482..b6a73a80b5 100644 --- a/typedapi/security/disableuser/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package disableuser // Response holds the response body struct for the package disableuser // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/disable_user/SecurityDisableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/disable_user/SecurityDisableUserResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/security/disableuserprofile/disable_user_profile.go b/typedapi/security/disableuserprofile/disable_user_profile.go index deb215cc35..d01d5fddf8 100644 --- a/typedapi/security/disableuserprofile/disable_user_profile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Disable a user profile. // diff --git a/typedapi/security/disableuserprofile/response.go b/typedapi/security/disableuserprofile/response.go index cf20ae4ad7..4ef7bd5e22 100644 --- a/typedapi/security/disableuserprofile/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package disableuserprofile // Response holds the response body struct for the package disableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/disable_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/enableuser/enable_user.go b/typedapi/security/enableuser/enable_user.go index c929fa6dca..dbd7c79070 100644 --- a/typedapi/security/enableuser/enable_user.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Enable users. // diff --git a/typedapi/security/enableuser/response.go b/typedapi/security/enableuser/response.go index b7fadf7c63..96da1be668 100644 --- a/typedapi/security/enableuser/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package enableuser // Response holds the response body struct for the package enableuser // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/enable_user/SecurityEnableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/enable_user/SecurityEnableUserResponse.ts#L20-L22 type Response struct { } diff --git a/typedapi/security/enableuserprofile/enable_user_profile.go b/typedapi/security/enableuserprofile/enable_user_profile.go index 0105656df2..594497a91d 100644 --- a/typedapi/security/enableuserprofile/enable_user_profile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Enable a user profile. // diff --git a/typedapi/security/enableuserprofile/response.go b/typedapi/security/enableuserprofile/response.go index 1b309c5f58..21c68dec29 100644 --- a/typedapi/security/enableuserprofile/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package enableuserprofile // Response holds the response body struct for the package enableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/enable_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/enrollkibana/enroll_kibana.go b/typedapi/security/enrollkibana/enroll_kibana.go index 463f47913e..7468a33f3a 100644 --- a/typedapi/security/enrollkibana/enroll_kibana.go +++ b/typedapi/security/enrollkibana/enroll_kibana.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Enroll Kibana. // diff --git a/typedapi/security/enrollkibana/response.go b/typedapi/security/enrollkibana/response.go index 6a4d65968d..92b9fc75b0 100644 --- a/typedapi/security/enrollkibana/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package enrollkibana @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package enrollkibana // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/enroll_kibana/Response.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/enroll_kibana/Response.ts#L20-L29 type Response struct { // HttpCa The CA certificate used to sign the node certificates that Elasticsearch uses diff --git a/typedapi/security/enrollnode/enroll_node.go b/typedapi/security/enrollnode/enroll_node.go index 727c6ca9c0..7cad468e36 100644 --- a/typedapi/security/enrollnode/enroll_node.go +++ b/typedapi/security/enrollnode/enroll_node.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Enroll a node. // diff --git a/typedapi/security/enrollnode/response.go b/typedapi/security/enrollnode/response.go index c5887d6327..421bb60bec 100644 --- a/typedapi/security/enrollnode/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package enrollnode // Response holds the response body struct for the package enrollnode // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/enroll_node/Response.ts#L20-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/enroll_node/Response.ts#L20-L47 type Response struct { // HttpCaCert The CA certificate that can be used by the new node in order to sign its diff --git a/typedapi/security/getapikey/get_api_key.go b/typedapi/security/getapikey/get_api_key.go index 887c26c945..ea848f7d93 100644 --- a/typedapi/security/getapikey/get_api_key.go +++ b/typedapi/security/getapikey/get_api_key.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get API key information. // diff --git a/typedapi/security/getapikey/response.go b/typedapi/security/getapikey/response.go index e08786a3b8..39f5c975af 100644 --- a/typedapi/security/getapikey/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getapikey @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24 type Response struct { ApiKeys []types.ApiKey `json:"api_keys"` } diff --git a/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go b/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go index a783ef4265..5bc2586298 100644 --- a/typedapi/security/getbuiltinprivileges/get_builtin_privileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get builtin privileges. // diff --git a/typedapi/security/getbuiltinprivileges/response.go b/typedapi/security/getbuiltinprivileges/response.go index a5ab05f819..a80a7253ff 100644 --- a/typedapi/security/getbuiltinprivileges/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getbuiltinprivileges @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getbuiltinprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L26-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L26-L42 type Response struct { // Cluster The list of cluster privileges that are understood by this version of diff --git a/typedapi/security/getprivileges/get_privileges.go b/typedapi/security/getprivileges/get_privileges.go index 869706c3f6..9686fe60fa 100644 --- a/typedapi/security/getprivileges/get_privileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get application privileges. // diff --git a/typedapi/security/getprivileges/response.go b/typedapi/security/getprivileges/response.go index 8c21fceace..ddbe78f6f9 100644 --- a/typedapi/security/getprivileges/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L29 type Response map[string]map[string]types.PrivilegesActions diff --git a/typedapi/security/getrole/get_role.go b/typedapi/security/getrole/get_role.go index a9568949b9..511cf24c73 100644 --- a/typedapi/security/getrole/get_role.go +++ b/typedapi/security/getrole/get_role.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get roles. // diff --git a/typedapi/security/getrole/response.go b/typedapi/security/getrole/response.go index c07c7ddfc7..e9657e168b 100644 --- a/typedapi/security/getrole/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_role/SecurityGetRoleResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_role/SecurityGetRoleResponse.ts#L23-L31 type Response map[string]types.Role diff --git a/typedapi/security/getrolemapping/get_role_mapping.go b/typedapi/security/getrolemapping/get_role_mapping.go index 02d37997fd..ff5b8acfe1 100644 --- a/typedapi/security/getrolemapping/get_role_mapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get role mappings. // diff --git a/typedapi/security/getrolemapping/response.go b/typedapi/security/getrolemapping/response.go index a3e1ac0e08..41398f410f 100644 --- a/typedapi/security/getrolemapping/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrolemapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L29 type Response map[string]types.SecurityRoleMapping diff --git a/typedapi/security/getserviceaccounts/get_service_accounts.go b/typedapi/security/getserviceaccounts/get_service_accounts.go index bf2fb981d5..7518ee5f67 100644 --- a/typedapi/security/getserviceaccounts/get_service_accounts.go +++ b/typedapi/security/getserviceaccounts/get_service_accounts.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get service accounts. // diff --git a/typedapi/security/getserviceaccounts/response.go b/typedapi/security/getserviceaccounts/response.go index dbb8bbd4b7..6e4f5bda57 100644 --- a/typedapi/security/getserviceaccounts/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getserviceaccounts @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getserviceaccounts // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L29 type Response map[string]types.RoleDescriptorWrapper diff --git a/typedapi/security/getservicecredentials/get_service_credentials.go b/typedapi/security/getservicecredentials/get_service_credentials.go index 1664c53891..0607a924f7 100644 --- a/typedapi/security/getservicecredentials/get_service_credentials.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get service account credentials. // diff --git a/typedapi/security/getservicecredentials/response.go b/typedapi/security/getservicecredentials/response.go index a8f7569dc4..fcedc3deb6 100644 --- a/typedapi/security/getservicecredentials/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getservicecredentials @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getservicecredentials // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L34 type Response struct { Count int `json:"count"` // NodesCredentials Service account credentials collected from all nodes of the cluster. diff --git a/typedapi/security/getsettings/get_settings.go b/typedapi/security/getsettings/get_settings.go index 6243b5f1e1..213e716771 100644 --- a/typedapi/security/getsettings/get_settings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get security index settings. // diff --git a/typedapi/security/getsettings/response.go b/typedapi/security/getsettings/response.go index ad8e746879..b51268f98e 100644 --- a/typedapi/security/getsettings/response.go +++ b/typedapi/security/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_settings/SecurityGetSettingsResponse.ts#L21-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_settings/SecurityGetSettingsResponse.ts#L21-L36 type Response struct { // Security Settings for the index used for most security configuration, including native diff --git a/typedapi/security/gettoken/get_token.go b/typedapi/security/gettoken/get_token.go index cb5f06b17b..50e8ae664a 100644 --- a/typedapi/security/gettoken/get_token.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a token. // diff --git a/typedapi/security/gettoken/request.go b/typedapi/security/gettoken/request.go index 3c0f88a548..7388ae5457 100644 --- a/typedapi/security/gettoken/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package gettoken @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L90 type Request struct { // GrantType The type of grant. diff --git a/typedapi/security/gettoken/response.go b/typedapi/security/gettoken/response.go index 6f4f86fd04..7ddb462b5d 100644 --- a/typedapi/security/gettoken/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package gettoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_token/GetUserAccessTokenResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_token/GetUserAccessTokenResponse.ts#L23-L33 type Response struct { AccessToken string `json:"access_token"` Authentication types.AuthenticatedUser `json:"authentication"` diff --git a/typedapi/security/getuser/get_user.go b/typedapi/security/getuser/get_user.go index a92b50c26d..bf6b7b43ba 100644 --- a/typedapi/security/getuser/get_user.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get users. // diff --git a/typedapi/security/getuser/response.go b/typedapi/security/getuser/response.go index 66fb168e16..a5d482a76b 100644 --- a/typedapi/security/getuser/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getuser @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuser // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_user/SecurityGetUserResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_user/SecurityGetUserResponse.ts#L23-L30 type Response map[string]types.User diff --git a/typedapi/security/getuserprivileges/get_user_privileges.go b/typedapi/security/getuserprivileges/get_user_privileges.go index 9a581a31a0..984773c03a 100644 --- a/typedapi/security/getuserprivileges/get_user_privileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get user privileges. // diff --git a/typedapi/security/getuserprivileges/response.go b/typedapi/security/getuserprivileges/response.go index cc4ac9f464..dbb51cb19a 100644 --- a/typedapi/security/getuserprivileges/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getuserprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuserprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L28-L38 type Response struct { Applications []types.ApplicationPrivileges `json:"applications"` Cluster []string `json:"cluster"` diff --git a/typedapi/security/getuserprofile/get_user_profile.go b/typedapi/security/getuserprofile/get_user_profile.go index 9e76d1dbbc..1d058bd659 100644 --- a/typedapi/security/getuserprofile/get_user_profile.go +++ b/typedapi/security/getuserprofile/get_user_profile.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a user profile. // diff --git a/typedapi/security/getuserprofile/response.go b/typedapi/security/getuserprofile/response.go index 892fd1298e..66826b604c 100644 --- a/typedapi/security/getuserprofile/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getuserprofile @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_user_profile/Response.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_user_profile/Response.ts#L23-L33 type Response struct { Errors *types.GetUserProfileErrors `json:"errors,omitempty"` // Profiles A successful call returns the JSON representation of the user profile and its diff --git a/typedapi/security/grantapikey/grant_api_key.go b/typedapi/security/grantapikey/grant_api_key.go index 0a2d5e2600..b163b9a8b1 100644 --- a/typedapi/security/grantapikey/grant_api_key.go +++ b/typedapi/security/grantapikey/grant_api_key.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Grant an API key. // diff --git a/typedapi/security/grantapikey/request.go b/typedapi/security/grantapikey/request.go index 3cc397eb54..e66bd0ae59 100644 --- a/typedapi/security/grantapikey/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package grantapikey @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L92 type Request struct { // AccessToken The user's access token. diff --git a/typedapi/security/grantapikey/response.go b/typedapi/security/grantapikey/response.go index 83a2e9f55a..d981f6559f 100644 --- a/typedapi/security/grantapikey/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package grantapikey // Response holds the response body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31 type Response struct { ApiKey string `json:"api_key"` Encoded string `json:"encoded"` diff --git a/typedapi/security/hasprivileges/has_privileges.go b/typedapi/security/hasprivileges/has_privileges.go index 8f621fc7a1..2b7a761d96 100644 --- a/typedapi/security/hasprivileges/has_privileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check user privileges. // diff --git a/typedapi/security/hasprivileges/request.go b/typedapi/security/hasprivileges/request.go index fed914b7c5..a54b42164c 100644 --- a/typedapi/security/hasprivileges/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package hasprivileges @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L59 type Request struct { Application []types.ApplicationPrivilegesCheck `json:"application,omitempty"` // Cluster A list of the cluster privileges that you want to check. diff --git a/typedapi/security/hasprivileges/response.go b/typedapi/security/hasprivileges/response.go index c92d7c0787..f906a39283 100644 --- a/typedapi/security/hasprivileges/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package hasprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L35 type Response struct { Application types.ApplicationsPrivileges `json:"application"` Cluster map[string]bool `json:"cluster"` diff --git a/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go b/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go index b2114568c5..1471288d79 100644 --- a/typedapi/security/hasprivilegesuserprofile/has_privileges_user_profile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Check user profile privileges. // diff --git a/typedapi/security/hasprivilegesuserprofile/request.go b/typedapi/security/hasprivilegesuserprofile/request.go index f0cf358688..bd17d20270 100644 --- a/typedapi/security/hasprivilegesuserprofile/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package hasprivilegesuserprofile @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges_user_profile/Request.ts#L24-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/has_privileges_user_profile/Request.ts#L24-L55 type Request struct { // Privileges An object containing all the privileges to be checked. diff --git a/typedapi/security/hasprivilegesuserprofile/response.go b/typedapi/security/hasprivilegesuserprofile/response.go index 46ff3f77c3..f917d1b956 100644 --- a/typedapi/security/hasprivilegesuserprofile/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package hasprivilegesuserprofile @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges_user_profile/Response.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/invalidateapikey/invalidate_api_key.go b/typedapi/security/invalidateapikey/invalidate_api_key.go index 581f6b0c6d..733cc6937f 100644 --- a/typedapi/security/invalidateapikey/invalidate_api_key.go +++ b/typedapi/security/invalidateapikey/invalidate_api_key.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Invalidate API keys. // diff --git a/typedapi/security/invalidateapikey/request.go b/typedapi/security/invalidateapikey/request.go index 28b0923eb2..895cfc4ce5 100644 --- a/typedapi/security/invalidateapikey/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package invalidateapikey @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L82 type Request struct { Id *string `json:"id,omitempty"` // Ids A list of API key ids. diff --git a/typedapi/security/invalidateapikey/response.go b/typedapi/security/invalidateapikey/response.go index f99731b46b..8d424d6ccb 100644 --- a/typedapi/security/invalidateapikey/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package invalidateapikey @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L46 type Response struct { // ErrorCount The number of errors that were encountered when invalidating the API keys. diff --git a/typedapi/security/invalidatetoken/invalidate_token.go b/typedapi/security/invalidatetoken/invalidate_token.go index 9bbc992e30..10493cf841 100644 --- a/typedapi/security/invalidatetoken/invalidate_token.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Invalidate a token. // diff --git a/typedapi/security/invalidatetoken/request.go b/typedapi/security/invalidatetoken/request.go index 35d3143f69..43d3cc3f5a 100644 --- a/typedapi/security/invalidatetoken/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package invalidatetoken @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L71 type Request struct { // RealmName The name of an authentication realm. diff --git a/typedapi/security/invalidatetoken/response.go b/typedapi/security/invalidatetoken/response.go index ccde3dbf07..8bb9e0dfea 100644 --- a/typedapi/security/invalidatetoken/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package invalidatetoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L46 type Response struct { // ErrorCount The number of errors that were encountered when invalidating the tokens. diff --git a/typedapi/security/oidcauthenticate/oidc_authenticate.go b/typedapi/security/oidcauthenticate/oidc_authenticate.go index 8424675b00..95179237e5 100644 --- a/typedapi/security/oidcauthenticate/oidc_authenticate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Authenticate OpenID Connect. // diff --git a/typedapi/security/oidcauthenticate/request.go b/typedapi/security/oidcauthenticate/request.go index 8c370e20d8..d2188d3c3c 100644 --- a/typedapi/security/oidcauthenticate/request.go +++ b/typedapi/security/oidcauthenticate/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package oidcauthenticate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package oidcauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/oidc_authenticate/Request.ts#L22-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/oidc_authenticate/Request.ts#L22-L61 type Request struct { // Nonce Associate a client session with an ID token and mitigate replay attacks. diff --git a/typedapi/security/oidcauthenticate/response.go b/typedapi/security/oidcauthenticate/response.go index c07f047f0a..5ca3e32467 100644 --- a/typedapi/security/oidcauthenticate/response.go +++ b/typedapi/security/oidcauthenticate/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package oidcauthenticate // Response holds the response body struct for the package oidcauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/oidc_authenticate/Response.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/oidc_authenticate/Response.ts#L22-L41 type Response struct { // AccessToken The Elasticsearch access token. diff --git a/typedapi/security/oidclogout/oidc_logout.go b/typedapi/security/oidclogout/oidc_logout.go index 66b9f6e426..a9a6d62256 100644 --- a/typedapi/security/oidclogout/oidc_logout.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Logout of OpenID Connect. // @@ -364,28 +364,28 @@ func (r *OidcLogout) Pretty(pretty bool) *OidcLogout { return r } -// The access token to be invalidated. -// API name: access_token -func (r *OidcLogout) AccessToken(accesstoken string) *OidcLogout { +// The refresh token to be invalidated. +// API name: refresh_token +func (r *OidcLogout) RefreshToken(refreshtoken string) *OidcLogout { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() } - r.req.AccessToken = accesstoken + r.req.RefreshToken = &refreshtoken return r } -// The refresh token to be invalidated. -// API name: refresh_token -func (r *OidcLogout) RefreshToken(refreshtoken string) *OidcLogout { +// The access token to be invalidated. +// API name: token +func (r *OidcLogout) Token(token string) *OidcLogout { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() } - r.req.RefreshToken = &refreshtoken + r.req.Token = token return r } diff --git a/typedapi/security/oidclogout/request.go b/typedapi/security/oidclogout/request.go index d230957cc6..8b3044fe71 100644 --- a/typedapi/security/oidclogout/request.go +++ b/typedapi/security/oidclogout/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package oidclogout @@ -27,13 +27,13 @@ import ( // Request holds the request body struct for the package oidclogout // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/oidc_logout/Request.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/oidc_logout/Request.ts#L22-L52 type Request struct { - // AccessToken The access token to be invalidated. - AccessToken string `json:"access_token"` // RefreshToken The refresh token to be invalidated. RefreshToken *string `json:"refresh_token,omitempty"` + // Token The access token to be invalidated. + Token string `json:"token"` } // NewRequest returns a Request diff --git a/typedapi/security/oidclogout/response.go b/typedapi/security/oidclogout/response.go index c6e7af682c..1b48e088eb 100644 --- a/typedapi/security/oidclogout/response.go +++ b/typedapi/security/oidclogout/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package oidclogout // Response holds the response body struct for the package oidclogout // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/oidc_logout/Response.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/oidc_logout/Response.ts#L20-L27 type Response struct { // Redirect A URI that points to the end session endpoint of the OpenID Connect Provider diff --git a/typedapi/security/oidcprepareauthentication/oidc_prepare_authentication.go b/typedapi/security/oidcprepareauthentication/oidc_prepare_authentication.go index cf27a7b01f..a53fd05b52 100644 --- a/typedapi/security/oidcprepareauthentication/oidc_prepare_authentication.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Prepare OpenID connect authentication. // diff --git a/typedapi/security/oidcprepareauthentication/request.go b/typedapi/security/oidcprepareauthentication/request.go index 3f7ddd0eeb..0f0c05d72a 100644 --- a/typedapi/security/oidcprepareauthentication/request.go +++ b/typedapi/security/oidcprepareauthentication/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package oidcprepareauthentication @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package oidcprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/oidc_prepare_authentication/Request.ts#L22-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/oidc_prepare_authentication/Request.ts#L22-L71 type Request struct { // Iss In the case of a third party initiated single sign on, this is the issuer diff --git a/typedapi/security/oidcprepareauthentication/response.go b/typedapi/security/oidcprepareauthentication/response.go index a230053e21..a4c4b41eb5 100644 --- a/typedapi/security/oidcprepareauthentication/response.go +++ b/typedapi/security/oidcprepareauthentication/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package oidcprepareauthentication // Response holds the response body struct for the package oidcprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/oidc_prepare_authentication/Response.ts#L20-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/oidc_prepare_authentication/Response.ts#L20-L30 type Response struct { Nonce string `json:"nonce"` Realm string `json:"realm"` diff --git a/typedapi/security/putprivileges/put_privileges.go b/typedapi/security/putprivileges/put_privileges.go index 42d2e8ba50..00a7ad5c4b 100644 --- a/typedapi/security/putprivileges/put_privileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update application privileges. // diff --git a/typedapi/security/putprivileges/request.go b/typedapi/security/putprivileges/request.go index a0e43d0a7e..d211df218d 100644 --- a/typedapi/security/putprivileges/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putprivileges @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L67 type Request = map[string]map[string]types.PrivilegesActions // NewRequest returns a Request diff --git a/typedapi/security/putprivileges/response.go b/typedapi/security/putprivileges/response.go index 8e0cd2c140..63f0c60cd7 100644 --- a/typedapi/security/putprivileges/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L28 type Response map[string]map[string]types.CreatedStatus diff --git a/typedapi/security/putrole/put_role.go b/typedapi/security/putrole/put_role.go index 0ecf949c03..f8a1d896ac 100644 --- a/typedapi/security/putrole/put_role.go +++ b/typedapi/security/putrole/put_role.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update roles. // diff --git a/typedapi/security/putrole/request.go b/typedapi/security/putrole/request.go index 717e68a73b..c0e2efba12 100644 --- a/typedapi/security/putrole/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putrole @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_role/SecurityPutRoleRequest.ts#L32-L111 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/put_role/SecurityPutRoleRequest.ts#L32-L111 type Request struct { // Applications A list of application privilege entries. diff --git a/typedapi/security/putrole/response.go b/typedapi/security/putrole/response.go index 8d33c97a27..6747b7986b 100644 --- a/typedapi/security/putrole/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_role/SecurityPutRoleResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/put_role/SecurityPutRoleResponse.ts#L22-L29 type Response struct { // Role When an existing role is updated, `created` is set to `false`. diff --git a/typedapi/security/putrolemapping/put_role_mapping.go b/typedapi/security/putrolemapping/put_role_mapping.go index 290f3dfb3e..2ad4e04843 100644 --- a/typedapi/security/putrolemapping/put_role_mapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update role mappings. // diff --git a/typedapi/security/putrolemapping/request.go b/typedapi/security/putrolemapping/request.go index 8011cf085a..9ab5e4cc20 100644 --- a/typedapi/security/putrolemapping/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putrolemapping @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L103 type Request struct { // Enabled Mappings that have `enabled` set to `false` are ignored when role mapping is diff --git a/typedapi/security/putrolemapping/response.go b/typedapi/security/putrolemapping/response.go index ee04751f69..b7289be362 100644 --- a/typedapi/security/putrolemapping/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putrolemapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/putuser/put_user.go b/typedapi/security/putuser/put_user.go index b9dee48c24..d16baef2e2 100644 --- a/typedapi/security/putuser/put_user.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update users. // diff --git a/typedapi/security/putuser/request.go b/typedapi/security/putuser/request.go index 3c51ccb063..c7a1bddfac 100644 --- a/typedapi/security/putuser/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putuser @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_user/SecurityPutUserRequest.ts#L23-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/put_user/SecurityPutUserRequest.ts#L23-L101 type Request struct { // Email The email of the user. diff --git a/typedapi/security/putuser/response.go b/typedapi/security/putuser/response.go index e0397542b4..6e2f82fbe7 100644 --- a/typedapi/security/putuser/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putuser // Response holds the response body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_user/SecurityPutUserResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/put_user/SecurityPutUserResponse.ts#L20-L28 type Response struct { // Created A successful call returns a JSON structure that shows whether the user has diff --git a/typedapi/security/queryapikeys/query_api_keys.go b/typedapi/security/queryapikeys/query_api_keys.go index 08620e39f9..803f84c990 100644 --- a/typedapi/security/queryapikeys/query_api_keys.go +++ b/typedapi/security/queryapikeys/query_api_keys.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Find API keys with a query. // diff --git a/typedapi/security/queryapikeys/request.go b/typedapi/security/queryapikeys/request.go index ac97115a9a..beaffb6f87 100644 --- a/typedapi/security/queryapikeys/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package queryapikeys @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L124 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L124 type Request struct { // Aggregations Any aggregations to run over the corpus of returned API keys. diff --git a/typedapi/security/queryapikeys/response.go b/typedapi/security/queryapikeys/response.go index 180c1ef155..f16f27ffbe 100644 --- a/typedapi/security/queryapikeys/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package queryapikeys @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45 type Response struct { // Aggregations The aggregations result, if requested. diff --git a/typedapi/security/queryrole/query_role.go b/typedapi/security/queryrole/query_role.go index 4b4bb568da..c47cbbdce0 100644 --- a/typedapi/security/queryrole/query_role.go +++ b/typedapi/security/queryrole/query_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Find roles with a query. // diff --git a/typedapi/security/queryrole/request.go b/typedapi/security/queryrole/request.go index 4ba638f145..14ed55e636 100644 --- a/typedapi/security/queryrole/request.go +++ b/typedapi/security/queryrole/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package queryrole @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryrole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_role/QueryRolesRequest.ts#L25-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_role/QueryRolesRequest.ts#L25-L85 type Request struct { // From The starting document offset. diff --git a/typedapi/security/queryrole/response.go b/typedapi/security/queryrole/response.go index 440084be8f..a5d62f15b4 100644 --- a/typedapi/security/queryrole/response.go +++ b/typedapi/security/queryrole/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package queryrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package queryrole // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_role/QueryRolesResponse.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_role/QueryRolesResponse.ts#L23-L43 type Response struct { // Count The number of roles returned in the response. diff --git a/typedapi/security/queryuser/query_user.go b/typedapi/security/queryuser/query_user.go index ac151ee4de..60d289aade 100644 --- a/typedapi/security/queryuser/query_user.go +++ b/typedapi/security/queryuser/query_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Find users with a query. // diff --git a/typedapi/security/queryuser/request.go b/typedapi/security/queryuser/request.go index 06f882f94f..02232e3672 100644 --- a/typedapi/security/queryuser/request.go +++ b/typedapi/security/queryuser/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package queryuser @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryuser // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_user/SecurityQueryUserRequest.ts#L25-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_user/SecurityQueryUserRequest.ts#L25-L91 type Request struct { // From The starting document offset. diff --git a/typedapi/security/queryuser/response.go b/typedapi/security/queryuser/response.go index 0ff8c95dca..ba5acb56e6 100644 --- a/typedapi/security/queryuser/response.go +++ b/typedapi/security/queryuser/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package queryuser @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package queryuser // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_user/SecurityQueryUserResponse.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_user/SecurityQueryUserResponse.ts#L23-L38 type Response struct { // Count The number of users returned in the response. diff --git a/typedapi/security/samlauthenticate/request.go b/typedapi/security/samlauthenticate/request.go index 970dec0d5d..42a68e0daa 100644 --- a/typedapi/security/samlauthenticate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samlauthenticate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_authenticate/Request.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_authenticate/Request.ts#L23-L61 type Request struct { // Content The SAML response as it was sent by the user's browser, usually a Base64 diff --git a/typedapi/security/samlauthenticate/response.go b/typedapi/security/samlauthenticate/response.go index a83d229a58..07c341b512 100644 --- a/typedapi/security/samlauthenticate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samlauthenticate // Response holds the response body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_authenticate/Response.ts#L22-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_authenticate/Response.ts#L22-L45 type Response struct { // AccessToken The access token that was generated by Elasticsearch. diff --git a/typedapi/security/samlauthenticate/saml_authenticate.go b/typedapi/security/samlauthenticate/saml_authenticate.go index e64a385d39..c743209cd3 100644 --- a/typedapi/security/samlauthenticate/saml_authenticate.go +++ b/typedapi/security/samlauthenticate/saml_authenticate.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Authenticate SAML. // diff --git a/typedapi/security/samlcompletelogout/request.go b/typedapi/security/samlcompletelogout/request.go index e2b733e929..adcbede396 100644 --- a/typedapi/security/samlcompletelogout/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samlcompletelogout @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlcompletelogout // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_complete_logout/Request.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_complete_logout/Request.ts#L23-L61 type Request struct { // Content If the SAML IdP sends the logout response with the HTTP-Post binding, this diff --git a/typedapi/security/samlcompletelogout/saml_complete_logout.go b/typedapi/security/samlcompletelogout/saml_complete_logout.go index 04f681966e..acf1a89694 100644 --- a/typedapi/security/samlcompletelogout/saml_complete_logout.go +++ b/typedapi/security/samlcompletelogout/saml_complete_logout.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Logout of SAML completely. // diff --git a/typedapi/security/samlinvalidate/request.go b/typedapi/security/samlinvalidate/request.go index 2e7556f1a7..7351bc88d6 100644 --- a/typedapi/security/samlinvalidate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samlinvalidate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_invalidate/Request.ts#L22-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_invalidate/Request.ts#L22-L61 type Request struct { // Acs The Assertion Consumer Service URL that matches the one of the SAML realm in diff --git a/typedapi/security/samlinvalidate/response.go b/typedapi/security/samlinvalidate/response.go index 8bed771ff7..06487a4743 100644 --- a/typedapi/security/samlinvalidate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samlinvalidate // Response holds the response body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_invalidate/Response.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_invalidate/Response.ts#L22-L37 type Response struct { // Invalidated The number of tokens that were invalidated as part of this logout. diff --git a/typedapi/security/samlinvalidate/saml_invalidate.go b/typedapi/security/samlinvalidate/saml_invalidate.go index 05aa5d2c4d..b734a6d640 100644 --- a/typedapi/security/samlinvalidate/saml_invalidate.go +++ b/typedapi/security/samlinvalidate/saml_invalidate.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Invalidate SAML. // diff --git a/typedapi/security/samllogout/request.go b/typedapi/security/samllogout/request.go index c26a9b63e3..04fe24b7ae 100644 --- a/typedapi/security/samllogout/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samllogout @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_logout/Request.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_logout/Request.ts#L22-L57 type Request struct { // RefreshToken The refresh token that was returned as a response to calling the SAML diff --git a/typedapi/security/samllogout/response.go b/typedapi/security/samllogout/response.go index 7881d8d7dd..8c1d028622 100644 --- a/typedapi/security/samllogout/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samllogout // Response holds the response body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_logout/Response.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_logout/Response.ts#L20-L28 type Response struct { // Redirect A URL that contains a SAML logout request as a parameter. diff --git a/typedapi/security/samllogout/saml_logout.go b/typedapi/security/samllogout/saml_logout.go index 20b1660407..d75ebdfcb3 100644 --- a/typedapi/security/samllogout/saml_logout.go +++ b/typedapi/security/samllogout/saml_logout.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Logout of SAML. // diff --git a/typedapi/security/samlprepareauthentication/request.go b/typedapi/security/samlprepareauthentication/request.go index dec9b02039..b040d306ea 100644 --- a/typedapi/security/samlprepareauthentication/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samlprepareauthentication @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_prepare_authentication/Request.ts#L22-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_prepare_authentication/Request.ts#L22-L67 type Request struct { // Acs The Assertion Consumer Service URL that matches the one of the SAML realms in diff --git a/typedapi/security/samlprepareauthentication/response.go b/typedapi/security/samlprepareauthentication/response.go index 7c0dd572d0..b10b6e6724 100644 --- a/typedapi/security/samlprepareauthentication/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samlprepareauthentication // Response holds the response body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_prepare_authentication/Response.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_prepare_authentication/Response.ts#L22-L37 type Response struct { // Id A unique identifier for the SAML Request to be stored by the caller of the diff --git a/typedapi/security/samlprepareauthentication/saml_prepare_authentication.go b/typedapi/security/samlprepareauthentication/saml_prepare_authentication.go index b456b76e4b..44f862eb83 100644 --- a/typedapi/security/samlprepareauthentication/saml_prepare_authentication.go +++ b/typedapi/security/samlprepareauthentication/saml_prepare_authentication.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Prepare SAML authentication. // diff --git a/typedapi/security/samlserviceprovidermetadata/response.go b/typedapi/security/samlserviceprovidermetadata/response.go index 28c3891e0a..c86c55ca9f 100644 --- a/typedapi/security/samlserviceprovidermetadata/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package samlserviceprovidermetadata // Response holds the response body struct for the package samlserviceprovidermetadata // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/saml_service_provider_metadata/Response.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/saml_service_provider_metadata/Response.ts#L20-L27 type Response struct { // Metadata An XML string that contains a SAML Service Provider's metadata for the realm. diff --git a/typedapi/security/samlserviceprovidermetadata/saml_service_provider_metadata.go b/typedapi/security/samlserviceprovidermetadata/saml_service_provider_metadata.go index bc258adc65..3775804259 100644 --- a/typedapi/security/samlserviceprovidermetadata/saml_service_provider_metadata.go +++ b/typedapi/security/samlserviceprovidermetadata/saml_service_provider_metadata.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create SAML service provider metadata. // diff --git a/typedapi/security/suggestuserprofiles/request.go b/typedapi/security/suggestuserprofiles/request.go index 3f5977793c..628b091c71 100644 --- a/typedapi/security/suggestuserprofiles/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package suggestuserprofiles @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/suggest_user_profiles/Request.ts#L24-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/suggest_user_profiles/Request.ts#L24-L81 type Request struct { // Data A comma-separated list of filters for the `data` field of the profile diff --git a/typedapi/security/suggestuserprofiles/response.go b/typedapi/security/suggestuserprofiles/response.go index 6e8e4aece0..d0e293fd68 100644 --- a/typedapi/security/suggestuserprofiles/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package suggestuserprofiles @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/suggest_user_profiles/Response.ts#L29-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/suggest_user_profiles/Response.ts#L29-L44 type Response struct { // Profiles A list of profile documents, ordered by relevance, that match the search diff --git a/typedapi/security/suggestuserprofiles/suggest_user_profiles.go b/typedapi/security/suggestuserprofiles/suggest_user_profiles.go index 624858e9ec..f2b534fd72 100644 --- a/typedapi/security/suggestuserprofiles/suggest_user_profiles.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Suggest a user profile. // diff --git a/typedapi/security/updateapikey/request.go b/typedapi/security/updateapikey/request.go index 219e9e480c..2b895f4d70 100644 --- a/typedapi/security/updateapikey/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/update_api_key/Request.ts#L26-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/update_api_key/Request.ts#L26-L91 type Request struct { // Expiration The expiration time for the API key. diff --git a/typedapi/security/updateapikey/response.go b/typedapi/security/updateapikey/response.go index bd8a02aa3e..6f33fe17b2 100644 --- a/typedapi/security/updateapikey/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateapikey // Response holds the response body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/update_api_key/Response.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/update_api_key/Response.ts#L20-L28 type Response struct { // Updated If `true`, the API key was updated. diff --git a/typedapi/security/updateapikey/update_api_key.go b/typedapi/security/updateapikey/update_api_key.go index 4e4a15ec7a..d57881c488 100644 --- a/typedapi/security/updateapikey/update_api_key.go +++ b/typedapi/security/updateapikey/update_api_key.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update an API key. // diff --git a/typedapi/security/updatecrossclusterapikey/request.go b/typedapi/security/updatecrossclusterapikey/request.go index b343cad262..f27d2edd09 100644 --- a/typedapi/security/updatecrossclusterapikey/request.go +++ b/typedapi/security/updatecrossclusterapikey/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatecrossclusterapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updatecrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L83 type Request struct { // Access The access to be granted to this API key. diff --git a/typedapi/security/updatecrossclusterapikey/response.go b/typedapi/security/updatecrossclusterapikey/response.go index 89ff18b6bb..28c965de34 100644 --- a/typedapi/security/updatecrossclusterapikey/response.go +++ b/typedapi/security/updatecrossclusterapikey/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatecrossclusterapikey // Response holds the response body struct for the package updatecrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyResponse.ts#L20-L28 type Response struct { // Updated If `true`, the API key was updated. diff --git a/typedapi/security/updatecrossclusterapikey/update_cross_cluster_api_key.go b/typedapi/security/updatecrossclusterapikey/update_cross_cluster_api_key.go index 1c09835778..362b2b6908 100644 --- a/typedapi/security/updatecrossclusterapikey/update_cross_cluster_api_key.go +++ b/typedapi/security/updatecrossclusterapikey/update_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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update a cross-cluster API key. // diff --git a/typedapi/security/updatesettings/request.go b/typedapi/security/updatesettings/request.go index 9eab2c4f3e..ef74e2716a 100644 --- a/typedapi/security/updatesettings/request.go +++ b/typedapi/security/updatesettings/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatesettings @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/update_settings/SecurityUpdateSettingsRequest.ts#L24-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/update_settings/SecurityUpdateSettingsRequest.ts#L24-L71 type Request struct { // Security Settings for the index used for most security configuration, including native diff --git a/typedapi/security/updatesettings/response.go b/typedapi/security/updatesettings/response.go index d771e524e3..e541f352d4 100644 --- a/typedapi/security/updatesettings/response.go +++ b/typedapi/security/updatesettings/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatesettings // Response holds the response body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/update_settings/SecurityUpdateSettingsResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/update_settings/SecurityUpdateSettingsResponse.ts#L20-L24 type Response struct { Acknowledged bool `json:"acknowledged"` } diff --git a/typedapi/security/updatesettings/update_settings.go b/typedapi/security/updatesettings/update_settings.go index 5a5b88c544..0fc22233b6 100644 --- a/typedapi/security/updatesettings/update_settings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update security index settings. // diff --git a/typedapi/security/updateuserprofiledata/request.go b/typedapi/security/updateuserprofiledata/request.go index 4795f6ad28..3bc4a1f974 100644 --- a/typedapi/security/updateuserprofiledata/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateuserprofiledata @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/update_user_profile_data/Request.ts#L27-L98 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/update_user_profile_data/Request.ts#L27-L98 type Request struct { // Data Non-searchable data that you want to associate with the user profile. diff --git a/typedapi/security/updateuserprofiledata/response.go b/typedapi/security/updateuserprofiledata/response.go index 226385ee34..3df40a7c07 100644 --- a/typedapi/security/updateuserprofiledata/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updateuserprofiledata // Response holds the response body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/update_user_profile_data/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/security/updateuserprofiledata/update_user_profile_data.go b/typedapi/security/updateuserprofiledata/update_user_profile_data.go index 9d594e0b49..2ad6189b80 100644 --- a/typedapi/security/updateuserprofiledata/update_user_profile_data.go +++ b/typedapi/security/updateuserprofiledata/update_user_profile_data.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update user profile data. // diff --git a/typedapi/shutdown/deletenode/delete_node.go b/typedapi/shutdown/deletenode/delete_node.go index f971145364..a98d76e5ee 100644 --- a/typedapi/shutdown/deletenode/delete_node.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Cancel node shutdown preparations. // Remove a node from the shutdown list so it can resume normal operations. diff --git a/typedapi/shutdown/deletenode/response.go b/typedapi/shutdown/deletenode/response.go index a45a98d700..2f8ebbbbb5 100644 --- a/typedapi/shutdown/deletenode/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletenode // Response holds the response body struct for the package deletenode // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/shutdown/getnode/get_node.go b/typedapi/shutdown/getnode/get_node.go index ae2af4c6b9..d3943f8d85 100644 --- a/typedapi/shutdown/getnode/get_node.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the shutdown status. // diff --git a/typedapi/shutdown/getnode/response.go b/typedapi/shutdown/getnode/response.go index 3a2cd565e0..aa77732531 100644 --- a/typedapi/shutdown/getnode/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getnode @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getnode // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27 type Response struct { Nodes []types.NodeShutdownStatus `json:"nodes"` } diff --git a/typedapi/shutdown/putnode/put_node.go b/typedapi/shutdown/putnode/put_node.go index 747390ca58..6607262c5d 100644 --- a/typedapi/shutdown/putnode/put_node.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Prepare a node to be shut down. // diff --git a/typedapi/shutdown/putnode/request.go b/typedapi/shutdown/putnode/request.go index b5f2db968f..a003febf5a 100644 --- a/typedapi/shutdown/putnode/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putnode @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L108 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L108 type Request struct { // AllocationDelay Only valid if type is restart. diff --git a/typedapi/shutdown/putnode/response.go b/typedapi/shutdown/putnode/response.go index 0e36095ead..54ef0322fd 100644 --- a/typedapi/shutdown/putnode/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putnode // Response holds the response body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/simulate/ingest/ingest.go b/typedapi/simulate/ingest/ingest.go index ba44de31ad..17617dc8b5 100644 --- a/typedapi/simulate/ingest/ingest.go +++ b/typedapi/simulate/ingest/ingest.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Simulate data ingestion. // Run ingest pipelines against a set of provided documents, optionally with diff --git a/typedapi/simulate/ingest/request.go b/typedapi/simulate/ingest/request.go index 95e82e00bb..29d4ab30bb 100644 --- a/typedapi/simulate/ingest/request.go +++ b/typedapi/simulate/ingest/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package ingest @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package ingest // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/simulate/ingest/SimulateIngestRequest.ts#L29-L100 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/simulate/ingest/SimulateIngestRequest.ts#L29-L100 type Request struct { // ComponentTemplateSubstitutions A map of component template names to substitute component template definition diff --git a/typedapi/simulate/ingest/response.go b/typedapi/simulate/ingest/response.go index 92ca6a7ffb..3f75a35016 100644 --- a/typedapi/simulate/ingest/response.go +++ b/typedapi/simulate/ingest/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package ingest @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package ingest // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/simulate/ingest/SimulateIngestResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/simulate/ingest/SimulateIngestResponse.ts#L27-L29 type Response struct { Docs []types.SimulateIngestDocumentResult `json:"docs"` } diff --git a/typedapi/slm/deletelifecycle/delete_lifecycle.go b/typedapi/slm/deletelifecycle/delete_lifecycle.go index 49311e3a16..75bab344fd 100644 --- a/typedapi/slm/deletelifecycle/delete_lifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a policy. // Delete a snapshot lifecycle policy definition. diff --git a/typedapi/slm/deletelifecycle/response.go b/typedapi/slm/deletelifecycle/response.go index 3c6a11b5e3..480faeeb8f 100644 --- a/typedapi/slm/deletelifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/slm/executelifecycle/execute_lifecycle.go b/typedapi/slm/executelifecycle/execute_lifecycle.go index e54f06a502..0a5369354a 100644 --- a/typedapi/slm/executelifecycle/execute_lifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a policy. // Immediately create a snapshot according to the snapshot lifecycle policy diff --git a/typedapi/slm/executelifecycle/response.go b/typedapi/slm/executelifecycle/response.go index 0d20754f15..38f265a6df 100644 --- a/typedapi/slm/executelifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package executelifecycle // Response holds the response body struct for the package executelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24 type Response struct { SnapshotName string `json:"snapshot_name"` } diff --git a/typedapi/slm/executeretention/execute_retention.go b/typedapi/slm/executeretention/execute_retention.go index f29fac00c0..e0d3298c12 100644 --- a/typedapi/slm/executeretention/execute_retention.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a retention policy. // Manually apply the retention policy to force immediate removal of snapshots diff --git a/typedapi/slm/executeretention/response.go b/typedapi/slm/executeretention/response.go index 1c03f70d2b..17eb19e10d 100644 --- a/typedapi/slm/executeretention/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package executeretention // Response holds the response body struct for the package executeretention // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/execute_retention/ExecuteRetentionResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/slm/getlifecycle/get_lifecycle.go b/typedapi/slm/getlifecycle/get_lifecycle.go index ffe3392d11..91ca90e375 100644 --- a/typedapi/slm/getlifecycle/get_lifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get policy information. // Get snapshot lifecycle policy definitions and information about the latest diff --git a/typedapi/slm/getlifecycle/response.go b/typedapi/slm/getlifecycle/response.go index f06584606b..404179b9d5 100644 --- a/typedapi/slm/getlifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getlifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27 type Response map[string]types.SnapshotLifecycle diff --git a/typedapi/slm/getstats/get_stats.go b/typedapi/slm/getstats/get_stats.go index 035fb6a739..0e08b3a0d8 100644 --- a/typedapi/slm/getstats/get_stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get snapshot lifecycle management statistics. // Get global and policy-level statistics about actions taken by snapshot diff --git a/typedapi/slm/getstats/response.go b/typedapi/slm/getstats/response.go index 0e7815a36c..9da1c33a36 100644 --- a/typedapi/slm/getstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/slm/getstatus/get_status.go b/typedapi/slm/getstatus/get_status.go index bb55cfa8bc..af0c756dd2 100644 --- a/typedapi/slm/getstatus/get_status.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the snapshot lifecycle management status. package getstatus diff --git a/typedapi/slm/getstatus/response.go b/typedapi/slm/getstatus/response.go index 693c9567ae..d5b7d91b2e 100644 --- a/typedapi/slm/getstatus/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getstatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24 type Response struct { OperationMode lifecycleoperationmode.LifecycleOperationMode `json:"operation_mode"` } diff --git a/typedapi/slm/putlifecycle/put_lifecycle.go b/typedapi/slm/putlifecycle/put_lifecycle.go index 6588282e57..008b694b6d 100644 --- a/typedapi/slm/putlifecycle/put_lifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a policy. // Create or update a snapshot lifecycle policy. diff --git a/typedapi/slm/putlifecycle/request.go b/typedapi/slm/putlifecycle/request.go index 8d73eb9931..9055ed2ab4 100644 --- a/typedapi/slm/putlifecycle/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putlifecycle @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L89 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L89 type Request struct { // Config Configuration for each snapshot created by the policy. diff --git a/typedapi/slm/putlifecycle/response.go b/typedapi/slm/putlifecycle/response.go index fb64e9863e..9d60d6cccd 100644 --- a/typedapi/slm/putlifecycle/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/slm/start/response.go b/typedapi/slm/start/response.go index 759eca21e7..468e613e52 100644 --- a/typedapi/slm/start/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/slm/start/start.go b/typedapi/slm/start/start.go index 9b62271917..769b6d6a0a 100644 --- a/typedapi/slm/start/start.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start snapshot lifecycle management. // Snapshot lifecycle management (SLM) starts automatically when a cluster is diff --git a/typedapi/slm/stop/response.go b/typedapi/slm/stop/response.go index 16fce30a87..679a76af27 100644 --- a/typedapi/slm/stop/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/slm/stop/stop.go b/typedapi/slm/stop/stop.go index 0cf8a603d0..53cd7fd44e 100644 --- a/typedapi/slm/stop/stop.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop snapshot lifecycle management. // Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. diff --git a/typedapi/snapshot/cleanuprepository/cleanup_repository.go b/typedapi/snapshot/cleanuprepository/cleanup_repository.go index 75a195dae3..6dcaa69cac 100644 --- a/typedapi/snapshot/cleanuprepository/cleanup_repository.go +++ b/typedapi/snapshot/cleanuprepository/cleanup_repository.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clean up the snapshot repository. // Trigger the review of the contents of a snapshot repository and delete any diff --git a/typedapi/snapshot/cleanuprepository/response.go b/typedapi/snapshot/cleanuprepository/response.go index d71db1d230..42fae1f377 100644 --- a/typedapi/snapshot/cleanuprepository/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package cleanuprepository @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package cleanuprepository // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27 type Response struct { // Results Statistics for cleanup operations. diff --git a/typedapi/snapshot/clone/clone.go b/typedapi/snapshot/clone/clone.go index e5a43e272e..f60bcefa06 100644 --- a/typedapi/snapshot/clone/clone.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clone a snapshot. // Clone part of all of a snapshot into another snapshot in the same repository. diff --git a/typedapi/snapshot/clone/request.go b/typedapi/snapshot/clone/request.go index fcbe45249b..d029a9ac3a 100644 --- a/typedapi/snapshot/clone/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clone @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L51 type Request struct { Indices string `json:"indices"` } diff --git a/typedapi/snapshot/clone/response.go b/typedapi/snapshot/clone/response.go index 4622ebb9ba..35ef24f9d6 100644 --- a/typedapi/snapshot/clone/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/clone/SnapshotCloneResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/snapshot/create/create.go b/typedapi/snapshot/create/create.go index 7843787026..70c693bafd 100644 --- a/typedapi/snapshot/create/create.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a snapshot. // Take a snapshot of a cluster or of data streams and indices. diff --git a/typedapi/snapshot/create/request.go b/typedapi/snapshot/create/request.go index 57d5126606..dbf41437d6 100644 --- a/typedapi/snapshot/create/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package create @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L92 type Request struct { // FeatureStates Feature states to include in the snapshot. Each feature state includes one or diff --git a/typedapi/snapshot/create/response.go b/typedapi/snapshot/create/response.go index 41ef749d52..f798a93914 100644 --- a/typedapi/snapshot/create/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package create @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/create/SnapshotCreateResponse.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/snapshot/createrepository/create_repository.go b/typedapi/snapshot/createrepository/create_repository.go index d2e966db06..b6ebe0df8c 100644 --- a/typedapi/snapshot/createrepository/create_repository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a snapshot repository. // IMPORTANT: If you are migrating searchable snapshots, the repository name diff --git a/typedapi/snapshot/createrepository/request.go b/typedapi/snapshot/createrepository/request.go index 8fc2c03675..eedfbb87e6 100644 --- a/typedapi/snapshot/createrepository/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createrepository @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L54 type Request = types.Repository diff --git a/typedapi/snapshot/createrepository/response.go b/typedapi/snapshot/createrepository/response.go index 28bdd63c3f..72dcd6bce7 100644 --- a/typedapi/snapshot/createrepository/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package createrepository // Response holds the response body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/snapshot/delete/delete.go b/typedapi/snapshot/delete/delete.go index d9ceb89b2c..146dce57cb 100644 --- a/typedapi/snapshot/delete/delete.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete snapshots. package delete diff --git a/typedapi/snapshot/delete/response.go b/typedapi/snapshot/delete/response.go index 12ed00a23c..da3121bd5b 100644 --- a/typedapi/snapshot/delete/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/delete/SnapshotDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/snapshot/deleterepository/delete_repository.go b/typedapi/snapshot/deleterepository/delete_repository.go index 9083fba056..117050f854 100644 --- a/typedapi/snapshot/deleterepository/delete_repository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete snapshot repositories. // When a repository is unregistered, Elasticsearch removes only the reference diff --git a/typedapi/snapshot/deleterepository/response.go b/typedapi/snapshot/deleterepository/response.go index 8b4f8da460..56def25953 100644 --- a/typedapi/snapshot/deleterepository/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleterepository // Response holds the response body struct for the package deleterepository // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/snapshot/get/get.go b/typedapi/snapshot/get/get.go index ca4c8a10af..b503534b20 100644 --- a/typedapi/snapshot/get/get.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get snapshot information. package get diff --git a/typedapi/snapshot/get/response.go b/typedapi/snapshot/get/response.go index d545a2fa21..60361964fd 100644 --- a/typedapi/snapshot/get/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/get/SnapshotGetResponse.ts#L25-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/snapshot/getrepository/get_repository.go b/typedapi/snapshot/getrepository/get_repository.go index f391de5ad9..f3f4044a80 100644 --- a/typedapi/snapshot/getrepository/get_repository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get snapshot repository information. package getrepository diff --git a/typedapi/snapshot/getrepository/response.go b/typedapi/snapshot/getrepository/response.go index 0ad0b78f09..c66b426b69 100644 --- a/typedapi/snapshot/getrepository/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getrepository @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package getrepository // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25 type Response map[string]types.Repository diff --git a/typedapi/snapshot/repositoryanalyze/repository_analyze.go b/typedapi/snapshot/repositoryanalyze/repository_analyze.go index 65401c952a..04e649efbb 100644 --- a/typedapi/snapshot/repositoryanalyze/repository_analyze.go +++ b/typedapi/snapshot/repositoryanalyze/repository_analyze.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Analyze a snapshot repository. // Analyze the performance characteristics and any incorrect behaviour found in diff --git a/typedapi/snapshot/repositoryanalyze/response.go b/typedapi/snapshot/repositoryanalyze/response.go index e4bfeb1fbe..855ea6b5f7 100644 --- a/typedapi/snapshot/repositoryanalyze/response.go +++ b/typedapi/snapshot/repositoryanalyze/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package repositoryanalyze @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositoryanalyze // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L24-L108 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L24-L108 type Response struct { // BlobCount The number of blobs written to the repository during the test. diff --git a/typedapi/snapshot/repositoryverifyintegrity/repository_verify_integrity.go b/typedapi/snapshot/repositoryverifyintegrity/repository_verify_integrity.go index 123979f40a..8a26dd6e2f 100644 --- a/typedapi/snapshot/repositoryverifyintegrity/repository_verify_integrity.go +++ b/typedapi/snapshot/repositoryverifyintegrity/repository_verify_integrity.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Verify the repository integrity. // Verify the integrity of the contents of a snapshot repository. diff --git a/typedapi/snapshot/repositoryverifyintegrity/response.go b/typedapi/snapshot/repositoryverifyintegrity/response.go index 15746d619e..fa4da27f36 100644 --- a/typedapi/snapshot/repositoryverifyintegrity/response.go +++ b/typedapi/snapshot/repositoryverifyintegrity/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package repositoryverifyintegrity @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositoryverifyintegrity // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L24 type Response = json.RawMessage diff --git a/typedapi/snapshot/restore/request.go b/typedapi/snapshot/restore/request.go index da7e96bd85..03dd6bae1d 100644 --- a/typedapi/snapshot/restore/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package restore @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L78 type Request struct { FeatureStates []string `json:"feature_states,omitempty"` IgnoreIndexSettings []string `json:"ignore_index_settings,omitempty"` diff --git a/typedapi/snapshot/restore/response.go b/typedapi/snapshot/restore/response.go index bc093cfe24..65e7093131 100644 --- a/typedapi/snapshot/restore/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package restore @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L28 type Response struct { Accepted *bool `json:"accepted,omitempty"` Snapshot *types.SnapshotRestore `json:"snapshot,omitempty"` diff --git a/typedapi/snapshot/restore/restore.go b/typedapi/snapshot/restore/restore.go index a22374a569..da23807eb3 100644 --- a/typedapi/snapshot/restore/restore.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Restore a snapshot. // Restore a snapshot of a cluster or data streams and indices. diff --git a/typedapi/snapshot/status/response.go b/typedapi/snapshot/status/response.go index 27ce18c64a..8efadde73a 100644 --- a/typedapi/snapshot/status/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package status @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/status/SnapshotStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/status/SnapshotStatusResponse.ts#L22-L24 type Response struct { Snapshots []types.Status `json:"snapshots"` } diff --git a/typedapi/snapshot/status/status.go b/typedapi/snapshot/status/status.go index 08d8651e8c..c690ff0e14 100644 --- a/typedapi/snapshot/status/status.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the snapshot status. // Get a detailed description of the current state for each shard participating diff --git a/typedapi/snapshot/verifyrepository/response.go b/typedapi/snapshot/verifyrepository/response.go index 9dfc34742c..4f47558fbd 100644 --- a/typedapi/snapshot/verifyrepository/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package verifyrepository @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package verifyrepository // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L25 type Response struct { Nodes map[string]types.CompactNodeInfo `json:"nodes"` } diff --git a/typedapi/snapshot/verifyrepository/verify_repository.go b/typedapi/snapshot/verifyrepository/verify_repository.go index 8048facab9..093b2681f3 100644 --- a/typedapi/snapshot/verifyrepository/verify_repository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Verify a snapshot repository. // Check for common misconfigurations in a snapshot repository. diff --git a/typedapi/sql/clearcursor/clear_cursor.go b/typedapi/sql/clearcursor/clear_cursor.go index 9e40437b07..f973895af6 100644 --- a/typedapi/sql/clearcursor/clear_cursor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Clear an SQL search cursor. package clearcursor diff --git a/typedapi/sql/clearcursor/request.go b/typedapi/sql/clearcursor/request.go index 50e69f300e..6bb8e96f54 100644 --- a/typedapi/sql/clearcursor/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearcursor @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L42 type Request struct { // Cursor Cursor to clear. diff --git a/typedapi/sql/clearcursor/response.go b/typedapi/sql/clearcursor/response.go index cd633fbb40..a767017eb3 100644 --- a/typedapi/sql/clearcursor/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package clearcursor // Response holds the response body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22 type Response struct { Succeeded bool `json:"succeeded"` } diff --git a/typedapi/sql/deleteasync/delete_async.go b/typedapi/sql/deleteasync/delete_async.go index 2fdb70f45c..6853991883 100644 --- a/typedapi/sql/deleteasync/delete_async.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete an async SQL search. // Delete an async SQL search or a stored synchronous SQL search. diff --git a/typedapi/sql/deleteasync/response.go b/typedapi/sql/deleteasync/response.go index 2eb17c3276..e2cf863297 100644 --- a/typedapi/sql/deleteasync/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deleteasync // Response holds the response body struct for the package deleteasync // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/sql/getasync/get_async.go b/typedapi/sql/getasync/get_async.go index 75972d0e26..f26404fad8 100644 --- a/typedapi/sql/getasync/get_async.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get async SQL search results. // Get the current status and available results for an async SQL search or diff --git a/typedapi/sql/getasync/response.go b/typedapi/sql/getasync/response.go index eaaa35c7f0..73d475b41c 100644 --- a/typedapi/sql/getasync/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getasync @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package getasync // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/get_async/SqlGetAsyncResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/sql/getasyncstatus/get_async_status.go b/typedapi/sql/getasyncstatus/get_async_status.go index 23a4700d19..05e299d0d9 100644 --- a/typedapi/sql/getasyncstatus/get_async_status.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get the async SQL search status. // Get the current status of an async SQL search or a stored synchronous SQL diff --git a/typedapi/sql/getasyncstatus/response.go b/typedapi/sql/getasyncstatus/response.go index 7332ff7d64..bbc8362317 100644 --- a/typedapi/sql/getasyncstatus/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getasyncstatus // Response holds the response body struct for the package getasyncstatus // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55 type Response struct { // CompletionStatus The HTTP status code for the search. diff --git a/typedapi/sql/query/query.go b/typedapi/sql/query/query.go index c8453d20d9..6c4c4e19e2 100644 --- a/typedapi/sql/query/query.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get SQL search results. // Run an SQL request. diff --git a/typedapi/sql/query/request.go b/typedapi/sql/query/request.go index 5371d600b2..da8381ebe0 100644 --- a/typedapi/sql/query/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package query @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/query/QuerySqlRequest.ts#L28-L152 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/sql/query/QuerySqlRequest.ts#L28-L152 type Request struct { // AllowPartialSearchResults If `true`, the response has partial results when there are shard request diff --git a/typedapi/sql/query/response.go b/typedapi/sql/query/response.go index 09ddad5d62..57e9eaa405 100644 --- a/typedapi/sql/query/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package query @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/query/QuerySqlResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/sql/translate/request.go b/typedapi/sql/translate/request.go index 502f196b71..d1f9cb37ff 100644 --- a/typedapi/sql/translate/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package translate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/translate/TranslateSqlRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/sql/translate/TranslateSqlRequest.ts#L25-L65 type Request struct { // FetchSize The maximum number of rows (or entries) to return in one response. diff --git a/typedapi/sql/translate/response.go b/typedapi/sql/translate/response.go index 426cf7933c..852914f9c6 100644 --- a/typedapi/sql/translate/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package translate @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/translate/TranslateSqlResponse.ts#L27-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/sql/translate/TranslateSqlResponse.ts#L27-L37 type Response struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Fields []types.FieldAndFormat `json:"fields,omitempty"` diff --git a/typedapi/sql/translate/translate.go b/typedapi/sql/translate/translate.go index 4d62c0cebd..0d10d1da86 100644 --- a/typedapi/sql/translate/translate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Translate SQL into Elasticsearch queries. // Translate an SQL search into a search API request containing Query DSL. diff --git a/typedapi/ssl/certificates/certificates.go b/typedapi/ssl/certificates/certificates.go index d26ee77220..6c15b06e37 100644 --- a/typedapi/ssl/certificates/certificates.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get SSL certificates. // diff --git a/typedapi/ssl/certificates/response.go b/typedapi/ssl/certificates/response.go index bd31ff1571..e7b1101994 100644 --- a/typedapi/ssl/certificates/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package certificates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package certificates // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L24 type Response []types.CertificateInformation diff --git a/typedapi/synonyms/deletesynonym/delete_synonym.go b/typedapi/synonyms/deletesynonym/delete_synonym.go index e9a60713ef..67cbec1886 100644 --- a/typedapi/synonyms/deletesynonym/delete_synonym.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a synonym set. // diff --git a/typedapi/synonyms/deletesynonym/response.go b/typedapi/synonyms/deletesynonym/response.go index 70c0f413d8..a264b404d0 100644 --- a/typedapi/synonyms/deletesynonym/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletesynonym // Response holds the response body struct for the package deletesynonym // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/synonyms/deletesynonymrule/delete_synonym_rule.go b/typedapi/synonyms/deletesynonymrule/delete_synonym_rule.go index c253c1882b..7a4b4911c9 100644 --- a/typedapi/synonyms/deletesynonymrule/delete_synonym_rule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a synonym rule. // Delete a synonym rule from a synonym set. diff --git a/typedapi/synonyms/deletesynonymrule/response.go b/typedapi/synonyms/deletesynonymrule/response.go index 7ea1623c58..72a9176193 100644 --- a/typedapi/synonyms/deletesynonymrule/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletesynonymrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package deletesynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/synonyms/getsynonym/get_synonym.go b/typedapi/synonyms/getsynonym/get_synonym.go index f09b9b5851..043afa1661 100644 --- a/typedapi/synonyms/getsynonym/get_synonym.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a synonym set. package getsynonym diff --git a/typedapi/synonyms/getsynonym/response.go b/typedapi/synonyms/getsynonym/response.go index f8cf5dc912..b3cf47af8d 100644 --- a/typedapi/synonyms/getsynonym/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getsynonym @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/get_synonym/SynonymsGetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/synonyms/get_synonym/SynonymsGetResponse.ts#L23-L34 type Response struct { // Count The total number of synonyms rules that the synonyms set contains. diff --git a/typedapi/synonyms/getsynonymrule/get_synonym_rule.go b/typedapi/synonyms/getsynonymrule/get_synonym_rule.go index e2f3b898a3..9b56c0a453 100644 --- a/typedapi/synonyms/getsynonymrule/get_synonym_rule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a synonym rule. // Get a synonym rule from a synonym set. diff --git a/typedapi/synonyms/getsynonymrule/response.go b/typedapi/synonyms/getsynonymrule/response.go index daf7d886c9..d803a4ff59 100644 --- a/typedapi/synonyms/getsynonymrule/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getsynonymrule // Response holds the response body struct for the package getsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L24 type Response struct { // Id Synonym Rule identifier diff --git a/typedapi/synonyms/getsynonymssets/get_synonyms_sets.go b/typedapi/synonyms/getsynonymssets/get_synonyms_sets.go index b4e5e64835..98d8a108fb 100644 --- a/typedapi/synonyms/getsynonymssets/get_synonyms_sets.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get all synonym sets. // Get a summary of all defined synonym sets. diff --git a/typedapi/synonyms/getsynonymssets/response.go b/typedapi/synonyms/getsynonymssets/response.go index f939c32bea..8247af5883 100644 --- a/typedapi/synonyms/getsynonymssets/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getsynonymssets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsynonymssets // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L34 type Response struct { // Count The total number of synonyms sets defined. diff --git a/typedapi/synonyms/putsynonym/put_synonym.go b/typedapi/synonyms/putsynonym/put_synonym.go index f262e1d6d3..04b7aa1ebb 100644 --- a/typedapi/synonyms/putsynonym/put_synonym.go +++ b/typedapi/synonyms/putsynonym/put_synonym.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a synonym set. // Synonyms sets are limited to a maximum of 10,000 synonym rules per set. diff --git a/typedapi/synonyms/putsynonym/request.go b/typedapi/synonyms/putsynonym/request.go index f818dc987a..901ccc95c0 100644 --- a/typedapi/synonyms/putsynonym/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putsynonym @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L55 type Request struct { // SynonymsSet The synonym rules definitions for the synonyms set. diff --git a/typedapi/synonyms/putsynonym/response.go b/typedapi/synonyms/putsynonym/response.go index 684d876bd1..dcdc33908a 100644 --- a/typedapi/synonyms/putsynonym/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putsynonym @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/synonyms/putsynonymrule/put_synonym_rule.go b/typedapi/synonyms/putsynonymrule/put_synonym_rule.go index 7a7b7d8916..9a291b8a1e 100644 --- a/typedapi/synonyms/putsynonymrule/put_synonym_rule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a synonym rule. // Create or update a synonym rule in a synonym set. diff --git a/typedapi/synonyms/putsynonymrule/request.go b/typedapi/synonyms/putsynonymrule/request.go index 3b98cd4100..bf92ee4bcf 100644 --- a/typedapi/synonyms/putsynonymrule/request.go +++ b/typedapi/synonyms/putsynonymrule/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putsynonymrule @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L60 type Request struct { // Synonyms The synonym rule information definition, which must be in Solr format. diff --git a/typedapi/synonyms/putsynonymrule/response.go b/typedapi/synonyms/putsynonymrule/response.go index 77667006dd..69103b00ba 100644 --- a/typedapi/synonyms/putsynonymrule/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putsynonymrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/tasks/cancel/cancel.go b/typedapi/tasks/cancel/cancel.go index 8e8bd83f04..13dcc23d94 100644 --- a/typedapi/tasks/cancel/cancel.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Cancel a task. // diff --git a/typedapi/tasks/cancel/response.go b/typedapi/tasks/cancel/response.go index 5ece19ba20..405914a649 100644 --- a/typedapi/tasks/cancel/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package cancel @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package cancel // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/tasks/cancel/CancelTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/tasks/get/get.go b/typedapi/tasks/get/get.go index 3bfbda8793..f1fa04dda9 100644 --- a/typedapi/tasks/get/get.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get task information. // Get information about a task currently running in the cluster. diff --git a/typedapi/tasks/get/response.go b/typedapi/tasks/get/response.go index 089f517ebc..670e57f5be 100644 --- a/typedapi/tasks/get/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package get @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/tasks/get/GetTaskResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/tasks/get/GetTaskResponse.ts#L24-L31 type Response struct { Completed bool `json:"completed"` Error *types.ErrorCause `json:"error,omitempty"` diff --git a/typedapi/tasks/list/list.go b/typedapi/tasks/list/list.go index f3dd2f3398..0d56135f6d 100644 --- a/typedapi/tasks/list/list.go +++ b/typedapi/tasks/list/list.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get all tasks. // Get information about the tasks currently running on one or more nodes in the diff --git a/typedapi/tasks/list/response.go b/typedapi/tasks/list/response.go index 544afba26f..2e609fc45b 100644 --- a/typedapi/tasks/list/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package list @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/tasks/list/ListTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/textstructure/findfieldstructure/find_field_structure.go b/typedapi/textstructure/findfieldstructure/find_field_structure.go index 8702e20e52..67d56a62ac 100644 --- a/typedapi/textstructure/findfieldstructure/find_field_structure.go +++ b/typedapi/textstructure/findfieldstructure/find_field_structure.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Find the structure of a text field. // Find the structure of a text field in an Elasticsearch index. diff --git a/typedapi/textstructure/findfieldstructure/response.go b/typedapi/textstructure/findfieldstructure/response.go index b870349902..5699b61d59 100644 --- a/typedapi/textstructure/findfieldstructure/response.go +++ b/typedapi/textstructure/findfieldstructure/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package findfieldstructure @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package findfieldstructure // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/find_field_structure/FindFieldStructureResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/find_field_structure/FindFieldStructureResponse.ts#L31-L49 type Response struct { Charset string `json:"charset"` EcsCompatibility *ecscompatibilitytype.EcsCompatibilityType `json:"ecs_compatibility,omitempty"` diff --git a/typedapi/textstructure/findmessagestructure/find_message_structure.go b/typedapi/textstructure/findmessagestructure/find_message_structure.go index 3eb190f60d..eaefd6aba7 100644 --- a/typedapi/textstructure/findmessagestructure/find_message_structure.go +++ b/typedapi/textstructure/findmessagestructure/find_message_structure.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Find the structure of text messages. // Find the structure of a list of text messages. diff --git a/typedapi/textstructure/findmessagestructure/request.go b/typedapi/textstructure/findmessagestructure/request.go index f3f9353876..9ee9bd5848 100644 --- a/typedapi/textstructure/findmessagestructure/request.go +++ b/typedapi/textstructure/findmessagestructure/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package findmessagestructure @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package findmessagestructure // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L174 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L174 type Request struct { // Messages The list of messages you want to analyze. diff --git a/typedapi/textstructure/findmessagestructure/response.go b/typedapi/textstructure/findmessagestructure/response.go index 49043c52a1..51ca79fbc2 100644 --- a/typedapi/textstructure/findmessagestructure/response.go +++ b/typedapi/textstructure/findmessagestructure/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package findmessagestructure @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package findmessagestructure // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/find_message_structure/FindMessageStructureResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/find_message_structure/FindMessageStructureResponse.ts#L31-L49 type Response struct { Charset string `json:"charset"` EcsCompatibility *ecscompatibilitytype.EcsCompatibilityType `json:"ecs_compatibility,omitempty"` diff --git a/typedapi/textstructure/findstructure/find_structure.go b/typedapi/textstructure/findstructure/find_structure.go index 6e78300011..95eb2275e7 100644 --- a/typedapi/textstructure/findstructure/find_structure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Find the structure of a text file. // The text file must contain data that is suitable to be ingested into diff --git a/typedapi/textstructure/findstructure/request.go b/typedapi/textstructure/findstructure/request.go index f9ce856300..5df426b1f5 100644 --- a/typedapi/textstructure/findstructure/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package findstructure @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L207 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L207 type Request = []json.RawMessage // NewRequest returns a Request diff --git a/typedapi/textstructure/findstructure/response.go b/typedapi/textstructure/findstructure/response.go index ef7958005f..125b9465ee 100644 --- a/typedapi/textstructure/findstructure/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package findstructure @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/find_structure/FindStructureResponse.ts#L27-L97 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/find_structure/FindStructureResponse.ts#L27-L97 type Response struct { // Charset The character encoding used to parse the text. diff --git a/typedapi/textstructure/testgrokpattern/request.go b/typedapi/textstructure/testgrokpattern/request.go index bacdc01ab1..732b93c585 100644 --- a/typedapi/textstructure/testgrokpattern/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package testgrokpattern @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L59 type Request struct { // GrokPattern The Grok pattern to run on the text. diff --git a/typedapi/textstructure/testgrokpattern/response.go b/typedapi/textstructure/testgrokpattern/response.go index 4a36b05e5d..70e1198430 100644 --- a/typedapi/textstructure/testgrokpattern/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package testgrokpattern @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26 type Response struct { Matches []types.MatchedText `json:"matches"` } diff --git a/typedapi/textstructure/testgrokpattern/test_grok_pattern.go b/typedapi/textstructure/testgrokpattern/test_grok_pattern.go index a78faf33a3..3aee441557 100644 --- a/typedapi/textstructure/testgrokpattern/test_grok_pattern.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Test a Grok pattern. // Test a Grok pattern on one or more lines of text. diff --git a/typedapi/transform/deletetransform/delete_transform.go b/typedapi/transform/deletetransform/delete_transform.go index 912884b943..d9b0d967ab 100644 --- a/typedapi/transform/deletetransform/delete_transform.go +++ b/typedapi/transform/deletetransform/delete_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a transform. package deletetransform diff --git a/typedapi/transform/deletetransform/response.go b/typedapi/transform/deletetransform/response.go index e855cb1808..d22c5714f5 100644 --- a/typedapi/transform/deletetransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletetransform // Response holds the response body struct for the package deletetransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/delete_transform/DeleteTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/transform/getnodestats/get_node_stats.go b/typedapi/transform/getnodestats/get_node_stats.go index c5272c870b..913abcc65a 100644 --- a/typedapi/transform/getnodestats/get_node_stats.go +++ b/typedapi/transform/getnodestats/get_node_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Retrieves transform usage information for transform nodes. package getnodestats diff --git a/typedapi/transform/gettransform/get_transform.go b/typedapi/transform/gettransform/get_transform.go index b2dc3a5d83..51cdf3826e 100644 --- a/typedapi/transform/gettransform/get_transform.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get transforms. // Get configuration information for transforms. diff --git a/typedapi/transform/gettransform/response.go b/typedapi/transform/gettransform/response.go index af58707253..0fc5feca5d 100644 --- a/typedapi/transform/gettransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package gettransform @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform/GetTransformResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform/GetTransformResponse.ts#L23-L25 type Response struct { Count int64 `json:"count"` Transforms []types.TransformSummary `json:"transforms"` diff --git a/typedapi/transform/gettransformstats/get_transform_stats.go b/typedapi/transform/gettransformstats/get_transform_stats.go index 57652158f2..cddb3cbec6 100644 --- a/typedapi/transform/gettransformstats/get_transform_stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get transform stats. // diff --git a/typedapi/transform/gettransformstats/response.go b/typedapi/transform/gettransformstats/response.go index 4371078b46..631199471c 100644 --- a/typedapi/transform/gettransformstats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package gettransformstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettransformstats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25 type Response struct { Count int64 `json:"count"` Transforms []types.TransformStats `json:"transforms"` diff --git a/typedapi/transform/previewtransform/preview_transform.go b/typedapi/transform/previewtransform/preview_transform.go index 0981ee3bf8..f743370569 100644 --- a/typedapi/transform/previewtransform/preview_transform.go +++ b/typedapi/transform/previewtransform/preview_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Preview a transform. // Generates a preview of the results that you will get when you create a diff --git a/typedapi/transform/previewtransform/request.go b/typedapi/transform/previewtransform/request.go index cba074c3a4..ccbd082b81 100644 --- a/typedapi/transform/previewtransform/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package previewtransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L119 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L119 type Request struct { // Description Free text description of the transform. diff --git a/typedapi/transform/previewtransform/response.go b/typedapi/transform/previewtransform/response.go index 92d1a73035..fa2ec6be90 100644 --- a/typedapi/transform/previewtransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package previewtransform @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/preview_transform/PreviewTransformResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/transform/puttransform/put_transform.go b/typedapi/transform/puttransform/put_transform.go index 4b4f61d814..0eae1de7fb 100644 --- a/typedapi/transform/puttransform/put_transform.go +++ b/typedapi/transform/puttransform/put_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create a transform. // Creates a transform. diff --git a/typedapi/transform/puttransform/request.go b/typedapi/transform/puttransform/request.go index 38f7f21177..c55c47f65d 100644 --- a/typedapi/transform/puttransform/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/put_transform/PutTransformRequest.ts#L33-L130 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/put_transform/PutTransformRequest.ts#L33-L130 type Request struct { // Description Free text description of the transform. diff --git a/typedapi/transform/puttransform/response.go b/typedapi/transform/puttransform/response.go index b420be58a2..a24dccd75e 100644 --- a/typedapi/transform/puttransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package puttransform // Response holds the response body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/put_transform/PutTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/transform/resettransform/reset_transform.go b/typedapi/transform/resettransform/reset_transform.go index 84f0e89ad3..b17ab334d0 100644 --- a/typedapi/transform/resettransform/reset_transform.go +++ b/typedapi/transform/resettransform/reset_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Reset a transform. // diff --git a/typedapi/transform/resettransform/response.go b/typedapi/transform/resettransform/response.go index 1bff6cd104..17f79e2d24 100644 --- a/typedapi/transform/resettransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package resettransform // Response holds the response body struct for the package resettransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/reset_transform/ResetTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/transform/schedulenowtransform/response.go b/typedapi/transform/schedulenowtransform/response.go index f18d34a513..70f78de5ce 100644 --- a/typedapi/transform/schedulenowtransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package schedulenowtransform // Response holds the response body struct for the package schedulenowtransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L23 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/transform/schedulenowtransform/schedule_now_transform.go b/typedapi/transform/schedulenowtransform/schedule_now_transform.go index 1318d100f0..247e4bcd0a 100644 --- a/typedapi/transform/schedulenowtransform/schedule_now_transform.go +++ b/typedapi/transform/schedulenowtransform/schedule_now_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Schedule a transform to start now. // diff --git a/typedapi/transform/starttransform/response.go b/typedapi/transform/starttransform/response.go index 517e7d0dcf..6c6159f49c 100644 --- a/typedapi/transform/starttransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package starttransform // Response holds the response body struct for the package starttransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/start_transform/StartTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/transform/starttransform/start_transform.go b/typedapi/transform/starttransform/start_transform.go index 867821990b..bcac94d6e9 100644 --- a/typedapi/transform/starttransform/start_transform.go +++ b/typedapi/transform/starttransform/start_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start a transform. // diff --git a/typedapi/transform/stoptransform/response.go b/typedapi/transform/stoptransform/response.go index c8b34693bd..33e70b0d38 100644 --- a/typedapi/transform/stoptransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stoptransform // Response holds the response body struct for the package stoptransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/stop_transform/StopTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/transform/stoptransform/stop_transform.go b/typedapi/transform/stoptransform/stop_transform.go index 01d110f6be..3fc27134a5 100644 --- a/typedapi/transform/stoptransform/stop_transform.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop transforms. // Stops one or more transforms. diff --git a/typedapi/transform/updatetransform/request.go b/typedapi/transform/updatetransform/request.go index 7c223ae3c6..3c7d9c1746 100644 --- a/typedapi/transform/updatetransform/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatetransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L113 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L113 type Request struct { // Description Free text description of the transform. diff --git a/typedapi/transform/updatetransform/response.go b/typedapi/transform/updatetransform/response.go index b4cd8141db..704422bd2a 100644 --- a/typedapi/transform/updatetransform/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatetransform @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/update_transform/UpdateTransformResponse.ts#L33-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/transform/updatetransform/update_transform.go b/typedapi/transform/updatetransform/update_transform.go index 22d73fee9b..1436247a48 100644 --- a/typedapi/transform/updatetransform/update_transform.go +++ b/typedapi/transform/updatetransform/update_transform.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update a transform. // Updates certain properties of a transform. @@ -105,7 +105,7 @@ func NewUpdateTransformFunc(tp elastictransport.Interface) NewUpdateTransform { // 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 +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-transform-update-transform func New(tp elastictransport.Interface) *UpdateTransform { r := &UpdateTransform{ transport: tp, diff --git a/typedapi/transform/upgradetransforms/response.go b/typedapi/transform/upgradetransforms/response.go index 8ea7cadb75..a2a8de873c 100644 --- a/typedapi/transform/upgradetransforms/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package upgradetransforms // Response holds the response body struct for the package upgradetransforms // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34 type Response struct { // NeedsUpdate The number of transforms that need to be upgraded. diff --git a/typedapi/transform/upgradetransforms/upgrade_transforms.go b/typedapi/transform/upgradetransforms/upgrade_transforms.go index 358b3e2902..96a9159ff8 100644 --- a/typedapi/transform/upgradetransforms/upgrade_transforms.go +++ b/typedapi/transform/upgradetransforms/upgrade_transforms.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Upgrade all transforms. // @@ -116,7 +116,7 @@ func NewUpgradeTransformsFunc(tp elastictransport.Interface) NewUpgradeTransform // transforms before upgrading the cluster. // You may want to perform a recent cluster backup prior to the upgrade. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/upgrade-transforms.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-transform-upgrade-transforms func New(tp elastictransport.Interface) *UpgradeTransforms { r := &UpgradeTransforms{ transport: tp, diff --git a/typedapi/types/access.go b/typedapi/types/access.go index 8d8528bd91..df96659b89 100644 --- a/typedapi/types/access.go +++ b/typedapi/types/access.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Access type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Access.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Access.ts#L22-L31 type Access struct { // Replication A list of indices permission entries for cross-cluster replication. Replication []ReplicationAccess `json:"replication,omitempty"` diff --git a/typedapi/types/acknowledgement.go b/typedapi/types/acknowledgement.go index 0704c64c8c..758476e5c2 100644 --- a/typedapi/types/acknowledgement.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Acknowledgement type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/post/types.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/post/types.ts#L20-L23 type Acknowledgement struct { License []string `json:"license"` Message string `json:"message"` diff --git a/typedapi/types/acknowledgestate.go b/typedapi/types/acknowledgestate.go index 8ff3737824..46e801a874 100644 --- a/typedapi/types/acknowledgestate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // AcknowledgeState type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L109-L112 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L109-L112 type AcknowledgeState struct { State acknowledgementoptions.AcknowledgementOptions `json:"state"` Timestamp DateTime `json:"timestamp"` diff --git a/typedapi/types/actionstatus.go b/typedapi/types/actionstatus.go index 4089842a6c..f73ecf9fb8 100644 --- a/typedapi/types/actionstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ActionStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L125-L130 type ActionStatus struct { Ack AcknowledgeState `json:"ack"` LastExecution *ExecutionState `json:"last_execution,omitempty"` diff --git a/typedapi/types/activationstate.go b/typedapi/types/activationstate.go index dcf7b2b09b..9d087cac19 100644 --- a/typedapi/types/activationstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ActivationState type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Activation.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Activation.ts#L24-L27 type ActivationState struct { Active bool `json:"active"` Timestamp DateTime `json:"timestamp"` diff --git a/typedapi/types/activationstatus.go b/typedapi/types/activationstatus.go index 65ed5c6ded..eb2a40a708 100644 --- a/typedapi/types/activationstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ActivationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Activation.ts#L29-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Activation.ts#L29-L33 type ActivationStatus struct { Actions WatcherStatusActions `json:"actions"` State ActivationState `json:"state"` diff --git a/typedapi/types/adaptiveallocations.go b/typedapi/types/adaptiveallocations.go new file mode 100644 index 0000000000..2dd4940183 --- /dev/null +++ b/typedapi/types/adaptiveallocations.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AdaptiveAllocations type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L60-L77 +type AdaptiveAllocations struct { + // Enabled Turn on `adaptive_allocations`. + Enabled *bool `json:"enabled,omitempty"` + // MaxNumberOfAllocations The maximum number of allocations to scale to. + // If set, it must be greater than or equal to `min_number_of_allocations`. + MaxNumberOfAllocations *int `json:"max_number_of_allocations,omitempty"` + // MinNumberOfAllocations The minimum number of allocations to scale to. + // If set, it must be greater than or equal to 0. + // If not defined, the deployment scales to 0. + MinNumberOfAllocations *int `json:"min_number_of_allocations,omitempty"` +} + +func (s *AdaptiveAllocations) 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 "max_number_of_allocations": + + 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", "MaxNumberOfAllocations", err) + } + s.MaxNumberOfAllocations = &value + case float64: + f := int(v) + s.MaxNumberOfAllocations = &f + } + + case "min_number_of_allocations": + + 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", "MinNumberOfAllocations", err) + } + s.MinNumberOfAllocations = &value + case float64: + f := int(v) + s.MinNumberOfAllocations = &f + } + + } + } + return nil +} + +// NewAdaptiveAllocations returns a AdaptiveAllocations. +func NewAdaptiveAllocations() *AdaptiveAllocations { + r := &AdaptiveAllocations{} + + return r +} + +// true + +type AdaptiveAllocationsVariant interface { + AdaptiveAllocationsCaster() *AdaptiveAllocations +} + +func (s *AdaptiveAllocations) AdaptiveAllocationsCaster() *AdaptiveAllocations { + return s +} diff --git a/typedapi/types/adaptiveallocationssettings.go b/typedapi/types/adaptiveallocationssettings.go index 5d11acdd9f..5e7d6297c2 100644 --- a/typedapi/types/adaptiveallocationssettings.go +++ b/typedapi/types/adaptiveallocationssettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AdaptiveAllocationsSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L109-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L109-L125 type AdaptiveAllocationsSettings struct { // Enabled If true, adaptive_allocations is enabled Enabled bool `json:"enabled"` diff --git a/typedapi/types/adaptiveselection.go b/typedapi/types/adaptiveselection.go index 51d2d18997..e5f250abbd 100644 --- a/typedapi/types/adaptiveselection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AdaptiveSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L439-L468 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L439-L468 type AdaptiveSelection struct { // AvgQueueSize The exponentially weighted moving average queue size of search requests on // the keyed node. diff --git a/typedapi/types/addaction.go b/typedapi/types/addaction.go index d4b037dfcd..9c2ec2d8df 100644 --- a/typedapi/types/addaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AddAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/update_aliases/types.ts#L41-L95 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/adjacencymatrixaggregate.go b/typedapi/types/adjacencymatrixaggregate.go index 9802ed3964..467db728fa 100644 --- a/typedapi/types/adjacencymatrixaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // AdjacencyMatrixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L647-L652 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L647-L652 type AdjacencyMatrixAggregate struct { Buckets BucketsAdjacencyMatrixBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/adjacencymatrixaggregation.go b/typedapi/types/adjacencymatrixaggregation.go index 509b45723c..fb16fa6fc2 100644 --- a/typedapi/types/adjacencymatrixaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AdjacencyMatrixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L60-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L60-L70 type AdjacencyMatrixAggregation struct { // Filters Filters used to create buckets. // At least one filter is required. diff --git a/typedapi/types/adjacencymatrixbucket.go b/typedapi/types/adjacencymatrixbucket.go index 0a736a7a33..76ce0f122a 100644 --- a/typedapi/types/adjacencymatrixbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // AdjacencyMatrixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L654-L656 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L654-L656 type AdjacencyMatrixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/aggregate.go b/typedapi/types/aggregate.go index 20456fedc4..4f6277ea78 100644 --- a/typedapi/types/aggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -93,5 +93,5 @@ package types // MatrixStatsAggregate // GeoLineAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L38-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L38-L125 type Aggregate any diff --git a/typedapi/types/aggregatemetricdoubleproperty.go b/typedapi/types/aggregatemetricdoubleproperty.go index 35ef8d6e0c..07d12c303f 100644 --- a/typedapi/types/aggregatemetricdoubleproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // AggregateMetricDoubleProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/complex.ts#L59-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/complex.ts#L59-L64 type AggregateMetricDoubleProperty struct { DefaultMetric string `json:"default_metric"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/typedapi/types/aggregateorder.go b/typedapi/types/aggregateorder.go index 00625f08c0..3aae86a09a 100644 --- a/typedapi/types/aggregateorder.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // map[string]sortorder.SortOrder // []map[string]sortorder.SortOrder // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1052-L1054 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1052-L1054 type AggregateOrder any type AggregateOrderVariant interface { diff --git a/typedapi/types/aggregateoutput.go b/typedapi/types/aggregateoutput.go index 88ef47f061..73402d0362 100644 --- a/typedapi/types/aggregateoutput.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // AggregateOutput type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/aggregationbreakdown.go b/typedapi/types/aggregationbreakdown.go index be18486b75..4f0db93e5b 100644 --- a/typedapi/types/aggregationbreakdown.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AggregationBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L26-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L26-L39 type AggregationBreakdown struct { BuildAggregation int64 `json:"build_aggregation"` BuildAggregationCount int64 `json:"build_aggregation_count"` diff --git a/typedapi/types/aggregationprofile.go b/typedapi/types/aggregationprofile.go index f464262629..02778719e6 100644 --- a/typedapi/types/aggregationprofile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AggregationProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L85-L92 type AggregationProfile struct { Breakdown AggregationBreakdown `json:"breakdown"` Children []AggregationProfile `json:"children,omitempty"` diff --git a/typedapi/types/aggregationprofiledebug.go b/typedapi/types/aggregationprofiledebug.go index 892ab68d9b..1f144fb46b 100644 --- a/typedapi/types/aggregationprofiledebug.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L42-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L42-L76 type AggregationProfileDebug struct { BruteForceUsed *int `json:"brute_force_used,omitempty"` BuiltBuckets *int `json:"built_buckets,omitempty"` diff --git a/typedapi/types/aggregationprofiledelegatedebugfilter.go b/typedapi/types/aggregationprofiledelegatedebugfilter.go index 26a0a5571c..926c445067 100644 --- a/typedapi/types/aggregationprofiledelegatedebugfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDelegateDebugFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L78-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L78-L83 type AggregationProfileDelegateDebugFilter struct { Query *string `json:"query,omitempty"` ResultsFromMetadata *int `json:"results_from_metadata,omitempty"` diff --git a/typedapi/types/aggregationrange.go b/typedapi/types/aggregationrange.go index 08e0e0cf9e..dce16b9ac1 100644 --- a/typedapi/types/aggregationrange.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L691-L704 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L691-L704 type AggregationRange struct { // From Start of the range (inclusive). From *Float64 `json:"from,omitempty"` diff --git a/typedapi/types/aggregations.go b/typedapi/types/aggregations.go index 3da109f74c..c1c48082a7 100644 --- a/typedapi/types/aggregations.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Aggregations type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/AggregationContainer.ts#L107-L533 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/AggregationContainer.ts#L107-L533 type Aggregations struct { AdditionalAggregationsProperty map[string]json.RawMessage `json:"-"` // AdjacencyMatrix A bucket aggregation returning a form of adjacency matrix. diff --git a/typedapi/types/alias.go b/typedapi/types/alias.go index ace7c690ba..bf1dab44ad 100644 --- a/typedapi/types/alias.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Alias type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/Alias.ts#L23-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/aliasdefinition.go b/typedapi/types/aliasdefinition.go index 61d9334435..09fcc8d564 100644 --- a/typedapi/types/aliasdefinition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AliasDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/AliasDefinition.ts#L22-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/aliasesrecord.go b/typedapi/types/aliasesrecord.go index 251c5cec61..775463e86e 100644 --- a/typedapi/types/aliasesrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AliasesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/aliases/types.ts#L22-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/aliases/types.ts#L22-L53 type AliasesRecord struct { // Alias alias name Alias *string `json:"alias,omitempty"` diff --git a/typedapi/types/alibabacloudservicesettings.go b/typedapi/types/alibabacloudservicesettings.go new file mode 100644 index 0000000000..2a45b14dfc --- /dev/null +++ b/typedapi/types/alibabacloudservicesettings.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AlibabaCloudServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L219-L264 +type AlibabaCloudServiceSettings struct { + // ApiKey A valid API key for the AlibabaCloud AI Search API. + ApiKey string `json:"api_key"` + // Host The name of the host address used for the inference task. + // You can find the host address in the API keys section of the documentation. + Host string `json:"host"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // AlibabaCloud AI Search. + // By default, the `alibabacloud-ai-search` service sets the number of requests + // allowed per minute to `1000`. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // ServiceId The name of the model service to use for the inference task. + // The following service IDs are available for the `completion` task: + // + // * `ops-qwen-turbo` + // * `qwen-turbo` + // * `qwen-plus` + // * `qwen-max ÷ qwen-max-longcontext` + // + // The following service ID is available for the `rerank` task: + // + // * `ops-bge-reranker-larger` + // + // The following service ID is available for the `sparse_embedding` task: + // + // * `ops-text-sparse-embedding-001` + // + // The following service IDs are available for the `text_embedding` task: + // + // `ops-text-embedding-001` + // `ops-text-embedding-zh-001` + // `ops-text-embedding-en-001` + // `ops-text-embedding-002` + ServiceId string `json:"service_id"` + // Workspace The name of the workspace used for the inference task. + Workspace string `json:"workspace"` +} + +func (s *AlibabaCloudServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "host": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Host", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Host = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "service_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceId = o + + case "workspace": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Workspace", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Workspace = o + + } + } + return nil +} + +// NewAlibabaCloudServiceSettings returns a AlibabaCloudServiceSettings. +func NewAlibabaCloudServiceSettings() *AlibabaCloudServiceSettings { + r := &AlibabaCloudServiceSettings{} + + return r +} + +// true + +type AlibabaCloudServiceSettingsVariant interface { + AlibabaCloudServiceSettingsCaster() *AlibabaCloudServiceSettings +} + +func (s *AlibabaCloudServiceSettings) AlibabaCloudServiceSettingsCaster() *AlibabaCloudServiceSettings { + return s +} diff --git a/typedapi/types/alibabacloudtasksettings.go b/typedapi/types/alibabacloudtasksettings.go new file mode 100644 index 0000000000..53fbfb9130 --- /dev/null +++ b/typedapi/types/alibabacloudtasksettings.go @@ -0,0 +1,112 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AlibabaCloudTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L266-L280 +type AlibabaCloudTaskSettings struct { + // InputType For a `sparse_embedding` or `text_embedding` task, specify the type of input + // passed to the model. + // Valid values are: + // + // * `ingest` for storing document embeddings in a vector database. + // * `search` for storing embeddings of search queries run against a vector + // database to find relevant documents. + InputType *string `json:"input_type,omitempty"` + // ReturnToken For a `sparse_embedding` task, it affects whether the token name will be + // returned in the response. + // It defaults to `false`, which means only the token ID will be returned in the + // response. + ReturnToken *bool `json:"return_token,omitempty"` +} + +func (s *AlibabaCloudTaskSettings) 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 "input_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "InputType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.InputType = &o + + case "return_token": + 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", "ReturnToken", err) + } + s.ReturnToken = &value + case bool: + s.ReturnToken = &v + } + + } + } + return nil +} + +// NewAlibabaCloudTaskSettings returns a AlibabaCloudTaskSettings. +func NewAlibabaCloudTaskSettings() *AlibabaCloudTaskSettings { + r := &AlibabaCloudTaskSettings{} + + return r +} + +// true + +type AlibabaCloudTaskSettingsVariant interface { + AlibabaCloudTaskSettingsCaster() *AlibabaCloudTaskSettings +} + +func (s *AlibabaCloudTaskSettings) AlibabaCloudTaskSettingsCaster() *AlibabaCloudTaskSettings { + return s +} diff --git a/typedapi/types/allfield.go b/typedapi/types/allfield.go index aa7cf1a184..d6cad3b764 100644 --- a/typedapi/types/allfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AllField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/meta-fields.ts#L29-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/meta-fields.ts#L29-L40 type AllField struct { Analyzer string `json:"analyzer"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/allocateaction.go b/typedapi/types/allocateaction.go index 74dd45ddba..b148b161b3 100644 --- a/typedapi/types/allocateaction.go +++ b/typedapi/types/allocateaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AllocateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L133-L139 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L133-L139 type AllocateAction struct { Exclude map[string]string `json:"exclude,omitempty"` Include map[string]string `json:"include,omitempty"` diff --git a/typedapi/types/allocationdecision.go b/typedapi/types/allocationdecision.go index 8af3fb81d6..b1671b8f03 100644 --- a/typedapi/types/allocationdecision.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // AllocationDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L27-L31 type AllocationDecision struct { Decider string `json:"decider"` Decision allocationexplaindecision.AllocationExplainDecision `json:"decision"` diff --git a/typedapi/types/allocationrecord.go b/typedapi/types/allocationrecord.go index 47c9be6e83..8e02bc9e8d 100644 --- a/typedapi/types/allocationrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AllocationRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/allocation/types.ts#L25-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/allocation/types.ts#L25-L99 type AllocationRecord struct { // DiskAvail Free disk space available to Elasticsearch. // Elasticsearch retrieves this metric from the node’s operating system. diff --git a/typedapi/types/allocationstore.go b/typedapi/types/allocationstore.go index dfec093ee6..eb57f3fc02 100644 --- a/typedapi/types/allocationstore.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AllocationStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L40-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L40-L47 type AllocationStore struct { AllocationId string `json:"allocation_id"` Found bool `json:"found"` diff --git a/typedapi/types/alwayscondition.go b/typedapi/types/alwayscondition.go index baf348c3ac..9939af55b8 100644 --- a/typedapi/types/alwayscondition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // AlwaysCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L25-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L25-L25 type AlwaysCondition struct { } diff --git a/typedapi/types/amazonbedrockservicesettings.go b/typedapi/types/amazonbedrockservicesettings.go new file mode 100644 index 0000000000..a4b5dd9033 --- /dev/null +++ b/typedapi/types/amazonbedrockservicesettings.go @@ -0,0 +1,170 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AmazonBedrockServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L293-L335 +type AmazonBedrockServiceSettings struct { + // AccessKey A valid AWS access key that has permissions to use Amazon Bedrock and access + // to models for inference requests. + AccessKey string `json:"access_key"` + // Model The base model ID or an ARN to a custom model based on a foundational model. + // The base model IDs can be found in the Amazon Bedrock documentation. + // Note that the model ID must be available for the provider chosen and your IAM + // user must have access to the model. + Model string `json:"model"` + // Provider The model provider for your deployment. + // Note that some providers may support only certain task types. + // Supported providers include: + // + // * `amazontitan` - available for `text_embedding` and `completion` task types + // * `anthropic` - available for `completion` task type only + // * `ai21labs` - available for `completion` task type only + // * `cohere` - available for `text_embedding` and `completion` task types + // * `meta` - available for `completion` task type only + // * `mistral` - available for `completion` task type only + Provider *string `json:"provider,omitempty"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Watsonx. + // By default, the `watsonxai` service sets the number of requests allowed per + // minute to 120. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Region The region that your model or ARN is deployed in. + // The list of available regions per model can be found in the Amazon Bedrock + // documentation. + Region string `json:"region"` + // SecretKey A valid AWS secret key that is paired with the `access_key`. + // For informationg about creating and managing access and secret keys, refer to + // the AWS documentation. + SecretKey string `json:"secret_key"` +} + +func (s *AmazonBedrockServiceSettings) 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 "access_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "AccessKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.AccessKey = o + + case "model": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Model", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Model = o + + case "provider": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Provider", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Provider = &o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "region": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Region", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Region = o + + case "secret_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "SecretKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.SecretKey = o + + } + } + return nil +} + +// NewAmazonBedrockServiceSettings returns a AmazonBedrockServiceSettings. +func NewAmazonBedrockServiceSettings() *AmazonBedrockServiceSettings { + r := &AmazonBedrockServiceSettings{} + + return r +} + +// true + +type AmazonBedrockServiceSettingsVariant interface { + AmazonBedrockServiceSettingsCaster() *AmazonBedrockServiceSettings +} + +func (s *AmazonBedrockServiceSettings) AmazonBedrockServiceSettingsCaster() *AmazonBedrockServiceSettings { + return s +} diff --git a/typedapi/types/amazonbedrocktasksettings.go b/typedapi/types/amazonbedrocktasksettings.go new file mode 100644 index 0000000000..346f15dd9d --- /dev/null +++ b/typedapi/types/amazonbedrocktasksettings.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AmazonBedrockTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L337-L361 +type AmazonBedrockTaskSettings struct { + // MaxNewTokens For a `completion` task, it sets the maximum number for the output tokens to + // be generated. + MaxNewTokens *int `json:"max_new_tokens,omitempty"` + // Temperature For a `completion` task, it is a number between 0.0 and 1.0 that controls the + // apparent creativity of the results. + // At temperature 0.0 the model is most deterministic, at temperature 1.0 most + // random. + // It should not be used if `top_p` or `top_k` is specified. + Temperature *float32 `json:"temperature,omitempty"` + // TopK For a `completion` task, it limits samples to the top-K most likely words, + // balancing coherence and variability. + // It is only available for anthropic, cohere, and mistral providers. + // It is an alternative to `temperature`; it should not be used if `temperature` + // is specified. + TopK *float32 `json:"top_k,omitempty"` + // TopP For a `completion` task, it is a number in the range of 0.0 to 1.0, to + // eliminate low-probability tokens. + // Top-p uses nucleus sampling to select top tokens whose sum of likelihoods + // does not exceed a certain value, ensuring both variety and coherence. + // It is an alternative to `temperature`; it should not be used if `temperature` + // is specified. + TopP *float32 `json:"top_p,omitempty"` +} + +func (s *AmazonBedrockTaskSettings) 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_new_tokens": + + 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", "MaxNewTokens", err) + } + s.MaxNewTokens = &value + case float64: + f := int(v) + s.MaxNewTokens = &f + } + + case "temperature": + 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", "Temperature", err) + } + f := float32(value) + s.Temperature = &f + case float64: + f := float32(v) + s.Temperature = &f + } + + case "top_k": + 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", "TopK", err) + } + f := float32(value) + s.TopK = &f + case float64: + f := float32(v) + s.TopK = &f + } + + case "top_p": + 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", "TopP", err) + } + f := float32(value) + s.TopP = &f + case float64: + f := float32(v) + s.TopP = &f + } + + } + } + return nil +} + +// NewAmazonBedrockTaskSettings returns a AmazonBedrockTaskSettings. +func NewAmazonBedrockTaskSettings() *AmazonBedrockTaskSettings { + r := &AmazonBedrockTaskSettings{} + + return r +} + +// true + +type AmazonBedrockTaskSettingsVariant interface { + AmazonBedrockTaskSettingsCaster() *AmazonBedrockTaskSettings +} + +func (s *AmazonBedrockTaskSettings) AmazonBedrockTaskSettingsCaster() *AmazonBedrockTaskSettings { + return s +} diff --git a/typedapi/types/analysisconfig.go b/typedapi/types/analysisconfig.go index e521badedc..bf2cfead3e 100644 --- a/typedapi/types/analysisconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Analysis.ts#L29-L77 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Analysis.ts#L29-L77 type AnalysisConfig struct { // BucketSpan The size of the interval that the analysis is aggregated into, typically // between `5m` and `1h`. This value should be either a whole number of days or diff --git a/typedapi/types/analysisconfigread.go b/typedapi/types/analysisconfigread.go index 41c3c2d9f1..93646f3a5d 100644 --- a/typedapi/types/analysisconfigread.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfigRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Analysis.ts#L79-L148 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Analysis.ts#L79-L148 type AnalysisConfigRead struct { // BucketSpan The size of the interval that the analysis is aggregated into, typically // between `5m` and `1h`. diff --git a/typedapi/types/analysislimits.go b/typedapi/types/analysislimits.go index 58572642a8..5ea132ab85 100644 --- a/typedapi/types/analysislimits.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnalysisLimits type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Analysis.ts#L161-L172 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/analysismemorylimit.go b/typedapi/types/analysismemorylimit.go index 449e8f7484..71e1582e8b 100644 --- a/typedapi/types/analysismemorylimit.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnalysisMemoryLimit type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Analysis.ts#L174-L179 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/analytics.go b/typedapi/types/analytics.go index 9f55760b8b..8f7de224ac 100644 --- a/typedapi/types/analytics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Analytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L340-L342 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L340-L342 type Analytics struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/analyticscollection.go b/typedapi/types/analyticscollection.go index b9d19548a2..44d6195882 100644 --- a/typedapi/types/analyticscollection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // AnalyticsCollection type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/analyticsstatistics.go b/typedapi/types/analyticsstatistics.go index 943bddf041..b2fc795651 100644 --- a/typedapi/types/analyticsstatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnalyticsStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L58-L68 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L58-L68 type AnalyticsStatistics struct { BoxplotUsage int64 `json:"boxplot_usage"` CumulativeCardinalityUsage int64 `json:"cumulative_cardinality_usage"` diff --git a/typedapi/types/analyzedetail.go b/typedapi/types/analyzedetail.go index 8a1a94b782..aaa973e870 100644 --- a/typedapi/types/analyzedetail.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnalyzeDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/types.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/analyze/types.ts#L24-L30 type AnalyzeDetail struct { Analyzer *AnalyzerDetail `json:"analyzer,omitempty"` Charfilters []CharFilterDetail `json:"charfilters,omitempty"` diff --git a/typedapi/types/analyzer.go b/typedapi/types/analyzer.go index 37c15bc94a..e78b799f44 100644 --- a/typedapi/types/analyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -72,7 +72,7 @@ package types // TurkishAnalyzer // ThaiAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L350-L403 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L350-L403 type Analyzer any type AnalyzerVariant interface { diff --git a/typedapi/types/analyzerdetail.go b/typedapi/types/analyzerdetail.go index 18f178757f..da72b4a557 100644 --- a/typedapi/types/analyzerdetail.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnalyzerDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/types.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/analyze/types.ts#L32-L35 type AnalyzerDetail struct { Name string `json:"name"` Tokens []ExplainAnalyzeToken `json:"tokens"` diff --git a/typedapi/types/analyzetoken.go b/typedapi/types/analyzetoken.go index d2c21158a0..3ffb196424 100644 --- a/typedapi/types/analyzetoken.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/types.ts#L37-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/analyze/types.ts#L37-L44 type AnalyzeToken struct { EndOffset int64 `json:"end_offset"` Position int64 `json:"position"` diff --git a/typedapi/types/anomaly.go b/typedapi/types/anomaly.go index 02a63cbf2d..20149df048 100644 --- a/typedapi/types/anomaly.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Anomaly type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Anomaly.ts#L24-L121 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/anomalycause.go b/typedapi/types/anomalycause.go index 54ad378214..068c2be38a 100644 --- a/typedapi/types/anomalycause.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnomalyCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Anomaly.ts#L123-L139 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Anomaly.ts#L123-L139 type AnomalyCause struct { Actual []Float64 `json:"actual,omitempty"` ByFieldName *string `json:"by_field_name,omitempty"` diff --git a/typedapi/types/anomalydetectors.go b/typedapi/types/anomalydetectors.go index 351c5857f5..0e9caac347 100644 --- a/typedapi/types/anomalydetectors.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnomalyDetectors type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/info/types.ts#L46-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/info/types.ts#L46-L52 type AnomalyDetectors struct { CategorizationAnalyzer CategorizationAnalyzer `json:"categorization_analyzer"` CategorizationExamplesLimit int `json:"categorization_examples_limit"` diff --git a/typedapi/types/anomalyexplanation.go b/typedapi/types/anomalyexplanation.go index 6f42b84944..7147f422b8 100644 --- a/typedapi/types/anomalyexplanation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AnomalyExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Anomaly.ts#L157-L198 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Anomaly.ts#L157-L198 type AnomalyExplanation struct { // AnomalyCharacteristicsImpact Impact from the duration and magnitude of the detected anomaly relative to // the historical average. diff --git a/typedapi/types/anthropicservicesettings.go b/typedapi/types/anthropicservicesettings.go new file mode 100644 index 0000000000..f730583cdc --- /dev/null +++ b/typedapi/types/anthropicservicesettings.go @@ -0,0 +1,112 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AnthropicServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L372-L388 +type AnthropicServiceSettings struct { + // ApiKey A valid API key for the Anthropic API. + ApiKey string `json:"api_key"` + // ModelId The name of the model to use for the inference task. + // Refer to the Anthropic documentation for the list of supported models. + ModelId string `json:"model_id"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Anthropic. + // By default, the `anthropic` service sets the number of requests allowed per + // minute to 50. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` +} + +func (s *AnthropicServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + } + } + return nil +} + +// NewAnthropicServiceSettings returns a AnthropicServiceSettings. +func NewAnthropicServiceSettings() *AnthropicServiceSettings { + r := &AnthropicServiceSettings{} + + return r +} + +// true + +type AnthropicServiceSettingsVariant interface { + AnthropicServiceSettingsCaster() *AnthropicServiceSettings +} + +func (s *AnthropicServiceSettings) AnthropicServiceSettingsCaster() *AnthropicServiceSettings { + return s +} diff --git a/typedapi/types/anthropictasksettings.go b/typedapi/types/anthropictasksettings.go new file mode 100644 index 0000000000..5a62ce0244 --- /dev/null +++ b/typedapi/types/anthropictasksettings.go @@ -0,0 +1,157 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AnthropicTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L390-L415 +type AnthropicTaskSettings struct { + // MaxTokens For a `completion` task, it is the maximum number of tokens to generate + // before stopping. + MaxTokens int `json:"max_tokens"` + // Temperature For a `completion` task, it is the amount of randomness injected into the + // response. + // For more details about the supported range, refer to Anthropic documentation. + Temperature *float32 `json:"temperature,omitempty"` + // TopK For a `completion` task, it specifies to only sample from the top K options + // for each subsequent token. + // It is recommended for advanced use cases only. + // You usually only need to use `temperature`. + TopK *int `json:"top_k,omitempty"` + // TopP For a `completion` task, it specifies to use Anthropic's nucleus sampling. + // In nucleus sampling, Anthropic computes the cumulative distribution over all + // the options for each subsequent token in decreasing probability order and + // cuts it off once it reaches the specified probability. + // You should either alter `temperature` or `top_p`, but not both. + // It is recommended for advanced use cases only. + // You usually only need to use `temperature`. + TopP *float32 `json:"top_p,omitempty"` +} + +func (s *AnthropicTaskSettings) 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_tokens": + + 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", "MaxTokens", err) + } + s.MaxTokens = value + case float64: + f := int(v) + s.MaxTokens = f + } + + case "temperature": + 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", "Temperature", err) + } + f := float32(value) + s.Temperature = &f + case float64: + f := float32(v) + s.Temperature = &f + } + + case "top_k": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "TopK", err) + } + s.TopK = &value + case float64: + f := int(v) + s.TopK = &f + } + + case "top_p": + 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", "TopP", err) + } + f := float32(value) + s.TopP = &f + case float64: + f := float32(v) + s.TopP = &f + } + + } + } + return nil +} + +// NewAnthropicTaskSettings returns a AnthropicTaskSettings. +func NewAnthropicTaskSettings() *AnthropicTaskSettings { + r := &AnthropicTaskSettings{} + + return r +} + +// true + +type AnthropicTaskSettingsVariant interface { + AnthropicTaskSettingsCaster() *AnthropicTaskSettings +} + +func (s *AnthropicTaskSettings) AnthropicTaskSettingsCaster() *AnthropicTaskSettings { + return s +} diff --git a/typedapi/types/apikey.go b/typedapi/types/apikey.go index 14e54f93d3..dc0e88104a 100644 --- a/typedapi/types/apikey.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/ApiKey.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/ApiKey.ts#L27-L113 type ApiKey struct { // Access The access granted to cross-cluster API keys. // The access is composed of permissions for cross cluster search and cross diff --git a/typedapi/types/apikeyaggregate.go b/typedapi/types/apikeyaggregate.go index 5845384f2d..8623c9ceff 100644 --- a/typedapi/types/apikeyaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,5 +36,5 @@ package types // DateRangeAggregate // CompositeAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_api_keys/types.ts#L122-L139 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_api_keys/types.ts#L122-L139 type ApiKeyAggregate any diff --git a/typedapi/types/apikeyaggregationcontainer.go b/typedapi/types/apikeyaggregationcontainer.go index d80af75ddb..3485018bdf 100644 --- a/typedapi/types/apikeyaggregationcontainer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ApiKeyAggregationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_api_keys/types.ts#L63-L120 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_api_keys/types.ts#L63-L120 type ApiKeyAggregationContainer struct { AdditionalApiKeyAggregationContainerProperty map[string]json.RawMessage `json:"-"` // Aggregations Sub-aggregations for this aggregation. diff --git a/typedapi/types/apikeyauthorization.go b/typedapi/types/apikeyauthorization.go index a7d237f904..bd4c901227 100644 --- a/typedapi/types/apikeyauthorization.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ApiKeyAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Authorization.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Authorization.ts#L20-L29 type ApiKeyAuthorization struct { // Id The identifier for the API key. Id string `json:"id"` diff --git a/typedapi/types/apikeyfiltersaggregation.go b/typedapi/types/apikeyfiltersaggregation.go index 0008dfdd9e..f008accff0 100644 --- a/typedapi/types/apikeyfiltersaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ApiKeyFiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_api_keys/types.ts#L207-L227 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_api_keys/types.ts#L207-L227 type ApiKeyFiltersAggregation struct { // Filters Collection of queries from which to build buckets. Filters BucketsApiKeyQueryContainer `json:"filters,omitempty"` diff --git a/typedapi/types/apikeyquerycontainer.go b/typedapi/types/apikeyquerycontainer.go index 3f0534624d..1996e40965 100644 --- a/typedapi/types/apikeyquerycontainer.go +++ b/typedapi/types/apikeyquerycontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ApiKeyQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_api_keys/types.ts#L141-L205 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_api_keys/types.ts#L141-L205 type ApiKeyQueryContainer struct { AdditionalApiKeyQueryContainerProperty map[string]json.RawMessage `json:"-"` // Bool Matches documents matching boolean combinations of other queries. diff --git a/typedapi/types/appendprocessor.go b/typedapi/types/appendprocessor.go index 916d9021d0..219d4d09d2 100644 --- a/typedapi/types/appendprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AppendProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L328-L343 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L328-L343 type AppendProcessor struct { // AllowDuplicates If `false`, the processor does not append values already present in the // field. diff --git a/typedapi/types/applicationglobaluserprivileges.go b/typedapi/types/applicationglobaluserprivileges.go index b865b2523e..9fd5897794 100644 --- a/typedapi/types/applicationglobaluserprivileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ApplicationGlobalUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L434-L436 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L434-L436 type ApplicationGlobalUserPrivileges struct { Manage ManageUserPrivileges `json:"manage"` } diff --git a/typedapi/types/applicationprivileges.go b/typedapi/types/applicationprivileges.go index f7b57c230b..0ae91b97e5 100644 --- a/typedapi/types/applicationprivileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/applicationprivilegescheck.go b/typedapi/types/applicationprivilegescheck.go index 3308242699..737183d616 100644 --- a/typedapi/types/applicationprivilegescheck.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges/types.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/has_privileges/types.ts#L24-L32 type ApplicationPrivilegesCheck struct { // Application The name of the application. Application string `json:"application"` diff --git a/typedapi/types/applicationsprivileges.go b/typedapi/types/applicationsprivileges.go index 348eacdb19..6a7bf114ca 100644 --- a/typedapi/types/applicationsprivileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ApplicationsPrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges/types.ts#L47-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/has_privileges/types.ts#L47-L47 type ApplicationsPrivileges map[string]ResourcePrivileges diff --git a/typedapi/types/arabicanalyzer.go b/typedapi/types/arabicanalyzer.go index 838f103166..6e60b77fd6 100644 --- a/typedapi/types/arabicanalyzer.go +++ b/typedapi/types/arabicanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ArabicAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L52-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L52-L57 type ArabicAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/archive.go b/typedapi/types/archive.go index 13f425ff38..97a5acc231 100644 --- a/typedapi/types/archive.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Archive type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L45-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L45-L47 type Archive struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/armeniananalyzer.go b/typedapi/types/armeniananalyzer.go index bed1d58995..8bb6eff777 100644 --- a/typedapi/types/armeniananalyzer.go +++ b/typedapi/types/armeniananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ArmenianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L59-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L59-L64 type ArmenianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/arraycomparecondition.go b/typedapi/types/arraycomparecondition.go index 978dde3f34..2785899b69 100644 --- a/typedapi/types/arraycomparecondition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ArrayCompareCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L32-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L32-L39 type ArrayCompareCondition struct { ArrayCompareCondition map[conditionop.ConditionOp]ArrayCompareOpParams `json:"-"` Path string `json:"path"` diff --git a/typedapi/types/arraycompareopparams.go b/typedapi/types/arraycompareopparams.go index 7457c4322d..8c35c861b8 100644 --- a/typedapi/types/arraycompareopparams.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // ArrayCompareOpParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L27-L30 type ArrayCompareOpParams struct { Quantifier quantifier.Quantifier `json:"quantifier"` Value FieldValue `json:"value"` diff --git a/typedapi/types/arraypercentilesitem.go b/typedapi/types/arraypercentilesitem.go index 4570374bb1..7e0ee45b23 100644 --- a/typedapi/types/arraypercentilesitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ArrayPercentilesItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L162-L166 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L162-L166 type ArrayPercentilesItem struct { Key string `json:"key"` Value *Float64 `json:"value,omitempty"` diff --git a/typedapi/types/asciifoldingtokenfilter.go b/typedapi/types/asciifoldingtokenfilter.go index f5e4c0c950..a2bce76ef6 100644 --- a/typedapi/types/asciifoldingtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // AsciiFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L169-L172 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L169-L172 type AsciiFoldingTokenFilter struct { PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/asyncsearch.go b/typedapi/types/asyncsearch.go index f929a4ba0e..b5765db8e6 100644 --- a/typedapi/types/asyncsearch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // AsyncSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/async_search/_types/AsyncSearch.ts#L30-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/async_search/_types/AsyncSearch.ts#L30-L56 type AsyncSearch struct { // Aggregations Partial aggregations results, coming from the shards that have already // completed running the query. diff --git a/typedapi/types/attachmentprocessor.go b/typedapi/types/attachmentprocessor.go index 20d3e21ea4..7b97b645b1 100644 --- a/typedapi/types/attachmentprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AttachmentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L345-L386 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L345-L386 type AttachmentProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/audit.go b/typedapi/types/audit.go index 345e7a6d68..b3249af72f 100644 --- a/typedapi/types/audit.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Audit type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L70-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L70-L72 type Audit struct { Enabled bool `json:"enabled"` Outputs []string `json:"outputs,omitempty"` diff --git a/typedapi/types/authenticateapikey.go b/typedapi/types/authenticateapikey.go index 1c4450d51d..d808fe0ba2 100644 --- a/typedapi/types/authenticateapikey.go +++ b/typedapi/types/authenticateapikey.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // AuthenticateApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/authenticate/SecurityAuthenticateResponse.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/authenticate/SecurityAuthenticateResponse.ts#L44-L47 type AuthenticateApiKey struct { Id string `json:"id"` Name *string `json:"name,omitempty"` diff --git a/typedapi/types/authenticateduser.go b/typedapi/types/authenticateduser.go index 0a16e774a2..f399ce3024 100644 --- a/typedapi/types/authenticateduser.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AuthenticatedUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_token/types.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_token/types.ts#L60-L65 type AuthenticatedUser struct { AuthenticationProvider *AuthenticationProvider `json:"authentication_provider,omitempty"` AuthenticationRealm UserRealm `json:"authentication_realm"` diff --git a/typedapi/types/authenticatetoken.go b/typedapi/types/authenticatetoken.go index 68e9a5edb6..475524706b 100644 --- a/typedapi/types/authenticatetoken.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AuthenticateToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/authenticate/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/authenticate/types.ts#L22-L29 type AuthenticateToken struct { Name string `json:"name"` Type *string `json:"type,omitempty"` diff --git a/typedapi/types/authentication.go b/typedapi/types/authentication.go index d6f72a3177..8f08cd1f89 100644 --- a/typedapi/types/authentication.go +++ b/typedapi/types/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Authentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55 type Authentication struct { ApiKey map[string]string `json:"api_key,omitempty"` AuthenticationRealm AuthenticationRealm `json:"authentication_realm"` diff --git a/typedapi/types/authenticationprovider.go b/typedapi/types/authenticationprovider.go index 9b8829ffd4..fcb0bed6ea 100644 --- a/typedapi/types/authenticationprovider.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AuthenticationProvider type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_token/types.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_token/types.ts#L55-L58 type AuthenticationProvider struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/authenticationrealm.go b/typedapi/types/authenticationrealm.go index 2693a4cc6f..320ab4fcc5 100644 --- a/typedapi/types/authenticationrealm.go +++ b/typedapi/types/authenticationrealm.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AuthenticationRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61 type AuthenticationRealm struct { Domain *string `json:"domain,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/autodatehistogramaggregate.go b/typedapi/types/autodatehistogramaggregate.go index 3864e45520..19e0775984 100644 --- a/typedapi/types/autodatehistogramaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // AutoDateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L393-L400 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L393-L400 type AutoDateHistogramAggregate struct { Buckets BucketsDateHistogramBucket `json:"buckets"` Interval string `json:"interval"` diff --git a/typedapi/types/autodatehistogramaggregation.go b/typedapi/types/autodatehistogramaggregation.go index 7304c80874..211689ef30 100644 --- a/typedapi/types/autodatehistogramaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // AutoDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L72-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L72-L110 type AutoDateHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` diff --git a/typedapi/types/autofollowedcluster.go b/typedapi/types/autofollowedcluster.go index 6d040bb0f2..b0d60b23b5 100644 --- a/typedapi/types/autofollowedcluster.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // AutoFollowedCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/stats/types.ts.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/stats/types.ts.ts#L26-L30 type AutoFollowedCluster struct { ClusterName string `json:"cluster_name"` LastSeenMetadataVersion int64 `json:"last_seen_metadata_version"` diff --git a/typedapi/types/autofollowpattern.go b/typedapi/types/autofollowpattern.go index 525a387cf5..c0db850084 100644 --- a/typedapi/types/autofollowpattern.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // AutoFollowPattern type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26 type AutoFollowPattern struct { Name string `json:"name"` Pattern AutoFollowPatternSummary `json:"pattern"` diff --git a/typedapi/types/autofollowpatternsummary.go b/typedapi/types/autofollowpatternsummary.go index 06e8c08b7e..979fdd8602 100644 --- a/typedapi/types/autofollowpatternsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AutoFollowPatternSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/autofollowstats.go b/typedapi/types/autofollowstats.go index edc045da5e..386f076147 100644 --- a/typedapi/types/autofollowstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AutoFollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/stats/types.ts.ts#L32-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/stats/types.ts.ts#L32-L47 type AutoFollowStats struct { AutoFollowedClusters []AutoFollowedCluster `json:"auto_followed_clusters"` // NumberOfFailedFollowIndices The number of indices that the auto-follow coordinator failed to diff --git a/typedapi/types/autoscalingcapacity.go b/typedapi/types/autoscalingcapacity.go index cb5ce9bb99..34e0722d19 100644 --- a/typedapi/types/autoscalingcapacity.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // AutoscalingCapacity type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41 type AutoscalingCapacity struct { Node AutoscalingResources `json:"node"` Total AutoscalingResources `json:"total"` diff --git a/typedapi/types/autoscalingdecider.go b/typedapi/types/autoscalingdecider.go index 7e8f1a5017..b73395bd17 100644 --- a/typedapi/types/autoscalingdecider.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AutoscalingDecider type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/autoscalingdeciders.go b/typedapi/types/autoscalingdeciders.go index 071f5e2ada..aa1f42cc93 100644 --- a/typedapi/types/autoscalingdeciders.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // AutoscalingDeciders type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/autoscalingnode.go b/typedapi/types/autoscalingnode.go index ad7e2e3f93..7d0a5a5afa 100644 --- a/typedapi/types/autoscalingnode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // AutoscalingNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50 type AutoscalingNode struct { Name string `json:"name"` } diff --git a/typedapi/types/autoscalingpolicy.go b/typedapi/types/autoscalingpolicy.go index db71ecc99f..3baa6e6a79 100644 --- a/typedapi/types/autoscalingpolicy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // AutoscalingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L30 type AutoscalingPolicy struct { // Deciders Decider settings. Deciders map[string]json.RawMessage `json:"deciders"` diff --git a/typedapi/types/autoscalingresources.go b/typedapi/types/autoscalingresources.go index 8cd206371c..808391e0d6 100644 --- a/typedapi/types/autoscalingresources.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AutoscalingResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 type AutoscalingResources struct { Memory int `json:"memory"` Storage int `json:"storage"` diff --git a/typedapi/types/averageaggregation.go b/typedapi/types/averageaggregation.go index b4dbf7ea55..7085effb4b 100644 --- a/typedapi/types/averageaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L55-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L55-L55 type AverageAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/averagebucketaggregation.go b/typedapi/types/averagebucketaggregation.go index 697edd5160..e8429fdd2b 100644 --- a/typedapi/types/averagebucketaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // AverageBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L78-L81 type AverageBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/avgaggregate.go b/typedapi/types/avgaggregate.go index a52b8698ff..fa77b278f7 100644 --- a/typedapi/types/avgaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L218-L222 type AvgAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/azureaistudioservicesettings.go b/typedapi/types/azureaistudioservicesettings.go new file mode 100644 index 0000000000..acec5f3b58 --- /dev/null +++ b/typedapi/types/azureaistudioservicesettings.go @@ -0,0 +1,164 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AzureAiStudioServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L425-L467 +type AzureAiStudioServiceSettings struct { + // ApiKey A valid API key of your Azure AI Studio model deployment. + // This key can be found on the overview page for your deployment in the + // management section of your Azure AI Studio account. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // EndpointType The type of endpoint that is available for deployment through Azure AI + // Studio: `token` or `realtime`. + // The `token` endpoint type is for "pay as you go" endpoints that are billed + // per token. + // The `realtime` endpoint type is for "real-time" endpoints that are billed per + // hour of usage. + EndpointType string `json:"endpoint_type"` + // Provider The model provider for your deployment. + // Note that some providers may support only certain task types. + // Supported providers include: + // + // * `cohere` - available for `text_embedding` and `completion` task types + // * `databricks` - available for `completion` task type only + // * `meta` - available for `completion` task type only + // * `microsoft_phi` - available for `completion` task type only + // * `mistral` - available for `completion` task type only + // * `openai` - available for `text_embedding` and `completion` task types + Provider string `json:"provider"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Azure AI Studio. + // By default, the `azureaistudio` service sets the number of requests allowed + // per minute to 240. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Target The target URL of your Azure AI Studio model deployment. + // This can be found on the overview page for your deployment in the management + // section of your Azure AI Studio account. + Target string `json:"target"` +} + +func (s *AzureAiStudioServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "endpoint_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "EndpointType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.EndpointType = o + + case "provider": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Provider", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Provider = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "target": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Target", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Target = o + + } + } + return nil +} + +// NewAzureAiStudioServiceSettings returns a AzureAiStudioServiceSettings. +func NewAzureAiStudioServiceSettings() *AzureAiStudioServiceSettings { + r := &AzureAiStudioServiceSettings{} + + return r +} + +// true + +type AzureAiStudioServiceSettingsVariant interface { + AzureAiStudioServiceSettingsCaster() *AzureAiStudioServiceSettings +} + +func (s *AzureAiStudioServiceSettings) AzureAiStudioServiceSettingsCaster() *AzureAiStudioServiceSettings { + return s +} diff --git a/typedapi/types/azureaistudiotasksettings.go b/typedapi/types/azureaistudiotasksettings.go new file mode 100644 index 0000000000..8912766a6d --- /dev/null +++ b/typedapi/types/azureaistudiotasksettings.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AzureAiStudioTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L469-L497 +type AzureAiStudioTaskSettings struct { + // DoSample For a `completion` task, instruct the inference process to perform sampling. + // It has no effect unless `temperature` or `top_p` is specified. + DoSample *float32 `json:"do_sample,omitempty"` + // MaxNewTokens For a `completion` task, provide a hint for the maximum number of output + // tokens to be generated. + MaxNewTokens *int `json:"max_new_tokens,omitempty"` + // Temperature For a `completion` task, control the apparent creativity of generated + // completions with a sampling temperature. + // It must be a number in the range of 0.0 to 2.0. + // It should not be used if `top_p` is specified. + Temperature *float32 `json:"temperature,omitempty"` + // TopP For a `completion` task, make the model consider the results of the tokens + // with nucleus sampling probability. + // It is an alternative value to `temperature` and must be a number in the range + // of 0.0 to 2.0. + // It should not be used if `temperature` is specified. + TopP *float32 `json:"top_p,omitempty"` + // User For a `text_embedding` task, specify the user issuing the request. + // This information can be used for abuse detection. + User *string `json:"user,omitempty"` +} + +func (s *AzureAiStudioTaskSettings) 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 "do_sample": + 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", "DoSample", err) + } + f := float32(value) + s.DoSample = &f + case float64: + f := float32(v) + s.DoSample = &f + } + + case "max_new_tokens": + + 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", "MaxNewTokens", err) + } + s.MaxNewTokens = &value + case float64: + f := int(v) + s.MaxNewTokens = &f + } + + case "temperature": + 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", "Temperature", err) + } + f := float32(value) + s.Temperature = &f + case float64: + f := float32(v) + s.Temperature = &f + } + + case "top_p": + 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", "TopP", err) + } + f := float32(value) + s.TopP = &f + case float64: + f := float32(v) + s.TopP = &f + } + + case "user": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "User", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.User = &o + + } + } + return nil +} + +// NewAzureAiStudioTaskSettings returns a AzureAiStudioTaskSettings. +func NewAzureAiStudioTaskSettings() *AzureAiStudioTaskSettings { + r := &AzureAiStudioTaskSettings{} + + return r +} + +// true + +type AzureAiStudioTaskSettingsVariant interface { + AzureAiStudioTaskSettingsCaster() *AzureAiStudioTaskSettings +} + +func (s *AzureAiStudioTaskSettings) AzureAiStudioTaskSettingsCaster() *AzureAiStudioTaskSettings { + return s +} diff --git a/typedapi/types/azureopenaiservicesettings.go b/typedapi/types/azureopenaiservicesettings.go new file mode 100644 index 0000000000..84ab063a06 --- /dev/null +++ b/typedapi/types/azureopenaiservicesettings.go @@ -0,0 +1,173 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AzureOpenAIServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L508-L553 +type AzureOpenAIServiceSettings struct { + // ApiKey A valid API key for your Azure OpenAI account. + // You must specify either `api_key` or `entra_id`. + // If you do not provide either or you provide both, you will receive an error + // when you try to create your model. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey *string `json:"api_key,omitempty"` + // ApiVersion The Azure API version ID to use. + // It is recommended to use the latest supported non-preview version. + ApiVersion string `json:"api_version"` + // DeploymentId The deployment name of your deployed models. + // Your Azure OpenAI deployments can be found though the Azure OpenAI Studio + // portal that is linked to your subscription. + DeploymentId string `json:"deployment_id"` + // EntraId A valid Microsoft Entra token. + // You must specify either `api_key` or `entra_id`. + // If you do not provide either or you provide both, you will receive an error + // when you try to create your model. + EntraId *string `json:"entra_id,omitempty"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Azure. + // The `azureopenai` service sets a default number of requests allowed per + // minute depending on the task type. + // For `text_embedding`, it is set to `1440`. + // For `completion`, it is set to `120`. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // ResourceName The name of your Azure OpenAI resource. + // You can find this from the list of resources in the Azure Portal for your + // subscription. + ResourceName string `json:"resource_name"` +} + +func (s *AzureOpenAIServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = &o + + case "api_version": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiVersion", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiVersion = o + + case "deployment_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "DeploymentId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.DeploymentId = o + + case "entra_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "EntraId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.EntraId = &o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "resource_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ResourceName", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ResourceName = o + + } + } + return nil +} + +// NewAzureOpenAIServiceSettings returns a AzureOpenAIServiceSettings. +func NewAzureOpenAIServiceSettings() *AzureOpenAIServiceSettings { + r := &AzureOpenAIServiceSettings{} + + return r +} + +// true + +type AzureOpenAIServiceSettingsVariant interface { + AzureOpenAIServiceSettingsCaster() *AzureOpenAIServiceSettings +} + +func (s *AzureOpenAIServiceSettings) AzureOpenAIServiceSettingsCaster() *AzureOpenAIServiceSettings { + return s +} diff --git a/typedapi/types/azureopenaitasksettings.go b/typedapi/types/azureopenaitasksettings.go new file mode 100644 index 0000000000..40097d0cda --- /dev/null +++ b/typedapi/types/azureopenaitasksettings.go @@ -0,0 +1,89 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AzureOpenAITaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L555-L561 +type AzureOpenAITaskSettings struct { + // User For a `completion` or `text_embedding` task, specify the user issuing the + // request. + // This information can be used for abuse detection. + User *string `json:"user,omitempty"` +} + +func (s *AzureOpenAITaskSettings) 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 "user": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "User", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.User = &o + + } + } + return nil +} + +// NewAzureOpenAITaskSettings returns a AzureOpenAITaskSettings. +func NewAzureOpenAITaskSettings() *AzureOpenAITaskSettings { + r := &AzureOpenAITaskSettings{} + + return r +} + +// true + +type AzureOpenAITaskSettingsVariant interface { + AzureOpenAITaskSettingsCaster() *AzureOpenAITaskSettings +} + +func (s *AzureOpenAITaskSettings) AzureOpenAITaskSettingsCaster() *AzureOpenAITaskSettings { + return s +} diff --git a/typedapi/types/azurerepository.go b/typedapi/types/azurerepository.go index eb732f9027..3ffd4caef5 100644 --- a/typedapi/types/azurerepository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // AzureRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L40-L43 type AzureRepository struct { Settings AzureRepositorySettings `json:"settings"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/azurerepositorysettings.go b/typedapi/types/azurerepositorysettings.go index 7acde62f82..caca698ef0 100644 --- a/typedapi/types/azurerepositorysettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // AzureRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L77-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/base.go b/typedapi/types/base.go index d360488362..c549cc85d0 100644 --- a/typedapi/types/base.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Base type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L27-L30 type Base struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/basqueanalyzer.go b/typedapi/types/basqueanalyzer.go index 7762d9065c..cf977b2cb3 100644 --- a/typedapi/types/basqueanalyzer.go +++ b/typedapi/types/basqueanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BasqueAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L66-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L66-L71 type BasqueAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/bengalianalyzer.go b/typedapi/types/bengalianalyzer.go index fc1aabc2a1..40ad364046 100644 --- a/typedapi/types/bengalianalyzer.go +++ b/typedapi/types/bengalianalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BengaliAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L73-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L73-L78 type BengaliAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/binaryproperty.go b/typedapi/types/binaryproperty.go index 324d6202ff..6c3d417b43 100644 --- a/typedapi/types/binaryproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // BinaryProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L55-L57 type BinaryProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/blobdetails.go b/typedapi/types/blobdetails.go index ab2fb947da..a56cbd3343 100644 --- a/typedapi/types/blobdetails.go +++ b/typedapi/types/blobdetails.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BlobDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284 type BlobDetails struct { // Name The name of the blob. Name string `json:"name"` diff --git a/typedapi/types/booleanproperty.go b/typedapi/types/booleanproperty.go index 79de246c6c..7b8a665846 100644 --- a/typedapi/types/booleanproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,28 +29,35 @@ import ( "strconv" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" ) // BooleanProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L59-L74 type BooleanProperty struct { - Boost *Float64 `json:"boost,omitempty"` - CopyTo []string `json:"copy_to,omitempty"` - DocValues *bool `json:"doc_values,omitempty"` - Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` - Fielddata *NumericFielddata `json:"fielddata,omitempty"` - Fields map[string]Property `json:"fields,omitempty"` - IgnoreAbove *int `json:"ignore_above,omitempty"` - Index *bool `json:"index,omitempty"` + Boost *Float64 `json:"boost,omitempty"` + CopyTo []string `json:"copy_to,omitempty"` + DocValues *bool `json:"doc_values,omitempty"` + Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` + Fielddata *NumericFielddata `json:"fielddata,omitempty"` + Fields map[string]Property `json:"fields,omitempty"` + IgnoreAbove *int `json:"ignore_above,omitempty"` + IgnoreMalformed *bool `json:"ignore_malformed,omitempty"` + Index *bool `json:"index,omitempty"` // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` NullValue *bool `json:"null_value,omitempty"` + OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` + Script *Script `json:"script,omitempty"` Store *bool `json:"store,omitempty"` SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"` - Type string `json:"type,omitempty"` + // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. + // Defaults to false. + TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"` + Type string `json:"type,omitempty"` } func (s *BooleanProperty) UnmarshalJSON(data []byte) error { @@ -471,6 +478,20 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { s.IgnoreAbove = &f } + case "ignore_malformed": + 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", "IgnoreMalformed", err) + } + s.IgnoreMalformed = &value + case bool: + s.IgnoreMalformed = &v + } + case "index": var tmp any dec.Decode(&tmp) @@ -507,6 +528,11 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { s.NullValue = &v } + case "on_script_error": + if err := dec.Decode(&s.OnScriptError); err != nil { + return fmt.Errorf("%s | %w", "OnScriptError", err) + } + case "properties": if s.Properties == nil { s.Properties = make(map[string]Property, 0) @@ -838,6 +864,11 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { } } + case "script": + if err := dec.Decode(&s.Script); err != nil { + return fmt.Errorf("%s | %w", "Script", err) + } + case "store": var tmp any dec.Decode(&tmp) @@ -857,6 +888,20 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "SyntheticSourceKeep", err) } + case "time_series_dimension": + 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", "TimeSeriesDimension", err) + } + s.TimeSeriesDimension = &value + case bool: + s.TimeSeriesDimension = &v + } + case "type": if err := dec.Decode(&s.Type); err != nil { return fmt.Errorf("%s | %w", "Type", err) @@ -878,12 +923,16 @@ func (s BooleanProperty) MarshalJSON() ([]byte, error) { Fielddata: s.Fielddata, Fields: s.Fields, IgnoreAbove: s.IgnoreAbove, + IgnoreMalformed: s.IgnoreMalformed, Index: s.Index, Meta: s.Meta, NullValue: s.NullValue, + OnScriptError: s.OnScriptError, Properties: s.Properties, + Script: s.Script, Store: s.Store, SyntheticSourceKeep: s.SyntheticSourceKeep, + TimeSeriesDimension: s.TimeSeriesDimension, Type: s.Type, } diff --git a/typedapi/types/boolquery.go b/typedapi/types/boolquery.go index f365e90da3..01d45f93d2 100644 --- a/typedapi/types/boolquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BoolQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L29-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L29-L56 type BoolQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/boostingquery.go b/typedapi/types/boostingquery.go index c7b1588f38..8774d84389 100644 --- a/typedapi/types/boostingquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BoostingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L58-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L58-L74 type BoostingQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/boxplotaggregate.go b/typedapi/types/boxplotaggregate.go index 64c8755af8..fa7f292d0b 100644 --- a/typedapi/types/boxplotaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BoxPlotAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L806-L825 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L806-L825 type BoxPlotAggregate struct { Lower Float64 `json:"lower"` LowerAsString *string `json:"lower_as_string,omitempty"` diff --git a/typedapi/types/boxplotaggregation.go b/typedapi/types/boxplotaggregation.go index c6f9a76f38..67e9da9238 100644 --- a/typedapi/types/boxplotaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BoxplotAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L57-L62 type BoxplotAggregation struct { // Compression Limits the maximum number of nodes used by the underlying TDigest algorithm // to `20 * compression`, enabling control of memory usage and approximation diff --git a/typedapi/types/braziliananalyzer.go b/typedapi/types/braziliananalyzer.go index a4211b2ecf..feb2901fdb 100644 --- a/typedapi/types/braziliananalyzer.go +++ b/typedapi/types/braziliananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BrazilianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L80-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L80-L84 type BrazilianAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/breaker.go b/typedapi/types/breaker.go index 50e1e3b5bc..d06b69b651 100644 --- a/typedapi/types/breaker.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Breaker type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L470-L495 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L470-L495 type Breaker struct { // EstimatedSize Estimated memory used for the operation. EstimatedSize *string `json:"estimated_size,omitempty"` diff --git a/typedapi/types/bucketcorrelationaggregation.go b/typedapi/types/bucketcorrelationaggregation.go index fd9a5ac672..d8c119bd59 100644 --- a/typedapi/types/bucketcorrelationaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // BucketCorrelationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L139-L146 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L139-L146 type BucketCorrelationAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/bucketcorrelationfunction.go b/typedapi/types/bucketcorrelationfunction.go index aac6a2f2a6..acdb689464 100644 --- a/typedapi/types/bucketcorrelationfunction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // BucketCorrelationFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L148-L153 type BucketCorrelationFunction struct { // CountCorrelation The configuration to calculate a count correlation. This function is designed // for determining the correlation of a term value and a given metric. diff --git a/typedapi/types/bucketcorrelationfunctioncountcorrelation.go b/typedapi/types/bucketcorrelationfunctioncountcorrelation.go index ab4a81cc31..816424eafa 100644 --- a/typedapi/types/bucketcorrelationfunctioncountcorrelation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // BucketCorrelationFunctionCountCorrelation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L155-L158 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L155-L158 type BucketCorrelationFunctionCountCorrelation struct { // Indicator The indicator with which to correlate the configured `bucket_path` values. Indicator BucketCorrelationFunctionCountCorrelationIndicator `json:"indicator"` diff --git a/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go b/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go index 3a268ecfc2..53c291e141 100644 --- a/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BucketCorrelationFunctionCountCorrelationIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L160-L178 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L160-L178 type BucketCorrelationFunctionCountCorrelationIndicator struct { // DocCount The total number of documents that initially created the expectations. It’s // required to be greater diff --git a/typedapi/types/bucketinfluencer.go b/typedapi/types/bucketinfluencer.go index 70df1e5faa..e47228c822 100644 --- a/typedapi/types/bucketinfluencer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BucketInfluencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Bucket.ts#L79-L127 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Bucket.ts#L79-L127 type BucketInfluencer struct { // AnomalyScore A normalized score between 0-100, which is calculated for each bucket // influencer. This score might be updated as diff --git a/typedapi/types/bucketksaggregation.go b/typedapi/types/bucketksaggregation.go index 4c8a3f6482..cd6947d8d2 100644 --- a/typedapi/types/bucketksaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BucketKsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L103-L137 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L103-L137 type BucketKsAggregation struct { // Alternative A list of string values indicating which K-S test alternative to calculate. // The valid values diff --git a/typedapi/types/bucketmetricvalueaggregate.go b/typedapi/types/bucketmetricvalueaggregate.go index 67193fe03e..27d4005e63 100644 --- a/typedapi/types/bucketmetricvalueaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BucketMetricValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L250-L253 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L250-L253 type BucketMetricValueAggregate struct { Keys []string `json:"keys"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/bucketsadjacencymatrixbucket.go b/typedapi/types/bucketsadjacencymatrixbucket.go index 503055e17b..0620c77d53 100644 --- a/typedapi/types/bucketsadjacencymatrixbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]AdjacencyMatrixBucket // []AdjacencyMatrixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsAdjacencyMatrixBucket any diff --git a/typedapi/types/bucketsapikeyquerycontainer.go b/typedapi/types/bucketsapikeyquerycontainer.go index fb30be70fa..b05879f2a1 100644 --- a/typedapi/types/bucketsapikeyquerycontainer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // map[string]ApiKeyQueryContainer // []ApiKeyQueryContainer // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsApiKeyQueryContainer any type BucketsApiKeyQueryContainerVariant interface { diff --git a/typedapi/types/bucketscompositebucket.go b/typedapi/types/bucketscompositebucket.go index c68cd425b8..1a0c71275d 100644 --- a/typedapi/types/bucketscompositebucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]CompositeBucket // []CompositeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsCompositeBucket any diff --git a/typedapi/types/bucketscriptaggregation.go b/typedapi/types/bucketscriptaggregation.go index 6edd0b984a..1dbd34105b 100644 --- a/typedapi/types/bucketscriptaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // BucketScriptAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L83-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L83-L91 type BucketScriptAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/bucketsdatehistogrambucket.go b/typedapi/types/bucketsdatehistogrambucket.go index f4734036a5..e07a4cb048 100644 --- a/typedapi/types/bucketsdatehistogrambucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]DateHistogramBucket // []DateHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsDateHistogramBucket any diff --git a/typedapi/types/bucketsdoubletermsbucket.go b/typedapi/types/bucketsdoubletermsbucket.go index 5429507be6..e459386035 100644 --- a/typedapi/types/bucketsdoubletermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]DoubleTermsBucket // []DoubleTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsDoubleTermsBucket any diff --git a/typedapi/types/bucketselectoraggregation.go b/typedapi/types/bucketselectoraggregation.go index 8e499d8668..0cfb858818 100644 --- a/typedapi/types/bucketselectoraggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // BucketSelectorAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L93-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L93-L101 type BucketSelectorAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/bucketsfiltersbucket.go b/typedapi/types/bucketsfiltersbucket.go index 7cf3bf6559..f27d556b47 100644 --- a/typedapi/types/bucketsfiltersbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]FiltersBucket // []FiltersBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsFiltersBucket any diff --git a/typedapi/types/bucketsfrequentitemsetsbucket.go b/typedapi/types/bucketsfrequentitemsetsbucket.go index 5b5c72b342..95d41b0072 100644 --- a/typedapi/types/bucketsfrequentitemsetsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]FrequentItemSetsBucket // []FrequentItemSetsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsFrequentItemSetsBucket any diff --git a/typedapi/types/bucketsgeohashgridbucket.go b/typedapi/types/bucketsgeohashgridbucket.go index 8976bdd715..54cb601057 100644 --- a/typedapi/types/bucketsgeohashgridbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHashGridBucket // []GeoHashGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoHashGridBucket any diff --git a/typedapi/types/bucketsgeohexgridbucket.go b/typedapi/types/bucketsgeohexgridbucket.go index f1d5d5c6c1..4b711e244e 100644 --- a/typedapi/types/bucketsgeohexgridbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHexGridBucket // []GeoHexGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoHexGridBucket any diff --git a/typedapi/types/bucketsgeotilegridbucket.go b/typedapi/types/bucketsgeotilegridbucket.go index 08ecc832a1..0e1a24f062 100644 --- a/typedapi/types/bucketsgeotilegridbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]GeoTileGridBucket // []GeoTileGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoTileGridBucket any diff --git a/typedapi/types/bucketshistogrambucket.go b/typedapi/types/bucketshistogrambucket.go index 7d47c405b0..71c836ed31 100644 --- a/typedapi/types/bucketshistogrambucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]HistogramBucket // []HistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsHistogramBucket any diff --git a/typedapi/types/bucketsipprefixbucket.go b/typedapi/types/bucketsipprefixbucket.go index c85b89135c..62519116c4 100644 --- a/typedapi/types/bucketsipprefixbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]IpPrefixBucket // []IpPrefixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsIpPrefixBucket any diff --git a/typedapi/types/bucketsiprangebucket.go b/typedapi/types/bucketsiprangebucket.go index b7c8d62f02..2514878432 100644 --- a/typedapi/types/bucketsiprangebucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]IpRangeBucket // []IpRangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsIpRangeBucket any diff --git a/typedapi/types/bucketslongraretermsbucket.go b/typedapi/types/bucketslongraretermsbucket.go index ad7d0c5951..3d2018f1f9 100644 --- a/typedapi/types/bucketslongraretermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]LongRareTermsBucket // []LongRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsLongRareTermsBucket any diff --git a/typedapi/types/bucketslongtermsbucket.go b/typedapi/types/bucketslongtermsbucket.go index b5856430a3..5a863ac315 100644 --- a/typedapi/types/bucketslongtermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]LongTermsBucket // []LongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsLongTermsBucket any diff --git a/typedapi/types/bucketsmultitermsbucket.go b/typedapi/types/bucketsmultitermsbucket.go index 295aa76d90..fca6f88073 100644 --- a/typedapi/types/bucketsmultitermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]MultiTermsBucket // []MultiTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsMultiTermsBucket any diff --git a/typedapi/types/bucketsortaggregation.go b/typedapi/types/bucketsortaggregation.go index cf942e924d..b60f8bd776 100644 --- a/typedapi/types/bucketsortaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // BucketSortAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L180-L204 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L180-L204 type BucketSortAggregation struct { // From Buckets in positions prior to `from` will be truncated. From *int `json:"from,omitempty"` diff --git a/typedapi/types/bucketspath.go b/typedapi/types/bucketspath.go index 47677628a4..913f1c65fd 100644 --- a/typedapi/types/bucketspath.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ package types // []string // map[string]string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L53-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L53-L59 type BucketsPath any type BucketsPathVariant interface { diff --git a/typedapi/types/bucketsquery.go b/typedapi/types/bucketsquery.go index 2c7cf8ed7b..6c8608977b 100644 --- a/typedapi/types/bucketsquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // map[string]Query // []Query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsQuery any type BucketsQueryVariant interface { diff --git a/typedapi/types/bucketsrangebucket.go b/typedapi/types/bucketsrangebucket.go index afe1b095f5..4fcf8ff801 100644 --- a/typedapi/types/bucketsrangebucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]RangeBucket // []RangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsRangeBucket any diff --git a/typedapi/types/bucketssignificantlongtermsbucket.go b/typedapi/types/bucketssignificantlongtermsbucket.go index 2e39dddada..1afb5a9f85 100644 --- a/typedapi/types/bucketssignificantlongtermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantLongTermsBucket // []SignificantLongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsSignificantLongTermsBucket any diff --git a/typedapi/types/bucketssignificantstringtermsbucket.go b/typedapi/types/bucketssignificantstringtermsbucket.go index 705f14d369..095bc4b8cf 100644 --- a/typedapi/types/bucketssignificantstringtermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantStringTermsBucket // []SignificantStringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsSignificantStringTermsBucket any diff --git a/typedapi/types/bucketsstringraretermsbucket.go b/typedapi/types/bucketsstringraretermsbucket.go index fea1bddd80..e1f6bc4268 100644 --- a/typedapi/types/bucketsstringraretermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]StringRareTermsBucket // []StringRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsStringRareTermsBucket any diff --git a/typedapi/types/bucketsstringtermsbucket.go b/typedapi/types/bucketsstringtermsbucket.go index d58d85ec35..99eeb2d3c0 100644 --- a/typedapi/types/bucketsstringtermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]StringTermsBucket // []StringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsStringTermsBucket any diff --git a/typedapi/types/bucketstimeseriesbucket.go b/typedapi/types/bucketstimeseriesbucket.go index 84bfc40214..1ed4a3c1b3 100644 --- a/typedapi/types/bucketstimeseriesbucket.go +++ b/typedapi/types/bucketstimeseriesbucket.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]TimeSeriesBucket // []TimeSeriesBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsTimeSeriesBucket any diff --git a/typedapi/types/bucketsummary.go b/typedapi/types/bucketsummary.go index 1ee76d6d68..255d5a9b0d 100644 --- a/typedapi/types/bucketsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BucketSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Bucket.ts#L30-L77 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Bucket.ts#L30-L77 type BucketSummary struct { // AnomalyScore The maximum anomaly score, between 0-100, for any of the bucket influencers. // This is an overall, rate-limited diff --git a/typedapi/types/bucketsvariablewidthhistogrambucket.go b/typedapi/types/bucketsvariablewidthhistogrambucket.go index 014c894009..04c6a08d19 100644 --- a/typedapi/types/bucketsvariablewidthhistogrambucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]VariableWidthHistogramBucket // []VariableWidthHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsVariableWidthHistogramBucket any diff --git a/typedapi/types/bucketsvoid.go b/typedapi/types/bucketsvoid.go index 98df458439..6882db8823 100644 --- a/typedapi/types/bucketsvoid.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // map[string]any // []any // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsVoid any diff --git a/typedapi/types/buildinformation.go b/typedapi/types/buildinformation.go index c8ffff9119..b6bd3eb4ba 100644 --- a/typedapi/types/buildinformation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BuildInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/info/types.ts#L24-L27 type BuildInformation struct { Date DateTime `json:"date"` Hash string `json:"hash"` diff --git a/typedapi/types/bulgariananalyzer.go b/typedapi/types/bulgariananalyzer.go index 3b48df7c07..2a3b8eefb3 100644 --- a/typedapi/types/bulgariananalyzer.go +++ b/typedapi/types/bulgariananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BulgarianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L86-L91 type BulgarianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/bulkerror.go b/typedapi/types/bulkerror.go index 34f6a25608..d5c39b6aa9 100644 --- a/typedapi/types/bulkerror.go +++ b/typedapi/types/bulkerror.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BulkError type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Bulk.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Bulk.ts#L24-L33 type BulkError struct { // Count The number of errors Count int `json:"count"` diff --git a/typedapi/types/bulkindexbyscrollfailure.go b/typedapi/types/bulkindexbyscrollfailure.go index 1f8c47bba4..7e1a70173c 100644 --- a/typedapi/types/bulkindexbyscrollfailure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BulkIndexByScrollFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Errors.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Errors.ts#L60-L65 type BulkIndexByScrollFailure struct { Cause ErrorCause `json:"cause"` Id string `json:"id"` diff --git a/typedapi/types/bulkstats.go b/typedapi/types/bulkstats.go index e593bbc11d..39ddb7ebfa 100644 --- a/typedapi/types/bulkstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BulkStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L71-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L71-L81 type BulkStats struct { AvgSize ByteSize `json:"avg_size,omitempty"` AvgSizeInBytes int64 `json:"avg_size_in_bytes"` diff --git a/typedapi/types/bytenumberproperty.go b/typedapi/types/bytenumberproperty.go index d3a36e7ca1..d2da3b1001 100644 --- a/typedapi/types/bytenumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // ByteNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L176-L179 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L186-L189 type ByteNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/bytesize.go b/typedapi/types/bytesize.go index 8f209624fb..fdcea111f5 100644 --- a/typedapi/types/bytesize.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L97-L98 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L97-L98 type ByteSize any type ByteSizeVariant interface { diff --git a/typedapi/types/bytesprocessor.go b/typedapi/types/bytesprocessor.go index af1fd62f5c..3370fd281b 100644 --- a/typedapi/types/bytesprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // BytesProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L555-L571 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L555-L571 type BytesProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/cachequeries.go b/typedapi/types/cachequeries.go index 8ae48e1c5a..cb77c0224a 100644 --- a/typedapi/types/cachequeries.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CacheQueries type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L421-L423 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L421-L423 type CacheQueries struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/cachestats.go b/typedapi/types/cachestats.go index 5906eebe9a..e42446fe3a 100644 --- a/typedapi/types/cachestats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/stats/types.ts#L38-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/stats/types.ts#L38-L50 type CacheStats struct { Count int `json:"count"` Evictions int `json:"evictions"` diff --git a/typedapi/types/calendar.go b/typedapi/types/calendar.go index 826112ad27..dd69ae1eaf 100644 --- a/typedapi/types/calendar.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Calendar type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_calendars/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/calendarevent.go b/typedapi/types/calendarevent.go index b31baac253..6c1a995998 100644 --- a/typedapi/types/calendarevent.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CalendarEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/CalendarEvent.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/cardinalityaggregate.go b/typedapi/types/cardinalityaggregate.go index 0870840206..bd51364062 100644 --- a/typedapi/types/cardinalityaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L140-L143 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L140-L143 type CardinalityAggregate struct { Meta Metadata `json:"meta,omitempty"` Value int64 `json:"value"` diff --git a/typedapi/types/cardinalityaggregation.go b/typedapi/types/cardinalityaggregation.go index d31563c6c0..95c7b2e2a0 100644 --- a/typedapi/types/cardinalityaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // CardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L87-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L87-L99 type CardinalityAggregation struct { // ExecutionHint Mechanism by which cardinality aggregations is run. ExecutionHint *cardinalityexecutionmode.CardinalityExecutionMode `json:"execution_hint,omitempty"` diff --git a/typedapi/types/catalananalyzer.go b/typedapi/types/catalananalyzer.go index 3308641a9e..f5daf8178b 100644 --- a/typedapi/types/catalananalyzer.go +++ b/typedapi/types/catalananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CatalanAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L93-L98 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L93-L98 type CatalanAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/catanonalydetectorcolumns.go b/typedapi/types/catanonalydetectorcolumns.go index 6101e7cbbe..336a7fd950 100644 --- a/typedapi/types/catanonalydetectorcolumns.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,5 +26,5 @@ import ( // CatAnonalyDetectorColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L402-L404 type CatAnonalyDetectorColumns []catanomalydetectorcolumn.CatAnomalyDetectorColumn diff --git a/typedapi/types/catcomponenttemplate.go b/typedapi/types/catcomponenttemplate.go index 30ba872672..9f09348162 100644 --- a/typedapi/types/catcomponenttemplate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CatComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/component_templates/types.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/component_templates/types.ts#L20-L28 type CatComponentTemplate struct { AliasCount string `json:"alias_count"` IncludedIn string `json:"included_in"` diff --git a/typedapi/types/catdatafeedcolumns.go b/typedapi/types/catdatafeedcolumns.go index 0f18c597a5..647d56fab6 100644 --- a/typedapi/types/catdatafeedcolumns.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,5 +26,5 @@ import ( // CatDatafeedColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L559-L559 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L559-L559 type CatDatafeedColumns []catdatafeedcolumn.CatDatafeedColumn diff --git a/typedapi/types/catdfacolumns.go b/typedapi/types/catdfacolumns.go index a9ef1b71b8..eb0f3ced6a 100644 --- a/typedapi/types/catdfacolumns.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,5 +26,5 @@ import ( // CatDfaColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L558-L558 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L558-L558 type CatDfaColumns []catdfacolumn.CatDfaColumn diff --git a/typedapi/types/categorizationanalyzer.go b/typedapi/types/categorizationanalyzer.go index 552d80a93b..aa0199ad1b 100644 --- a/typedapi/types/categorizationanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // CategorizationAnalyzerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Analysis.ts#L181-L182 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Analysis.ts#L181-L182 type CategorizationAnalyzer any type CategorizationAnalyzerVariant interface { diff --git a/typedapi/types/categorizationanalyzerdefinition.go b/typedapi/types/categorizationanalyzerdefinition.go index e63b3fcd4f..1ac1f7a609 100644 --- a/typedapi/types/categorizationanalyzerdefinition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // CategorizationAnalyzerDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Analysis.ts#L184-L198 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Analysis.ts#L184-L198 type CategorizationAnalyzerDefinition struct { // CharFilter One or more character filters. In addition to the built-in character filters, // other plugins can provide more character filters. If this property is not diff --git a/typedapi/types/categorizetextaggregation.go b/typedapi/types/categorizetextaggregation.go index b4aca8b852..6a20207e0c 100644 --- a/typedapi/types/categorizetextaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CategorizeTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1117-L1182 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1117-L1182 type CategorizeTextAggregation struct { // CategorizationAnalyzer The categorization analyzer specifies how the text is analyzed and tokenized // before being categorized. diff --git a/typedapi/types/categorizetextanalyzer.go b/typedapi/types/categorizetextanalyzer.go index ff447ffb22..69160833b8 100644 --- a/typedapi/types/categorizetextanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // CustomCategorizeTextAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1184-L1187 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1184-L1187 type CategorizeTextAnalyzer any type CategorizeTextAnalyzerVariant interface { diff --git a/typedapi/types/category.go b/typedapi/types/category.go index debecfec0a..3845eab65a 100644 --- a/typedapi/types/category.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Category type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Category.ts#L23-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/cattrainedmodelscolumns.go b/typedapi/types/cattrainedmodelscolumns.go index 23efb173b4..535df52386 100644 --- a/typedapi/types/cattrainedmodelscolumns.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,5 +26,5 @@ import ( // CatTrainedModelsColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L636-L638 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L636-L638 type CatTrainedModelsColumns []cattrainedmodelscolumn.CatTrainedModelsColumn diff --git a/typedapi/types/cattransformcolumns.go b/typedapi/types/cattransformcolumns.go index d83d205b39..50e6859baf 100644 --- a/typedapi/types/cattransformcolumns.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,5 +26,5 @@ import ( // CatTransformColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L845-L845 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L845-L845 type CatTransformColumns []cattransformcolumn.CatTransformColumn diff --git a/typedapi/types/ccr.go b/typedapi/types/ccr.go index 096ea7c8e2..502ac58de8 100644 --- a/typedapi/types/ccr.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Ccr type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L344-L347 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L344-L347 type Ccr struct { AutoFollowPatternsCount int `json:"auto_follow_patterns_count"` Available bool `json:"available"` diff --git a/typedapi/types/ccrshardstats.go b/typedapi/types/ccrshardstats.go index 46247d43fb..f12b7dfe08 100644 --- a/typedapi/types/ccrshardstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CcrShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/_types/FollowIndexStats.ts#L37-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/_types/FollowIndexStats.ts#L37-L109 type CcrShardStats struct { // BytesRead The total of transferred bytes read from the leader. // This is only an estimate and does not account for compression if enabled. diff --git a/typedapi/types/certificateinformation.go b/typedapi/types/certificateinformation.go index 7697cb3a22..baee90d87f 100644 --- a/typedapi/types/certificateinformation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CertificateInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ssl/certificates/types.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ssl/certificates/types.ts#L22-L57 type CertificateInformation struct { // Alias If the path refers to a container file (a jks keystore, or a PKCS#12 file), // it is the alias of the certificate. diff --git a/typedapi/types/cgroup.go b/typedapi/types/cgroup.go index e8f1062daf..c10ea09cb6 100644 --- a/typedapi/types/cgroup.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Cgroup type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L497-L510 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L497-L510 type Cgroup struct { // Cpu Contains statistics about `cpu` control group for the node. Cpu *CgroupCpu `json:"cpu,omitempty"` diff --git a/typedapi/types/cgroupcpu.go b/typedapi/types/cgroupcpu.go index d04dd33a75..fba4278907 100644 --- a/typedapi/types/cgroupcpu.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CgroupCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L523-L540 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L523-L540 type CgroupCpu struct { // CfsPeriodMicros The period of time, in microseconds, for how regularly all tasks in the same // cgroup as the Elasticsearch process should have their access to CPU resources diff --git a/typedapi/types/cgroupcpustat.go b/typedapi/types/cgroupcpustat.go index 4152b08216..1372650c09 100644 --- a/typedapi/types/cgroupcpustat.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CgroupCpuStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L542-L555 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L542-L555 type CgroupCpuStat struct { // NumberOfElapsedPeriods The number of reporting periods (as specified by `cfs_period_micros`) that // have elapsed. diff --git a/typedapi/types/cgroupmemory.go b/typedapi/types/cgroupmemory.go index f7b0500875..5fdbeacdf1 100644 --- a/typedapi/types/cgroupmemory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CgroupMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L557-L573 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L557-L573 type CgroupMemory struct { // ControlGroup The `memory` control group to which the Elasticsearch process belongs. ControlGroup *string `json:"control_group,omitempty"` diff --git a/typedapi/types/chaininput.go b/typedapi/types/chaininput.go index 56ead5f1f8..fc39a44d8f 100644 --- a/typedapi/types/chaininput.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ChainInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L35-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L35-L37 type ChainInput struct { Inputs []map[string]WatcherInput `json:"inputs"` } diff --git a/typedapi/types/charfilter.go b/typedapi/types/charfilter.go index 62a398b837..0c1bf1c194 100644 --- a/typedapi/types/charfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // CharFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/char_filters.ts#L28-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/char_filters.ts#L28-L33 type CharFilter any type CharFilterVariant interface { diff --git a/typedapi/types/charfilterdefinition.go b/typedapi/types/charfilterdefinition.go index b9d60ac30a..1b47388517 100644 --- a/typedapi/types/charfilterdefinition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -28,7 +28,7 @@ package types // IcuNormalizationCharFilter // KuromojiIterationMarkCharFilter // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/char_filters.ts#L35-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/char_filters.ts#L35-L44 type CharFilterDefinition any type CharFilterDefinitionVariant interface { diff --git a/typedapi/types/charfilterdetail.go b/typedapi/types/charfilterdetail.go index be9f70c5f4..254dc67a0c 100644 --- a/typedapi/types/charfilterdetail.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CharFilterDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/types.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/analyze/types.ts#L46-L49 type CharFilterDetail struct { FilteredText []string `json:"filtered_text"` Name string `json:"name"` diff --git a/typedapi/types/charfiltertypes.go b/typedapi/types/charfiltertypes.go index becd1559a7..fdd1dd0238 100644 --- a/typedapi/types/charfiltertypes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // CharFilterTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L228-L261 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/chargrouptokenizer.go b/typedapi/types/chargrouptokenizer.go index 14b79296f7..abc87ff387 100644 --- a/typedapi/types/chargrouptokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CharGroupTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L31-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L31-L38 type CharGroupTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` TokenizeOnChars []string `json:"tokenize_on_chars"` diff --git a/typedapi/types/checkpointing.go b/typedapi/types/checkpointing.go index efaad1fa8b..15e41c82f2 100644 --- a/typedapi/types/checkpointing.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,14 +31,15 @@ import ( // Checkpointing type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform_stats/types.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform_stats/types.ts#L102-L110 type Checkpointing struct { - ChangesLastDetectedAt *int64 `json:"changes_last_detected_at,omitempty"` - ChangesLastDetectedAtDateTime DateTime `json:"changes_last_detected_at_date_time,omitempty"` - Last CheckpointStats `json:"last"` - LastSearchTime *int64 `json:"last_search_time,omitempty"` - Next *CheckpointStats `json:"next,omitempty"` - OperationsBehind *int64 `json:"operations_behind,omitempty"` + ChangesLastDetectedAt *int64 `json:"changes_last_detected_at,omitempty"` + ChangesLastDetectedAtString DateTime `json:"changes_last_detected_at_string,omitempty"` + Last CheckpointStats `json:"last"` + LastSearchTime *int64 `json:"last_search_time,omitempty"` + LastSearchTimeString DateTime `json:"last_search_time_string,omitempty"` + Next *CheckpointStats `json:"next,omitempty"` + OperationsBehind *int64 `json:"operations_behind,omitempty"` } func (s *Checkpointing) UnmarshalJSON(data []byte) error { @@ -71,9 +72,9 @@ func (s *Checkpointing) UnmarshalJSON(data []byte) error { s.ChangesLastDetectedAt = &f } - case "changes_last_detected_at_date_time": - if err := dec.Decode(&s.ChangesLastDetectedAtDateTime); err != nil { - return fmt.Errorf("%s | %w", "ChangesLastDetectedAtDateTime", err) + case "changes_last_detected_at_string": + if err := dec.Decode(&s.ChangesLastDetectedAtString); err != nil { + return fmt.Errorf("%s | %w", "ChangesLastDetectedAtString", err) } case "last": @@ -96,6 +97,11 @@ func (s *Checkpointing) UnmarshalJSON(data []byte) error { s.LastSearchTime = &f } + case "last_search_time_string": + if err := dec.Decode(&s.LastSearchTimeString); err != nil { + return fmt.Errorf("%s | %w", "LastSearchTimeString", err) + } + case "next": if err := dec.Decode(&s.Next); err != nil { return fmt.Errorf("%s | %w", "Next", err) diff --git a/typedapi/types/checkpointstats.go b/typedapi/types/checkpointstats.go index 0cd230383a..cdc2f07e93 100644 --- a/typedapi/types/checkpointstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CheckpointStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform_stats/types.ts#L76-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform_stats/types.ts#L93-L100 type CheckpointStats struct { Checkpoint int64 `json:"checkpoint"` CheckpointProgress *TransformProgress `json:"checkpoint_progress,omitempty"` diff --git a/typedapi/types/childrenaggregate.go b/typedapi/types/childrenaggregate.go index 401ed1a8d4..0e78d6c0b2 100644 --- a/typedapi/types/childrenaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // ChildrenAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L888-L892 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L888-L892 type ChildrenAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/childrenaggregation.go b/typedapi/types/childrenaggregation.go index 5b2e331dd6..03132c5f04 100644 --- a/typedapi/types/childrenaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ChildrenAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L121-L126 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L121-L126 type ChildrenAggregation struct { // Type The child type that should be selected. Type *string `json:"type,omitempty"` diff --git a/typedapi/types/chineseanalyzer.go b/typedapi/types/chineseanalyzer.go index c712fef20f..b621d6b0d4 100644 --- a/typedapi/types/chineseanalyzer.go +++ b/typedapi/types/chineseanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ChineseAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L100-L104 type ChineseAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/chisquareheuristic.go b/typedapi/types/chisquareheuristic.go index c1ff2d0f1a..2c923f0342 100644 --- a/typedapi/types/chisquareheuristic.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ChiSquareHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L782-L791 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L782-L791 type ChiSquareHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. diff --git a/typedapi/types/chunkingconfig.go b/typedapi/types/chunkingconfig.go index 240d1cef7f..a51a974de2 100644 --- a/typedapi/types/chunkingconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // ChunkingConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L251-L264 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L251-L264 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/typedapi/types/chunkingsettings.go b/typedapi/types/chunkingsettings.go new file mode 100644 index 0000000000..d0f2e51c18 --- /dev/null +++ b/typedapi/types/chunkingsettings.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ChunkingSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/ChunkingSettings.ts#L24-L32 +type ChunkingSettings struct { + // MaxChunkSize The maximum size of a chunk in words. + // This value cannot be higher than `300` or lower than `20` (for `sentence` + // strategy) or `10` (for `word` strategy). + MaxChunkSize int `json:"max_chunk_size"` + // Overlap The number of overlapping words for chunks. + // It is applicable only to a `word` chunking strategy. + // This value cannot be higher than half the `max_chunk_size` value. + Overlap *int `json:"overlap,omitempty"` + // SentenceOverlap The number of overlapping sentences for chunks. + // It is applicable only for a `sentence` chunking strategy. + // It can be either `1` or `0`. + SentenceOverlap *int `json:"sentence_overlap,omitempty"` + // Strategy The chunking strategy: `sentence` or `word`. + Strategy string `json:"strategy"` +} + +func (s *ChunkingSettings) 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_chunk_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", "MaxChunkSize", err) + } + s.MaxChunkSize = value + case float64: + f := int(v) + s.MaxChunkSize = f + } + + case "overlap": + + 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", "Overlap", err) + } + s.Overlap = &value + case float64: + f := int(v) + s.Overlap = &f + } + + case "sentence_overlap": + + 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", "SentenceOverlap", err) + } + s.SentenceOverlap = &value + case float64: + f := int(v) + s.SentenceOverlap = &f + } + + case "strategy": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Strategy", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Strategy = o + + } + } + return nil +} + +// NewChunkingSettings returns a ChunkingSettings. +func NewChunkingSettings() *ChunkingSettings { + r := &ChunkingSettings{} + + return r +} + +// true + +type ChunkingSettingsVariant interface { + ChunkingSettingsCaster() *ChunkingSettings +} + +func (s *ChunkingSettings) ChunkingSettingsCaster() *ChunkingSettings { + return s +} diff --git a/typedapi/types/circleprocessor.go b/typedapi/types/circleprocessor.go index f8300b7569..d693709c7a 100644 --- a/typedapi/types/circleprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // CircleProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L573-L596 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L573-L596 type CircleProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/cjkanalyzer.go b/typedapi/types/cjkanalyzer.go index 1e12b027a8..5b98e4bc2c 100644 --- a/typedapi/types/cjkanalyzer.go +++ b/typedapi/types/cjkanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CjkAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L106-L110 type CjkAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/classictokenizer.go b/typedapi/types/classictokenizer.go index 8adb89bd11..489a35fdec 100644 --- a/typedapi/types/classictokenizer.go +++ b/typedapi/types/classictokenizer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClassicTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L40-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L40-L46 type ClassicTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/classificationinferenceoptions.go b/typedapi/types/classificationinferenceoptions.go index fc1cf3b187..375e4eb5b3 100644 --- a/typedapi/types/classificationinferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L93-L108 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L118-L133 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/typedapi/types/cleanuprepositoryresults.go b/typedapi/types/cleanuprepositoryresults.go index 8a20525ab7..a20ef7831a 100644 --- a/typedapi/types/cleanuprepositoryresults.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CleanupRepositoryResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/client.go b/typedapi/types/client.go index 3556cc1cb2..7cae6a5a54 100644 --- a/typedapi/types/client.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Client type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L720-L767 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L720-L767 type Client struct { // Agent Reported agent for the HTTP client. // If unavailable, this property is not included in the response. diff --git a/typedapi/types/closeindexresult.go b/typedapi/types/closeindexresult.go index f017d54cb6..a4ac2c4781 100644 --- a/typedapi/types/closeindexresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CloseIndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/close/CloseIndexResponse.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/close/CloseIndexResponse.ts#L32-L35 type CloseIndexResult struct { Closed bool `json:"closed"` Shards map[string]CloseShardResult `json:"shards,omitempty"` diff --git a/typedapi/types/closeshardresult.go b/typedapi/types/closeshardresult.go index a604006fa7..22e6436b44 100644 --- a/typedapi/types/closeshardresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // CloseShardResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/close/CloseIndexResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/close/CloseIndexResponse.ts#L37-L39 type CloseShardResult struct { Failures []ShardFailure `json:"failures"` } diff --git a/typedapi/types/clusterappliedstats.go b/typedapi/types/clusterappliedstats.go index 2d02c2d0c1..5128784fe2 100644 --- a/typedapi/types/clusterappliedstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ClusterAppliedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L221-L223 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L221-L223 type ClusterAppliedStats struct { Recordings []Recording `json:"recordings,omitempty"` } diff --git a/typedapi/types/clustercomponenttemplate.go b/typedapi/types/clustercomponenttemplate.go index 0d893de85f..1da7fe4630 100644 --- a/typedapi/types/clustercomponenttemplate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ClusterComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/_types/ComponentTemplate.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/_types/ComponentTemplate.ts#L27-L30 type ClusterComponentTemplate struct { ComponentTemplate ComponentTemplateNode `json:"component_template"` Name string `json:"name"` diff --git a/typedapi/types/clusterdetails.go b/typedapi/types/clusterdetails.go index 8c9fec287a..0883b64b54 100644 --- a/typedapi/types/clusterdetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ClusterDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L45-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L45-L52 type ClusterDetails struct { Failures []ShardFailure `json:"failures,omitempty"` Indices string `json:"indices"` diff --git a/typedapi/types/clusterfilesystem.go b/typedapi/types/clusterfilesystem.go index 2e96be324f..c643dd1aeb 100644 --- a/typedapi/types/clusterfilesystem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterFileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L34-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterindexingpressure.go b/typedapi/types/clusterindexingpressure.go index 48ed951db3..28270d83cc 100644 --- a/typedapi/types/clusterindexingpressure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ClusterIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L570-L572 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/stats/types.ts#L570-L572 type ClusterIndexingPressure struct { Memory ClusterPressureMemory `json:"memory"` } diff --git a/typedapi/types/clusterindices.go b/typedapi/types/clusterindices.go index 1d1dba4a31..873b12e79d 100644 --- a/typedapi/types/clusterindices.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L74-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterindicesshards.go b/typedapi/types/clusterindicesshards.go index 14fad71456..af4f01d392 100644 --- a/typedapi/types/clusterindicesshards.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterIndicesShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterindicesshardsindex.go b/typedapi/types/clusterindicesshardsindex.go index a2935defe7..f4a1a3493c 100644 --- a/typedapi/types/clusterindicesshardsindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ClusterIndicesShardsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L51-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterinfo.go b/typedapi/types/clusterinfo.go index a46e02db83..1be4c077b1 100644 --- a/typedapi/types/clusterinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L49-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L49-L55 type ClusterInfo struct { Nodes map[string]NodeDiskUsage `json:"nodes"` ReservedSizes []ReservedSize `json:"reserved_sizes"` diff --git a/typedapi/types/clusterinfotargets.go b/typedapi/types/clusterinfotargets.go index 55093622a8..33bebb9736 100644 --- a/typedapi/types/clusterinfotargets.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,5 +26,5 @@ import ( // ClusterInfoTargets type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L393-L393 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L393-L393 type ClusterInfoTargets []clusterinfotarget.ClusterInfoTarget diff --git a/typedapi/types/clusteringest.go b/typedapi/types/clusteringest.go index 8f7de28a8d..a843994336 100644 --- a/typedapi/types/clusteringest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L270-L273 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterjvm.go b/typedapi/types/clusterjvm.go index 0fbf19eb2b..f3fc16daf4 100644 --- a/typedapi/types/clusterjvm.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterJvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L275-L292 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterjvmmemory.go b/typedapi/types/clusterjvmmemory.go index 2b9e30dc70..e05e4b40ea 100644 --- a/typedapi/types/clusterjvmmemory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L294-L303 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterjvmversion.go b/typedapi/types/clusterjvmversion.go index 59387abeee..be183aaf38 100644 --- a/typedapi/types/clusterjvmversion.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmVersion type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L305-L335 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusternetworktypes.go b/typedapi/types/clusternetworktypes.go index 2e9d0419b9..2733c06ccc 100644 --- a/typedapi/types/clusternetworktypes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ClusterNetworkTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L337-L346 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusternode.go b/typedapi/types/clusternode.go index 12d2d14fa3..7c405a775b 100644 --- a/typedapi/types/clusternode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ClusterNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/ClusterNode.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/ClusterNode.ts#L22-L24 type ClusterNode struct { Name string `json:"name"` } diff --git a/typedapi/types/clusternodecount.go b/typedapi/types/clusternodecount.go index accbda6a4e..7f8d088acb 100644 --- a/typedapi/types/clusternodecount.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterNodeCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L348-L367 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/stats/types.ts#L348-L367 type ClusterNodeCount struct { CoordinatingOnly int `json:"coordinating_only"` Data int `json:"data"` diff --git a/typedapi/types/clusternodes.go b/typedapi/types/clusternodes.go index c3a38e4e50..d26f64ab00 100644 --- a/typedapi/types/clusternodes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ClusterNodes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L369-L402 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusteroperatingsystem.go b/typedapi/types/clusteroperatingsystem.go index eb67141cb7..500c24b092 100644 --- a/typedapi/types/clusteroperatingsystem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L415-L442 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusteroperatingsystemarchitecture.go b/typedapi/types/clusteroperatingsystemarchitecture.go index 792c5793b3..1dcd2208d5 100644 --- a/typedapi/types/clusteroperatingsystemarchitecture.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemArchitecture type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L404-L413 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusteroperatingsystemname.go b/typedapi/types/clusteroperatingsystemname.go index 86eba30ae7..631174de64 100644 --- a/typedapi/types/clusteroperatingsystemname.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemName type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L444-L453 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusteroperatingsystemprettyname.go b/typedapi/types/clusteroperatingsystemprettyname.go index 61470ae30b..3c15b7f21b 100644 --- a/typedapi/types/clusteroperatingsystemprettyname.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemPrettyName type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L455-L464 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterpressurememory.go b/typedapi/types/clusterpressurememory.go index dd192310df..50b83035a1 100644 --- a/typedapi/types/clusterpressurememory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L574-L578 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/stats/types.ts#L574-L578 type ClusterPressureMemory struct { Current IndexingPressureMemorySummary `json:"current"` LimitInBytes int64 `json:"limit_in_bytes"` diff --git a/typedapi/types/clusterprocess.go b/typedapi/types/clusterprocess.go index e8bc761d47..4c3435a21c 100644 --- a/typedapi/types/clusterprocess.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ClusterProcess type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L466-L475 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterprocesscpu.go b/typedapi/types/clusterprocesscpu.go index 24b8382528..27d70d0f91 100644 --- a/typedapi/types/clusterprocesscpu.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L477-L483 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterprocessopenfiledescriptors.go b/typedapi/types/clusterprocessopenfiledescriptors.go index f5690c4d3c..fb1e3b5c95 100644 --- a/typedapi/types/clusterprocessopenfiledescriptors.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessOpenFileDescriptors type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L485-L501 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterprocessor.go b/typedapi/types/clusterprocessor.go index dceb10a76a..2f213539cb 100644 --- a/typedapi/types/clusterprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L503-L509 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/stats/types.ts#L503-L509 type ClusterProcessor struct { Count int64 `json:"count"` Current int64 `json:"current"` diff --git a/typedapi/types/clusterremoteinfo.go b/typedapi/types/clusterremoteinfo.go index ced943a498..514fa0a7d7 100644 --- a/typedapi/types/clusterremoteinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // ClusterRemoteSniffInfo // ClusterRemoteProxyInfo // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30 type ClusterRemoteInfo any diff --git a/typedapi/types/clusterremoteproxyinfo.go b/typedapi/types/clusterremoteproxyinfo.go index b31889a330..b424c0db1b 100644 --- a/typedapi/types/clusterremoteproxyinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteProxyInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L58-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L58-L83 type ClusterRemoteProxyInfo struct { // ClusterCredentials This field is present and has a value of `::es_redacted::` only when the // remote cluster is configured with the API key based model. Otherwise, the diff --git a/typedapi/types/clusterremotesniffinfo.go b/typedapi/types/clusterremotesniffinfo.go index 9353b5dd7d..dc0578593e 100644 --- a/typedapi/types/clusterremotesniffinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteSniffInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L56 type ClusterRemoteSniffInfo struct { // Connected If it is `true`, there is at least one open connection to the remote cluster. // If it is `false`, it means that the cluster no longer has an open connection diff --git a/typedapi/types/clusterruntimefieldtypes.go b/typedapi/types/clusterruntimefieldtypes.go index 30b996a787..f293ab1564 100644 --- a/typedapi/types/clusterruntimefieldtypes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L169-L226 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clustershardmetrics.go b/typedapi/types/clustershardmetrics.go index f987126b34..e1214ed908 100644 --- a/typedapi/types/clustershardmetrics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterShardMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L511-L524 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterstatequeue.go b/typedapi/types/clusterstatequeue.go index 83c3fd2e5d..9567149aac 100644 --- a/typedapi/types/clusterstatequeue.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterStateQueue type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L248-L261 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterstateupdate.go b/typedapi/types/clusterstateupdate.go index 9ebc9df3e6..96d559cbeb 100644 --- a/typedapi/types/clusterstateupdate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterStateUpdate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L278-L343 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/clusterstatistics.go b/typedapi/types/clusterstatistics.go index 24c4970504..c1d0c382af 100644 --- a/typedapi/types/clusterstatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ClusterStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L27-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L27-L35 type ClusterStatistics struct { Details map[string]ClusterDetails `json:"details,omitempty"` Failed int `json:"failed"` diff --git a/typedapi/types/cohereservicesettings.go b/typedapi/types/cohereservicesettings.go new file mode 100644 index 0000000000..37bfcd46fd --- /dev/null +++ b/typedapi/types/cohereservicesettings.go @@ -0,0 +1,152 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cohereembeddingtype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/coheresimilaritytype" +) + +// CohereServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L572-L613 +type CohereServiceSettings struct { + // ApiKey A valid API key for your Cohere account. + // You can find or create your Cohere API keys on the Cohere API key settings + // page. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // EmbeddingType For a `text_embedding` task, the types of embeddings you want to get back. + // Use `byte` for signed int8 embeddings (this is a synonym of `int8`). + // Use `float` for the default float embeddings. + // Use `int8` for signed int8 embeddings. + EmbeddingType *cohereembeddingtype.CohereEmbeddingType `json:"embedding_type,omitempty"` + // ModelId For a `completion`, `rerank`, or `text_embedding` task, the name of the model + // to use for the inference task. + // + // * For the available `completion` models, refer to the [Cohere command + // docs](https://docs.cohere.com/docs/models#command). + // * For the available `rerank` models, refer to the [Cohere rerank + // docs](https://docs.cohere.com/reference/rerank-1). + // * For the available `text_embedding` models, refer to [Cohere embed + // docs](https://docs.cohere.com/reference/embed). + // + // The default value for a text embedding task is `embed-english-v2.0`. + ModelId *string `json:"model_id,omitempty"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Cohere. + // By default, the `cohere` service sets the number of requests allowed per + // minute to 10000. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Similarity The similarity measure. + // If the `embedding_type` is `float`, the default value is `dot_product`. + // If the `embedding_type` is `int8` or `byte`, the default value is `cosine`. + Similarity *coheresimilaritytype.CohereSimilarityType `json:"similarity,omitempty"` +} + +func (s *CohereServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "embedding_type": + if err := dec.Decode(&s.EmbeddingType); err != nil { + return fmt.Errorf("%s | %w", "EmbeddingType", err) + } + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = &o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "similarity": + if err := dec.Decode(&s.Similarity); err != nil { + return fmt.Errorf("%s | %w", "Similarity", err) + } + + } + } + return nil +} + +// NewCohereServiceSettings returns a CohereServiceSettings. +func NewCohereServiceSettings() *CohereServiceSettings { + r := &CohereServiceSettings{} + + return r +} + +// true + +type CohereServiceSettingsVariant interface { + CohereServiceSettingsCaster() *CohereServiceSettings +} + +func (s *CohereServiceSettings) CohereServiceSettingsCaster() *CohereServiceSettings { + return s +} diff --git a/typedapi/types/coheretasksettings.go b/typedapi/types/coheretasksettings.go new file mode 100644 index 0000000000..239ed2b71f --- /dev/null +++ b/typedapi/types/coheretasksettings.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cohereinputtype" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/coheretruncatetype" +) + +// CohereTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L650-L682 +type CohereTaskSettings struct { + // InputType For a `text_embedding` task, the type of input passed to the model. + // Valid values are: + // + // * `classification`: Use it for embeddings passed through a text classifier. + // * `clustering`: Use it for the embeddings run through a clustering algorithm. + // * `ingest`: Use it for storing document embeddings in a vector database. + // * `search`: Use it for storing embeddings of search queries run against a + // vector database to find relevant documents. + // + // IMPORTANT: The `input_type` field is required when using embedding models + // `v3` and higher. + InputType *cohereinputtype.CohereInputType `json:"input_type,omitempty"` + // ReturnDocuments For a `rerank` task, return doc text within the results. + ReturnDocuments *bool `json:"return_documents,omitempty"` + // TopN For a `rerank` task, the number of most relevant documents to return. + // It defaults to the number of the documents. + // If this inference endpoint is used in a `text_similarity_reranker` retriever + // query and `top_n` is set, it must be greater than or equal to + // `rank_window_size` in the query. + TopN *int `json:"top_n,omitempty"` + // Truncate For a `text_embedding` task, the method to handle inputs longer than the + // maximum token length. + // Valid values are: + // + // * `END`: When the input exceeds the maximum input token length, the end of + // the input is discarded. + // * `NONE`: When the input exceeds the maximum input token length, an error is + // returned. + // * `START`: When the input exceeds the maximum input token length, the start + // of the input is discarded. + Truncate *coheretruncatetype.CohereTruncateType `json:"truncate,omitempty"` +} + +func (s *CohereTaskSettings) 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 "input_type": + if err := dec.Decode(&s.InputType); err != nil { + return fmt.Errorf("%s | %w", "InputType", err) + } + + case "return_documents": + 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", "ReturnDocuments", err) + } + s.ReturnDocuments = &value + case bool: + s.ReturnDocuments = &v + } + + case "top_n": + + 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", "TopN", err) + } + s.TopN = &value + case float64: + f := int(v) + s.TopN = &f + } + + case "truncate": + if err := dec.Decode(&s.Truncate); err != nil { + return fmt.Errorf("%s | %w", "Truncate", err) + } + + } + } + return nil +} + +// NewCohereTaskSettings returns a CohereTaskSettings. +func NewCohereTaskSettings() *CohereTaskSettings { + r := &CohereTaskSettings{} + + return r +} + +// true + +type CohereTaskSettingsVariant interface { + CohereTaskSettingsCaster() *CohereTaskSettings +} + +func (s *CohereTaskSettings) CohereTaskSettingsCaster() *CohereTaskSettings { + return s +} diff --git a/typedapi/types/collector.go b/typedapi/types/collector.go index 2a1abd0f53..ff9e6cb254 100644 --- a/typedapi/types/collector.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Collector type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L94-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L94-L99 type Collector struct { Children []Collector `json:"children,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/column.go b/typedapi/types/column.go index f342d34ba1..b498b3c472 100644 --- a/typedapi/types/column.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Column type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/sql/types.ts#L23-L26 type Column struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/combinedfieldsquery.go b/typedapi/types/combinedfieldsquery.go index a3f9478686..568b72a853 100644 --- a/typedapi/types/combinedfieldsquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // CombinedFieldsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/abstractions.ts#L472-L506 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/abstractions.ts#L472-L506 type CombinedFieldsQuery struct { // AutoGenerateSynonymsPhraseQuery If true, match phrase queries are automatically created for multi-term // synonyms. diff --git a/typedapi/types/command.go b/typedapi/types/command.go index 28473fc1a0..48d31db3d4 100644 --- a/typedapi/types/command.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Command type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/types.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/commandallocateprimaryaction.go b/typedapi/types/commandallocateprimaryaction.go index 3d0311a338..17c0126b48 100644 --- a/typedapi/types/commandallocateprimaryaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CommandAllocatePrimaryAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/types.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/commandallocatereplicaaction.go b/typedapi/types/commandallocatereplicaaction.go index 57fad8477a..fb80c39199 100644 --- a/typedapi/types/commandallocatereplicaaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CommandAllocateReplicaAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/types.ts#L69-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/reroute/types.ts#L69-L76 type CommandAllocateReplicaAction struct { Index string `json:"index"` Node string `json:"node"` diff --git a/typedapi/types/commandcancelaction.go b/typedapi/types/commandcancelaction.go index 6a63b048b9..5c9b3dcda2 100644 --- a/typedapi/types/commandcancelaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CommandCancelAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/types.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/reroute/types.ts#L45-L50 type CommandCancelAction struct { AllowPrimary *bool `json:"allow_primary,omitempty"` Index string `json:"index"` diff --git a/typedapi/types/commandmoveaction.go b/typedapi/types/commandmoveaction.go index 386e5b8b82..ae82e7d9dd 100644 --- a/typedapi/types/commandmoveaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CommandMoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/types.ts#L60-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/commongramstokenfilter.go b/typedapi/types/commongramstokenfilter.go index a4b0f94dc4..bafabd1c91 100644 --- a/typedapi/types/commongramstokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CommonGramsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L174-L180 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L174-L180 type CommonGramsTokenFilter struct { CommonWords []string `json:"common_words,omitempty"` CommonWordsPath *string `json:"common_words_path,omitempty"` diff --git a/typedapi/types/commontermsquery.go b/typedapi/types/commontermsquery.go index bc9c627b74..a7e8e2221d 100644 --- a/typedapi/types/commontermsquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // CommonTermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L34-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L34-L44 type CommonTermsQuery struct { Analyzer *string `json:"analyzer,omitempty"` // Boost Floating point number used to decrease or increase the relevance scores of diff --git a/typedapi/types/communityidprocessor.go b/typedapi/types/communityidprocessor.go index 285f71d838..21e50039e9 100644 --- a/typedapi/types/communityidprocessor.go +++ b/typedapi/types/communityidprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CommunityIDProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L598-L659 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L598-L659 type CommunityIDProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/compactnodeinfo.go b/typedapi/types/compactnodeinfo.go index 6d3d040855..cc397ed975 100644 --- a/typedapi/types/compactnodeinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // CompactNodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L27-L29 type CompactNodeInfo struct { Name string `json:"name"` } diff --git a/typedapi/types/completioncontext.go b/typedapi/types/completioncontext.go index 23705171e5..cc236c7dfb 100644 --- a/typedapi/types/completioncontext.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L235-L264 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L235-L264 type CompletionContext struct { // Boost The factor by which the score of the suggestion should be boosted. // The score is computed by multiplying the boost with the suggestion weight. diff --git a/typedapi/types/completionproperty.go b/typedapi/types/completionproperty.go index dd1e8d5f2d..2c32c53ee7 100644 --- a/typedapi/types/completionproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // CompletionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L33-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L33-L41 type CompletionProperty struct { Analyzer *string `json:"analyzer,omitempty"` Contexts []SuggestContext `json:"contexts,omitempty"` diff --git a/typedapi/types/completionresult.go b/typedapi/types/completionresult.go index 582af54577..6edb9baa6f 100644 --- a/typedapi/types/completionresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Results.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Results.ts#L77-L82 type CompletionResult struct { Result string `json:"result"` } diff --git a/typedapi/types/completionstats.go b/typedapi/types/completionstats.go index 3ac173e74f..5d984745e3 100644 --- a/typedapi/types/completionstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L83-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L83-L93 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/typedapi/types/completionsuggest.go b/typedapi/types/completionsuggest.go index ba7538754b..b9e616b0c3 100644 --- a/typedapi/types/completionsuggest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L48-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L48-L55 type CompletionSuggest struct { Length int `json:"length"` Offset int `json:"offset"` diff --git a/typedapi/types/completionsuggester.go b/typedapi/types/completionsuggester.go index c74b9f33ad..fc69c22756 100644 --- a/typedapi/types/completionsuggester.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L163-L181 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/completionsuggestoption.go b/typedapi/types/completionsuggestoption.go index a8a8b777bb..43b470f3d7 100644 --- a/typedapi/types/completionsuggestoption.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L73-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/completiontool.go b/typedapi/types/completiontool.go index c073bd4178..9c6470ed2c 100644 --- a/typedapi/types/completiontool.go +++ b/typedapi/types/completiontool.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionTool type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L215-L227 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L205-L217 type CompletionTool struct { // Function The function definition. Function CompletionToolFunction `json:"function"` diff --git a/typedapi/types/completiontoolchoice.go b/typedapi/types/completiontoolchoice.go index 3b5fb30a59..b0c764f2c4 100644 --- a/typedapi/types/completiontoolchoice.go +++ b/typedapi/types/completiontoolchoice.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionToolChoice type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L178-L190 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L168-L180 type CompletionToolChoice struct { // Function The tool choice function. Function CompletionToolChoiceFunction `json:"function"` diff --git a/typedapi/types/completiontoolchoicefunction.go b/typedapi/types/completiontoolchoicefunction.go index dac77b27e2..f26feee3ec 100644 --- a/typedapi/types/completiontoolchoicefunction.go +++ b/typedapi/types/completiontoolchoicefunction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionToolChoiceFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L167-L176 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L157-L166 type CompletionToolChoiceFunction struct { // Name The name of the function to call. Name string `json:"name"` diff --git a/typedapi/types/completiontoolfunction.go b/typedapi/types/completiontoolfunction.go index fed4677ec3..c08d52f0b6 100644 --- a/typedapi/types/completiontoolfunction.go +++ b/typedapi/types/completiontoolfunction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompletionToolFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L192-L213 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L182-L203 type CompletionToolFunction struct { // Description A description of what the function does. // This is used by the model to choose when and how to call the function. diff --git a/typedapi/types/completiontooltype.go b/typedapi/types/completiontooltype.go index 811c32708e..45714f0d3e 100644 --- a/typedapi/types/completiontooltype.go +++ b/typedapi/types/completiontooltype.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // CompletionToolChoice // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L79-L82 type CompletionToolType any type CompletionToolTypeVariant interface { diff --git a/typedapi/types/componenttemplatenode.go b/typedapi/types/componenttemplatenode.go index 54e440423d..a25f686bad 100644 --- a/typedapi/types/componenttemplatenode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ComponentTemplateNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/_types/ComponentTemplate.ts#L32-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/_types/ComponentTemplate.ts#L32-L41 type ComponentTemplateNode struct { Deprecated *bool `json:"deprecated,omitempty"` Meta_ Metadata `json:"_meta,omitempty"` diff --git a/typedapi/types/componenttemplatesummary.go b/typedapi/types/componenttemplatesummary.go index 7606317758..26ea74995d 100644 --- a/typedapi/types/componenttemplatesummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ComponentTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/_types/ComponentTemplate.ts#L43-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/_types/ComponentTemplate.ts#L43-L55 type ComponentTemplateSummary struct { Aliases map[string]AliasDefinition `json:"aliases,omitempty"` Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"` diff --git a/typedapi/types/compositeaggregate.go b/typedapi/types/compositeaggregate.go index a1762a3e8f..20a0ff9546 100644 --- a/typedapi/types/compositeaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // CompositeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L698-L703 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L698-L703 type CompositeAggregate struct { AfterKey CompositeAggregateKey `json:"after_key,omitempty"` Buckets BucketsCompositeBucket `json:"buckets"` diff --git a/typedapi/types/compositeaggregatekey.go b/typedapi/types/compositeaggregatekey.go index 76b8157d06..195ebb313d 100644 --- a/typedapi/types/compositeaggregatekey.go +++ b/typedapi/types/compositeaggregatekey.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // CompositeAggregateKey type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L128-L128 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L128-L128 type CompositeAggregateKey map[string]FieldValue type CompositeAggregateKeyVariant interface { diff --git a/typedapi/types/compositeaggregation.go b/typedapi/types/compositeaggregation.go index 3e52b285fd..e451d990b1 100644 --- a/typedapi/types/compositeaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CompositeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L130-L149 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L130-L149 type CompositeAggregation struct { // After When paginating, use the `after_key` value returned in the previous response // to retrieve the next page. diff --git a/typedapi/types/compositeaggregationsource.go b/typedapi/types/compositeaggregationsource.go index 392b6a19a4..aba2246feb 100644 --- a/typedapi/types/compositeaggregationsource.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // CompositeAggregationSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L151-L168 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L151-L168 type CompositeAggregationSource struct { // DateHistogram A date histogram aggregation. DateHistogram *CompositeDateHistogramAggregation `json:"date_histogram,omitempty"` diff --git a/typedapi/types/compositebucket.go b/typedapi/types/compositebucket.go index 46cdeabce0..790b1698fe 100644 --- a/typedapi/types/compositebucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // CompositeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L705-L707 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L705-L707 type CompositeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/compositedatehistogramaggregation.go b/typedapi/types/compositedatehistogramaggregation.go index 661c90e702..b9d0f26d16 100644 --- a/typedapi/types/compositedatehistogramaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // CompositeDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L187-L195 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L187-L195 type CompositeDateHistogramAggregation struct { // CalendarInterval Either `calendar_interval` or `fixed_interval` must be present CalendarInterval *string `json:"calendar_interval,omitempty"` diff --git a/typedapi/types/compositegeotilegridaggregation.go b/typedapi/types/compositegeotilegridaggregation.go index c73da8763c..75fb1e57fc 100644 --- a/typedapi/types/compositegeotilegridaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // CompositeGeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L197-L200 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L197-L200 type CompositeGeoTileGridAggregation struct { Bounds GeoBounds `json:"bounds,omitempty"` // Field Either `field` or `script` must be present diff --git a/typedapi/types/compositehistogramaggregation.go b/typedapi/types/compositehistogramaggregation.go index a059bedc4d..7c522847e7 100644 --- a/typedapi/types/compositehistogramaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // CompositeHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L183-L185 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L183-L185 type CompositeHistogramAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` diff --git a/typedapi/types/compositesubfield.go b/typedapi/types/compositesubfield.go index 8bf3548bc6..ec2ea96fe6 100644 --- a/typedapi/types/compositesubfield.go +++ b/typedapi/types/compositesubfield.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // CompositeSubField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/RuntimeFields.ts#L52-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/RuntimeFields.ts#L52-L54 type CompositeSubField struct { Type runtimefieldtype.RuntimeFieldType `json:"type"` } diff --git a/typedapi/types/compositetermsaggregation.go b/typedapi/types/compositetermsaggregation.go index f996ef3451..528fe33015 100644 --- a/typedapi/types/compositetermsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // CompositeTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L181-L181 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L181-L181 type CompositeTermsAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` diff --git a/typedapi/types/conditiontokenfilter.go b/typedapi/types/conditiontokenfilter.go index 29f4e586bd..def9ae5b66 100644 --- a/typedapi/types/conditiontokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ConditionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L182-L186 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L182-L186 type ConditionTokenFilter struct { Filter []string `json:"filter"` Script Script `json:"script"` diff --git a/typedapi/types/configuration.go b/typedapi/types/configuration.go index 92aa5d773f..5e9380ba37 100644 --- a/typedapi/types/configuration.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Configuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/_types/SnapshotLifecycle.ts#L109-L139 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/_types/SnapshotLifecycle.ts#L109-L139 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/typedapi/types/confusionmatrixitem.go b/typedapi/types/confusionmatrixitem.go index 8977b73037..bd7b003743 100644 --- a/typedapi/types/confusionmatrixitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/confusionmatrixprediction.go b/typedapi/types/confusionmatrixprediction.go index c760e645e4..f39a725de6 100644 --- a/typedapi/types/confusionmatrixprediction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixPrediction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L132-L135 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L132-L135 type ConfusionMatrixPrediction struct { Count int `json:"count"` PredictedClass string `json:"predicted_class"` diff --git a/typedapi/types/confusionmatrixthreshold.go b/typedapi/types/confusionmatrixthreshold.go index 12400d310f..9ac944b838 100644 --- a/typedapi/types/confusionmatrixthreshold.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixThreshold type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L137-L158 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L137-L158 type ConfusionMatrixThreshold struct { // FalseNegative False Negative FalseNegative int `json:"fn"` diff --git a/typedapi/types/connection.go b/typedapi/types/connection.go index 86ddf7fb20..cb487d6032 100644 --- a/typedapi/types/connection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Connection type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/_types/Connection.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/graph/_types/Connection.ts#L22-L27 type Connection struct { DocCount int64 `json:"doc_count"` Source int64 `json:"source"` diff --git a/typedapi/types/connector.go b/typedapi/types/connector.go index c98c44c25f..7a4f96e172 100644 --- a/typedapi/types/connector.go +++ b/typedapi/types/connector.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // Connector type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L252-L283 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L252-L283 type Connector struct { ApiKeyId *string `json:"api_key_id,omitempty"` ApiKeySecretId *string `json:"api_key_secret_id,omitempty"` diff --git a/typedapi/types/connectorconfigproperties.go b/typedapi/types/connectorconfigproperties.go index fdc1355ac6..aa4163d5da 100644 --- a/typedapi/types/connectorconfigproperties.go +++ b/typedapi/types/connectorconfigproperties.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // ConnectorConfigProperties type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L83-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L83-L99 type ConnectorConfigProperties struct { Category *string `json:"category,omitempty"` DefaultValue ScalarValue `json:"default_value"` diff --git a/typedapi/types/connectorconfiguration.go b/typedapi/types/connectorconfiguration.go index 96f99557d9..0df46db2d6 100644 --- a/typedapi/types/connectorconfiguration.go +++ b/typedapi/types/connectorconfiguration.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ConnectorConfiguration type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L101-L104 type ConnectorConfiguration map[string]ConnectorConfigProperties type ConnectorConfigurationVariant interface { diff --git a/typedapi/types/connectorcustomscheduling.go b/typedapi/types/connectorcustomscheduling.go index f96e9e2218..8b2013f30b 100644 --- a/typedapi/types/connectorcustomscheduling.go +++ b/typedapi/types/connectorcustomscheduling.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ConnectorCustomScheduling type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L128-L128 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L128-L128 type ConnectorCustomScheduling map[string]CustomScheduling diff --git a/typedapi/types/connectorfeatures.go b/typedapi/types/connectorfeatures.go index 98865cce63..5fd337b668 100644 --- a/typedapi/types/connectorfeatures.go +++ b/typedapi/types/connectorfeatures.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ConnectorFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L230-L244 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L230-L244 type ConnectorFeatures struct { // DocumentLevelSecurity Indicates whether document-level security is enabled. DocumentLevelSecurity *FeatureEnabled `json:"document_level_security,omitempty"` diff --git a/typedapi/types/connectorscheduling.go b/typedapi/types/connectorscheduling.go index 008970e2e8..d5780cfc51 100644 --- a/typedapi/types/connectorscheduling.go +++ b/typedapi/types/connectorscheduling.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ConnectorScheduling type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L106-L110 type ConnectorScheduling struct { Enabled bool `json:"enabled"` // Interval The interval is expressed using the crontab syntax diff --git a/typedapi/types/connectorsyncjob.go b/typedapi/types/connectorsyncjob.go index a5335bcded..d28850dd6a 100644 --- a/typedapi/types/connectorsyncjob.go +++ b/typedapi/types/connectorsyncjob.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // ConnectorSyncJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/SyncJob.ts#L53-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/SyncJob.ts#L53-L72 type ConnectorSyncJob struct { CancelationRequestedAt DateTime `json:"cancelation_requested_at,omitempty"` CanceledAt DateTime `json:"canceled_at,omitempty"` diff --git a/typedapi/types/constantkeywordproperty.go b/typedapi/types/constantkeywordproperty.go index 817aa391c2..87b51ba0db 100644 --- a/typedapi/types/constantkeywordproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // ConstantKeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L50-L53 type ConstantKeywordProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/constantscorequery.go b/typedapi/types/constantscorequery.go index 81f59b357c..35699ed127 100644 --- a/typedapi/types/constantscorequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ConstantScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L76-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L76-L86 type ConstantScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/contentobject.go b/typedapi/types/contentobject.go index 6ed44c5de7..6152c3014e 100644 --- a/typedapi/types/contentobject.go +++ b/typedapi/types/contentobject.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ContentObject type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L94-L106 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L84-L96 type ContentObject struct { // Text The text content. Text string `json:"text"` diff --git a/typedapi/types/context.go b/typedapi/types/context.go index b235d14c94..d3495ed82d 100644 --- a/typedapi/types/context.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // GeoLocation // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L228-L233 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L228-L233 type Context any type ContextVariant interface { diff --git a/typedapi/types/contextmethod.go b/typedapi/types/contextmethod.go index c031b725a1..d6ea0336c9 100644 --- a/typedapi/types/contextmethod.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ContextMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get_script_context/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get_script_context/types.ts#L27-L31 type ContextMethod struct { Name string `json:"name"` Params []ContextMethodParam `json:"params"` diff --git a/typedapi/types/contextmethodparam.go b/typedapi/types/contextmethodparam.go index 4b02daad5e..5f0a630e1a 100644 --- a/typedapi/types/contextmethodparam.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ContextMethodParam type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get_script_context/types.ts#L33-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get_script_context/types.ts#L33-L36 type ContextMethodParam struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/convertprocessor.go b/typedapi/types/convertprocessor.go index 111dfe6d3a..f5b8ff486a 100644 --- a/typedapi/types/convertprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ConvertProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L672-L692 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L672-L692 type ConvertProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/coordinatorstats.go b/typedapi/types/coordinatorstats.go index 4ff5fc7954..51ad5cee14 100644 --- a/typedapi/types/coordinatorstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CoordinatorStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/stats/types.ts#L30-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/stats/types.ts#L30-L36 type CoordinatorStats struct { ExecutedSearchesTotal int64 `json:"executed_searches_total"` NodeId string `json:"node_id"` diff --git a/typedapi/types/coordsgeobounds.go b/typedapi/types/coordsgeobounds.go index 28b2022325..fe8107b8e9 100644 --- a/typedapi/types/coordsgeobounds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CoordsGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L154-L159 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L154-L159 type CoordsGeoBounds struct { Bottom Float64 `json:"bottom"` Left Float64 `json:"left"` diff --git a/typedapi/types/coreknnquery.go b/typedapi/types/coreknnquery.go index 52e0d71866..958e05998b 100644 --- a/typedapi/types/coreknnquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CoreKnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/knn_search/_types/Knn.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/countedkeywordproperty.go b/typedapi/types/countedkeywordproperty.go index c448a30202..84b88220dd 100644 --- a/typedapi/types/countedkeywordproperty.go +++ b/typedapi/types/countedkeywordproperty.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // CountedKeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L55-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L55-L62 type CountedKeywordProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/counter.go b/typedapi/types/counter.go index cbaf055d29..7a4ac971bc 100644 --- a/typedapi/types/counter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Counter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L32-L35 type Counter struct { Active int64 `json:"active"` Total int64 `json:"total"` diff --git a/typedapi/types/countrecord.go b/typedapi/types/countrecord.go index b641e3aef5..0855b8f66a 100644 --- a/typedapi/types/countrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CountRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/count/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/count/types.ts#L23-L39 type CountRecord struct { // Count the document count Count *string `json:"count,omitempty"` diff --git a/typedapi/types/cpu.go b/typedapi/types/cpu.go index 77ee2faf24..25d02d416f 100644 --- a/typedapi/types/cpu.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Cpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L575-L584 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L575-L584 type Cpu struct { LoadAverage map[string]Float64 `json:"load_average,omitempty"` Percent *int `json:"percent,omitempty"` diff --git a/typedapi/types/cpuacct.go b/typedapi/types/cpuacct.go index 6dc76a9b18..f70e28985f 100644 --- a/typedapi/types/cpuacct.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CpuAcct type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L512-L521 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L512-L521 type CpuAcct struct { // ControlGroup The `cpuacct` control group to which the Elasticsearch process belongs. ControlGroup *string `json:"control_group,omitempty"` diff --git a/typedapi/types/createdstatus.go b/typedapi/types/createdstatus.go index 1a433274bc..a0dd3d2478 100644 --- a/typedapi/types/createdstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CreatedStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/CreatedStatus.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/CreatedStatus.ts#L20-L22 type CreatedStatus struct { Created bool `json:"created"` } diff --git a/typedapi/types/createfrom.go b/typedapi/types/createfrom.go index 1948eadcb7..9a217ef22e 100644 --- a/typedapi/types/createfrom.go +++ b/typedapi/types/createfrom.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CreateFrom type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/create_from/MigrateCreateFromRequest.ts#L46-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/create_from/MigrateCreateFromRequest.ts#L46-L60 type CreateFrom struct { // MappingsOverride Mappings overrides to be applied to the destination index (optional) MappingsOverride *TypeMapping `json:"mappings_override,omitempty"` diff --git a/typedapi/types/createoperation.go b/typedapi/types/createoperation.go index 79f18f145a..bb653bafdb 100644 --- a/typedapi/types/createoperation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // CreateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L140-L140 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L140-L140 type CreateOperation struct { // DynamicTemplates A map from the full name of fields to the name of dynamic templates. // It defaults to an empty map. diff --git a/typedapi/types/csvprocessor.go b/typedapi/types/csvprocessor.go index 709c3d0e35..f98d8254c6 100644 --- a/typedapi/types/csvprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CsvProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L694-L727 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L694-L727 type CsvProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/cumulativecardinalityaggregate.go b/typedapi/types/cumulativecardinalityaggregate.go index 27cc1f4fba..a9238f00f3 100644 --- a/typedapi/types/cumulativecardinalityaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CumulativeCardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L856-L864 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L856-L864 type CumulativeCardinalityAggregate struct { Meta Metadata `json:"meta,omitempty"` Value int64 `json:"value"` diff --git a/typedapi/types/cumulativecardinalityaggregation.go b/typedapi/types/cumulativecardinalityaggregation.go index 3a35bc81cf..4fb88d30fd 100644 --- a/typedapi/types/cumulativecardinalityaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // CumulativeCardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L206-L209 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L206-L209 type CumulativeCardinalityAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/cumulativesumaggregation.go b/typedapi/types/cumulativesumaggregation.go index 69d6f00ff4..b075c54926 100644 --- a/typedapi/types/cumulativesumaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // CumulativeSumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L211-L214 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L211-L214 type CumulativeSumAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/currentnode.go b/typedapi/types/currentnode.go index 8ad7aee601..2657402315 100644 --- a/typedapi/types/currentnode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // CurrentNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L79-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L79-L90 type CurrentNode struct { Attributes map[string]string `json:"attributes"` Id string `json:"id"` diff --git a/typedapi/types/customanalyzer.go b/typedapi/types/customanalyzer.go index c9a7358c94..e8bd638740 100644 --- a/typedapi/types/customanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CustomAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L28-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L28-L35 type CustomAnalyzer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` diff --git a/typedapi/types/customcategorizetextanalyzer.go b/typedapi/types/customcategorizetextanalyzer.go index 059071410d..8035c32832 100644 --- a/typedapi/types/customcategorizetextanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CustomCategorizeTextAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1189-L1193 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1189-L1193 type CustomCategorizeTextAnalyzer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` diff --git a/typedapi/types/customnormalizer.go b/typedapi/types/customnormalizer.go index 9657ab4fbd..6fce78b2d5 100644 --- a/typedapi/types/customnormalizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // CustomNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/normalizers.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/normalizers.ts#L30-L34 type CustomNormalizer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` diff --git a/typedapi/types/customscheduling.go b/typedapi/types/customscheduling.go index 9f4db5060f..bb2cea7abf 100644 --- a/typedapi/types/customscheduling.go +++ b/typedapi/types/customscheduling.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CustomScheduling type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L120-L126 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L120-L126 type CustomScheduling struct { ConfigurationOverrides CustomSchedulingConfigurationOverrides `json:"configuration_overrides"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/customschedulingconfigurationoverrides.go b/typedapi/types/customschedulingconfigurationoverrides.go index 3e24abcf09..869dc2671a 100644 --- a/typedapi/types/customschedulingconfigurationoverrides.go +++ b/typedapi/types/customschedulingconfigurationoverrides.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CustomSchedulingConfigurationOverrides type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L112-L118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L112-L118 type CustomSchedulingConfigurationOverrides struct { DomainAllowlist []string `json:"domain_allowlist,omitempty"` MaxCrawlDepth *int `json:"max_crawl_depth,omitempty"` diff --git a/typedapi/types/czechanalyzer.go b/typedapi/types/czechanalyzer.go index e75e9d5f96..474c6e0d6c 100644 --- a/typedapi/types/czechanalyzer.go +++ b/typedapi/types/czechanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // CzechAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L112-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L112-L117 type CzechAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/dailyschedule.go b/typedapi/types/dailyschedule.go index e5623dacf5..bf71e94554 100644 --- a/typedapi/types/dailyschedule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DailySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L33-L35 type DailySchedule struct { At []ScheduleTimeOfDay `json:"at"` } diff --git a/typedapi/types/danglingindex.go b/typedapi/types/danglingindex.go index ec12083890..810f00cfc0 100644 --- a/typedapi/types/danglingindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DanglingIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/danishanalyzer.go b/typedapi/types/danishanalyzer.go index 44bffaa8cc..f72fe5d759 100644 --- a/typedapi/types/danishanalyzer.go +++ b/typedapi/types/danishanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DanishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L119-L123 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L119-L123 type DanishAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/databaseconfiguration.go b/typedapi/types/databaseconfiguration.go index 0e0dde1115..0a6bc03898 100644 --- a/typedapi/types/databaseconfiguration.go +++ b/typedapi/types/databaseconfiguration.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DatabaseConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Database.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Database.ts#L22-L37 type DatabaseConfiguration struct { AdditionalDatabaseConfigurationProperty map[string]json.RawMessage `json:"-"` Ipinfo *Ipinfo `json:"ipinfo,omitempty"` diff --git a/typedapi/types/databaseconfigurationfull.go b/typedapi/types/databaseconfigurationfull.go index c3aed3bb67..bdf7af7d07 100644 --- a/typedapi/types/databaseconfigurationfull.go +++ b/typedapi/types/databaseconfigurationfull.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DatabaseConfigurationFull type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Database.ts#L39-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Database.ts#L39-L53 type DatabaseConfigurationFull struct { AdditionalDatabaseConfigurationFullProperty map[string]json.RawMessage `json:"-"` Ipinfo *Ipinfo `json:"ipinfo,omitempty"` diff --git a/typedapi/types/datacounts.go b/typedapi/types/datacounts.go index 144db71bdf..3362e31254 100644 --- a/typedapi/types/datacounts.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L352-L372 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/datadescription.go b/typedapi/types/datadescription.go index 0fa147e1d6..d7ceebe5f5 100644 --- a/typedapi/types/datadescription.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataDescription type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L374-L390 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataemailattachment.go b/typedapi/types/dataemailattachment.go index 13f8ca5a92..7dbcefe858 100644 --- a/typedapi/types/dataemailattachment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // DataEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L234-L236 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L234-L236 type DataEmailAttachment struct { Format *dataattachmentformat.DataAttachmentFormat `json:"format,omitempty"` } diff --git a/typedapi/types/datafeedauthorization.go b/typedapi/types/datafeedauthorization.go index 017af7a180..fbc28e5249 100644 --- a/typedapi/types/datafeedauthorization.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DatafeedAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Authorization.ts#L31-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/datafeedconfig.go b/typedapi/types/datafeedconfig.go index 12fc75259a..280819944b 100644 --- a/typedapi/types/datafeedconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DatafeedConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L63-L120 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L63-L120 type DatafeedConfig struct { // Aggregations If set, the datafeed performs aggregation searches. Support for aggregations // is limited and should be used only with low cardinality data. diff --git a/typedapi/types/datafeedrunningstate.go b/typedapi/types/datafeedrunningstate.go index 8b148d05ee..63d1698d22 100644 --- a/typedapi/types/datafeedrunningstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DatafeedRunningState type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L210-L224 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L210-L224 type DatafeedRunningState struct { // RealTimeConfigured Indicates if the datafeed is "real-time"; meaning that the datafeed has no // configured `end` time. diff --git a/typedapi/types/datafeeds.go b/typedapi/types/datafeeds.go index 2f1142206f..2ea7cedc41 100644 --- a/typedapi/types/datafeeds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Datafeeds type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/info/types.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/info/types.ts#L42-L44 type Datafeeds struct { ScrollSize int `json:"scroll_size"` } diff --git a/typedapi/types/datafeedsrecord.go b/typedapi/types/datafeedsrecord.go index c590126bfc..3147ac484a 100644 --- a/typedapi/types/datafeedsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DatafeedsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/ml_datafeeds/types.ts#L22-L87 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/datafeedstats.go b/typedapi/types/datafeedstats.go index 7a30ca53a5..7b66ed9512 100644 --- a/typedapi/types/datafeedstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DatafeedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L143-L172 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L143-L172 type DatafeedStats struct { // AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a // node. diff --git a/typedapi/types/datafeedtimingstats.go b/typedapi/types/datafeedtimingstats.go index f579eb3228..734da67ed9 100644 --- a/typedapi/types/datafeedtimingstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DatafeedTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L174-L202 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L174-L202 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/typedapi/types/dataframeanalysisanalyzedfields.go b/typedapi/types/dataframeanalysisanalyzedfields.go index 1fb11da4b5..5c25565232 100644 --- a/typedapi/types/dataframeanalysisanalyzedfields.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisAnalyzedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L238-L244 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L238-L244 type DataframeAnalysisAnalyzedFields struct { // Excludes An array of strings that defines the fields that will be included in the // analysis. diff --git a/typedapi/types/dataframeanalysisclassification.go b/typedapi/types/dataframeanalysisclassification.go index 9592fd1103..610e368fa0 100644 --- a/typedapi/types/dataframeanalysisclassification.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L227-L236 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalysiscontainer.go b/typedapi/types/dataframeanalysiscontainer.go index ca2ddd116c..679fdf94e3 100644 --- a/typedapi/types/dataframeanalysiscontainer.go +++ b/typedapi/types/dataframeanalysiscontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalysisContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L84-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L84-L101 type DataframeAnalysisContainer struct { AdditionalDataframeAnalysisContainerProperty map[string]json.RawMessage `json:"-"` // Classification The configuration information necessary to perform classification. diff --git a/typedapi/types/dataframeanalysisfeatureprocessor.go b/typedapi/types/dataframeanalysisfeatureprocessor.go index 07f2280313..89a3c3da37 100644 --- a/typedapi/types/dataframeanalysisfeatureprocessor.go +++ b/typedapi/types/dataframeanalysisfeatureprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalysisFeatureProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L246-L258 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L246-L258 type DataframeAnalysisFeatureProcessor struct { AdditionalDataframeAnalysisFeatureProcessorProperty map[string]json.RawMessage `json:"-"` // FrequencyEncoding The configuration information necessary to perform frequency encoding. diff --git a/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go b/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go index 73dfd76402..8d88d4daba 100644 --- a/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisFeatureProcessorFrequencyEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L260-L267 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L260-L267 type DataframeAnalysisFeatureProcessorFrequencyEncoding struct { // FeatureName The resulting feature name. FeatureName string `json:"feature_name"` diff --git a/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go b/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go index b9e11d7517..9c3b02eeb4 100644 --- a/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DataframeAnalysisFeatureProcessorMultiEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L269-L272 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go b/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go index 2e492d5112..5cf72fc719 100644 --- a/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorNGramEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L274-L286 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go b/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go index cfd90c0b0a..b815c8da35 100644 --- a/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorOneHotEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L288-L293 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go b/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go index 801eddb7c9..7bc33292be 100644 --- a/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorTargetMeanEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L295-L304 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalysisoutlierdetection.go b/typedapi/types/dataframeanalysisoutlierdetection.go index 9837b54e40..8a988beacf 100644 --- a/typedapi/types/dataframeanalysisoutlierdetection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L103-L132 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalysisregression.go b/typedapi/types/dataframeanalysisregression.go index ce5cbb9945..c536931fc4 100644 --- a/typedapi/types/dataframeanalysisregression.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L215-L225 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalytics.go b/typedapi/types/dataframeanalytics.go index 3e62cb0120..7ef5c033d8 100644 --- a/typedapi/types/dataframeanalytics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DataframeAnalytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L325-L345 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L325-L345 type DataframeAnalytics struct { // AnalysisStats An object containing information about the analysis job. AnalysisStats *DataframeAnalyticsStatsContainer `json:"analysis_stats,omitempty"` diff --git a/typedapi/types/dataframeanalyticsauthorization.go b/typedapi/types/dataframeanalyticsauthorization.go index f125360ff5..754fc20585 100644 --- a/typedapi/types/dataframeanalyticsauthorization.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Authorization.ts#L45-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalyticsdestination.go b/typedapi/types/dataframeanalyticsdestination.go index 4dc8ad6d17..d7d9d3cd8e 100644 --- a/typedapi/types/dataframeanalyticsdestination.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalyticsfieldselection.go b/typedapi/types/dataframeanalyticsfieldselection.go index 508641d971..3a4c6a6ebb 100644 --- a/typedapi/types/dataframeanalyticsfieldselection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsFieldSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L55-L68 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalyticsmemoryestimation.go b/typedapi/types/dataframeanalyticsmemoryestimation.go index 67c76c158c..1d4b5ed7c9 100644 --- a/typedapi/types/dataframeanalyticsmemoryestimation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsMemoryEstimation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L70-L75 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalyticsrecord.go b/typedapi/types/dataframeanalyticsrecord.go index e1a6f320eb..5da38f8c69 100644 --- a/typedapi/types/dataframeanalyticsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataFrameAnalyticsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/ml_data_frame_analytics/types.ts#L22-L102 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalyticssource.go b/typedapi/types/dataframeanalyticssource.go index d855efc0c1..ea1d3d2462 100644 --- a/typedapi/types/dataframeanalyticssource.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L39-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeanalyticsstatscontainer.go b/typedapi/types/dataframeanalyticsstatscontainer.go index ddd2ed3c55..7263afacc8 100644 --- a/typedapi/types/dataframeanalyticsstatscontainer.go +++ b/typedapi/types/dataframeanalyticsstatscontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalyticsStatsContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L374-L382 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L374-L382 type DataframeAnalyticsStatsContainer struct { AdditionalDataframeAnalyticsStatsContainerProperty map[string]json.RawMessage `json:"-"` // ClassificationStats An object containing information about the classification analysis job. diff --git a/typedapi/types/dataframeanalyticsstatsdatacounts.go b/typedapi/types/dataframeanalyticsstatsdatacounts.go index 6c0cad6b63..5d2144662c 100644 --- a/typedapi/types/dataframeanalyticsstatsdatacounts.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsDataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L365-L372 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L365-L372 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/typedapi/types/dataframeanalyticsstatshyperparameters.go b/typedapi/types/dataframeanalyticsstatshyperparameters.go index 623eb041ee..6dcd0cbb41 100644 --- a/typedapi/types/dataframeanalyticsstatshyperparameters.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsHyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L384-L403 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L384-L403 type DataframeAnalyticsStatsHyperparameters struct { // Hyperparameters An object containing the parameters of the classification analysis job. Hyperparameters Hyperparameters `json:"hyperparameters"` diff --git a/typedapi/types/dataframeanalyticsstatsmemoryusage.go b/typedapi/types/dataframeanalyticsstatsmemoryusage.go index f911d31e81..0748e972ce 100644 --- a/typedapi/types/dataframeanalyticsstatsmemoryusage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L354-L363 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L354-L363 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/typedapi/types/dataframeanalyticsstatsoutlierdetection.go b/typedapi/types/dataframeanalyticsstatsoutlierdetection.go index b82c535874..8cf24596cd 100644 --- a/typedapi/types/dataframeanalyticsstatsoutlierdetection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsStatsOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L405-L418 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L405-L418 type DataframeAnalyticsStatsOutlierDetection struct { // Parameters The list of job parameters specified by the user or determined by algorithmic // heuristics. diff --git a/typedapi/types/dataframeanalyticsstatsprogress.go b/typedapi/types/dataframeanalyticsstatsprogress.go index 34ff540ce0..2ae7ae2c68 100644 --- a/typedapi/types/dataframeanalyticsstatsprogress.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L347-L352 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L347-L352 type DataframeAnalyticsStatsProgress struct { // Phase Defines the phase of the data frame analytics job. Phase string `json:"phase"` diff --git a/typedapi/types/dataframeanalyticssummary.go b/typedapi/types/dataframeanalyticssummary.go index 5c37f4aa68..661e27a064 100644 --- a/typedapi/types/dataframeanalyticssummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L306-L323 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L306-L323 type DataframeAnalyticsSummary struct { AllowLazyStart *bool `json:"allow_lazy_start,omitempty"` Analysis DataframeAnalysisContainer `json:"analysis"` diff --git a/typedapi/types/dataframeclassificationsummary.go b/typedapi/types/dataframeclassificationsummary.go index 3b4058eb58..033a68f746 100644 --- a/typedapi/types/dataframeclassificationsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DataframeClassificationSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L44-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeclassificationsummaryaccuracy.go b/typedapi/types/dataframeclassificationsummaryaccuracy.go index 16b3ba9ac1..21d333400f 100644 --- a/typedapi/types/dataframeclassificationsummaryaccuracy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryAccuracy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L111-L114 type DataframeClassificationSummaryAccuracy struct { Classes []DataframeEvaluationClass `json:"classes"` OverallAccuracy Float64 `json:"overall_accuracy"` diff --git a/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go b/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go index 1b4fd0ff57..244136c787 100644 --- a/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryMulticlassConfusionMatrix type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L120-L123 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeclassificationsummaryprecision.go b/typedapi/types/dataframeclassificationsummaryprecision.go index 8a88fe80b6..d5332cea4f 100644 --- a/typedapi/types/dataframeclassificationsummaryprecision.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L101-L104 type DataframeClassificationSummaryPrecision struct { AvgPrecision Float64 `json:"avg_precision"` Classes []DataframeEvaluationClass `json:"classes"` diff --git a/typedapi/types/dataframeclassificationsummaryrecall.go b/typedapi/types/dataframeclassificationsummaryrecall.go index 726e384052..91607efeb7 100644 --- a/typedapi/types/dataframeclassificationsummaryrecall.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L106-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L106-L109 type DataframeClassificationSummaryRecall struct { AvgRecall Float64 `json:"avg_recall"` Classes []DataframeEvaluationClass `json:"classes"` diff --git a/typedapi/types/dataframeevaluationclass.go b/typedapi/types/dataframeevaluationclass.go index b207227449..229aa860cf 100644 --- a/typedapi/types/dataframeevaluationclass.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L116-L118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L116-L118 type DataframeEvaluationClass struct { ClassName string `json:"class_name"` Value Float64 `json:"value"` diff --git a/typedapi/types/dataframeevaluationclassification.go b/typedapi/types/dataframeevaluationclassification.go index 815ae346a7..be5cecb73b 100644 --- a/typedapi/types/dataframeevaluationclassification.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L35-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeevaluationclassificationmetrics.go b/typedapi/types/dataframeevaluationclassificationmetrics.go index 7b52035401..b05171f7ad 100644 --- a/typedapi/types/dataframeevaluationclassificationmetrics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationClassificationMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L73-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go b/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go index a8b228f00b..3b30381f99 100644 --- a/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClassificationMetricsAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L85-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeevaluationcontainer.go b/typedapi/types/dataframeevaluationcontainer.go index ed9f45333a..5cc834df31 100644 --- a/typedapi/types/dataframeevaluationcontainer.go +++ b/typedapi/types/dataframeevaluationcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // DataframeEvaluationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeEvaluation.ts#L25-L33 type DataframeEvaluationContainer struct { AdditionalDataframeEvaluationContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification evaluation evaluates the results of a classification analysis diff --git a/typedapi/types/dataframeevaluationoutlierdetection.go b/typedapi/types/dataframeevaluationoutlierdetection.go index 97478d861e..13c7b8f3ac 100644 --- a/typedapi/types/dataframeevaluationoutlierdetection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L46-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go b/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go index ecba40888e..4913c0391e 100644 --- a/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationOutlierDetectionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L80-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeevaluationregression.go b/typedapi/types/dataframeevaluationregression.go index bc0e5a0fb1..96fbafcf8b 100644 --- a/typedapi/types/dataframeevaluationregression.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L55-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeevaluationregressionmetrics.go b/typedapi/types/dataframeevaluationregressionmetrics.go index 639f662631..db77d90519 100644 --- a/typedapi/types/dataframeevaluationregressionmetrics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationRegressionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L92-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeEvaluation.ts#L92-L110 type DataframeEvaluationRegressionMetrics struct { // Huber Pseudo Huber loss function. Huber *DataframeEvaluationRegressionMetricsHuber `json:"huber,omitempty"` diff --git a/typedapi/types/dataframeevaluationregressionmetricshuber.go b/typedapi/types/dataframeevaluationregressionmetricshuber.go index e7c3481fb6..872fb057e3 100644 --- a/typedapi/types/dataframeevaluationregressionmetricshuber.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsHuber type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L117-L120 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeevaluationregressionmetricsmsle.go b/typedapi/types/dataframeevaluationregressionmetricsmsle.go index 9acb74c423..276127105c 100644 --- a/typedapi/types/dataframeevaluationregressionmetricsmsle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsMsle type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeEvaluation.ts#L112-L115 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeevaluationsummaryaucroc.go b/typedapi/types/dataframeevaluationsummaryaucroc.go index 7ce30e4eb9..62b555511b 100644 --- a/typedapi/types/dataframeevaluationsummaryaucroc.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L91-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L91-L93 type DataframeEvaluationSummaryAucRoc struct { Curve []DataframeEvaluationSummaryAucRocCurveItem `json:"curve,omitempty"` Value Float64 `json:"value"` diff --git a/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go b/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go index 4eb601a93c..c6f25b4f60 100644 --- a/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRocCurveItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L95-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L95-L99 type DataframeEvaluationSummaryAucRocCurveItem struct { Fpr Float64 `json:"fpr"` Threshold Float64 `json:"threshold"` diff --git a/typedapi/types/dataframeevaluationvalue.go b/typedapi/types/dataframeevaluationvalue.go index a8292e1a95..3fbeba2ccd 100644 --- a/typedapi/types/dataframeevaluationvalue.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L87-L89 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/evaluate_data_frame/types.ts#L87-L89 type DataframeEvaluationValue struct { Value Float64 `json:"value"` } diff --git a/typedapi/types/dataframeoutlierdetectionsummary.go b/typedapi/types/dataframeoutlierdetectionsummary.go index f7c5961570..266c984566 100644 --- a/typedapi/types/dataframeoutlierdetectionsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DataframeOutlierDetectionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframepreviewconfig.go b/typedapi/types/dataframepreviewconfig.go index 8c6c12dc1e..600c1bfa30 100644 --- a/typedapi/types/dataframepreviewconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataframePreviewConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/preview_data_frame_analytics/types.ts#L27-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dataframeregressionsummary.go b/typedapi/types/dataframeregressionsummary.go index 6f10ab31e3..316d45c294 100644 --- a/typedapi/types/dataframeregressionsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DataframeRegressionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/evaluate_data_frame/types.ts#L68-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/datapathstats.go b/typedapi/types/datapathstats.go index fc22420a77..56f0eecc9b 100644 --- a/typedapi/types/datapathstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataPathStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L586-L630 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L586-L630 type DataPathStats struct { // Available Total amount of disk space available to this Java virtual machine on this // file store. diff --git a/typedapi/types/datastream.go b/typedapi/types/datastream.go index 264518f90f..cbe1438a59 100644 --- a/typedapi/types/datastream.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // DataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStream.ts#L45-L127 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStream.ts#L45-L127 type DataStream struct { // AllowCustomRouting If `true`, the data stream allows custom routing on write request. AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` diff --git a/typedapi/types/datastreamindex.go b/typedapi/types/datastreamindex.go index 0e5d9b4afe..165f818525 100644 --- a/typedapi/types/datastreamindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DataStreamIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStream.ts#L136-L157 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStream.ts#L136-L157 type DataStreamIndex struct { // IlmPolicy Name of the current ILM lifecycle policy configured for this backing index. IlmPolicy *string `json:"ilm_policy,omitempty"` diff --git a/typedapi/types/datastreamlifecycle.go b/typedapi/types/datastreamlifecycle.go index 7ef65d823d..0a5f01aa0d 100644 --- a/typedapi/types/datastreamlifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStreamLifecycle.ts#L25-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStreamLifecycle.ts#L25-L45 type DataStreamLifecycle struct { // DataRetention If defined, every document added to this data stream will be stored at least // for this time frame. diff --git a/typedapi/types/datastreamlifecycledetails.go b/typedapi/types/datastreamlifecycledetails.go index 9d382b6161..8f6ac1b57c 100644 --- a/typedapi/types/datastreamlifecycledetails.go +++ b/typedapi/types/datastreamlifecycledetails.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L152-L156 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L152-L156 type DataStreamLifecycleDetails struct { StagnatingBackingIndices []StagnatingBackingIndices `json:"stagnating_backing_indices,omitempty"` StagnatingBackingIndicesCount int `json:"stagnating_backing_indices_count"` diff --git a/typedapi/types/datastreamlifecycledownsampling.go b/typedapi/types/datastreamlifecycledownsampling.go index d50a942932..04fb3e6c5d 100644 --- a/typedapi/types/datastreamlifecycledownsampling.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DataStreamLifecycleDownsampling type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/datastreamlifecycleexplain.go b/typedapi/types/datastreamlifecycleexplain.go index 9df02095bd..3e59fd2ea5 100644 --- a/typedapi/types/datastreamlifecycleexplain.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleExplain type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/datastreamlifecycleindicator.go b/typedapi/types/datastreamlifecycleindicator.go index bd7060222a..54efc4f909 100644 --- a/typedapi/types/datastreamlifecycleindicator.go +++ b/typedapi/types/datastreamlifecycleindicator.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DataStreamLifecycleIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L147-L151 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L147-L151 type DataStreamLifecycleIndicator struct { Details *DataStreamLifecycleDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/datastreamlifecyclerolloverconditions.go b/typedapi/types/datastreamlifecyclerolloverconditions.go index 3621758073..0f99271db6 100644 --- a/typedapi/types/datastreamlifecyclerolloverconditions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleRolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStreamLifecycle.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStreamLifecycle.ts#L60-L72 type DataStreamLifecycleRolloverConditions struct { MaxAge *string `json:"max_age,omitempty"` MaxDocs *int64 `json:"max_docs,omitempty"` diff --git a/typedapi/types/datastreamlifecyclewithrollover.go b/typedapi/types/datastreamlifecyclewithrollover.go index e45792f91f..29de67cd16 100644 --- a/typedapi/types/datastreamlifecyclewithrollover.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleWithRollover type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStreamLifecycle.ts#L47-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStreamLifecycle.ts#L47-L58 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/typedapi/types/datastreamnames.go b/typedapi/types/datastreamnames.go index 176e69a318..edd792e18c 100644 --- a/typedapi/types/datastreamnames.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DataStreamNames type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L95-L95 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L95-L95 type DataStreamNames []string diff --git a/typedapi/types/datastreams.go b/typedapi/types/datastreams.go index 46c35aabe7..09d27edf7e 100644 --- a/typedapi/types/datastreams.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreams type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L78-L81 type DataStreams struct { Available bool `json:"available"` DataStreams int64 `json:"data_streams"` diff --git a/typedapi/types/datastreamsstatsitem.go b/typedapi/types/datastreamsstatsitem.go index 4a8e92dba5..7bb42faa85 100644 --- a/typedapi/types/datastreamsstatsitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamsStatsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/datastreamstats.go b/typedapi/types/datastreamstats.go index bb6a40ea27..3856e6cce7 100644 --- a/typedapi/types/datastreamstats.go +++ b/typedapi/types/datastreamstats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L46-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L46-L59 type DataStreamStats struct { // BackingIndicesInError The count of the backing indices for the data stream. BackingIndicesInError int `json:"backing_indices_in_error"` diff --git a/typedapi/types/datastreamtimestamp.go b/typedapi/types/datastreamtimestamp.go index 290005f907..a733b02a73 100644 --- a/typedapi/types/datastreamtimestamp.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamTimestamp type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/TypeMapping.ts#L59-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/TypeMapping.ts#L59-L61 type DataStreamTimestamp struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/datastreamtimestampfield.go b/typedapi/types/datastreamtimestampfield.go index 756ffcb9ba..9f10699c4b 100644 --- a/typedapi/types/datastreamtimestampfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataStreamTimestampField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStream.ts#L129-L134 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStream.ts#L129-L134 type DataStreamTimestampField struct { // Name Name of the timestamp field for the data stream, which must be `@timestamp`. // The `@timestamp` field must be included in every document indexed to the data diff --git a/typedapi/types/datastreamvisibility.go b/typedapi/types/datastreamvisibility.go index b7284fb49b..c8ff49f203 100644 --- a/typedapi/types/datastreamvisibility.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataStreamVisibility type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStream.ts#L159-L162 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStream.ts#L159-L162 type DataStreamVisibility struct { AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` Hidden *bool `json:"hidden,omitempty"` diff --git a/typedapi/types/datastreamwithlifecycle.go b/typedapi/types/datastreamwithlifecycle.go index 51401f089f..69b2f46812 100644 --- a/typedapi/types/datastreamwithlifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DataStreamWithLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30 type DataStreamWithLifecycle struct { Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/datatierphasestatistics.go b/typedapi/types/datatierphasestatistics.go index 0e9d573471..9513a07f61 100644 --- a/typedapi/types/datatierphasestatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataTierPhaseStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L83-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L83-L94 type DataTierPhaseStatistics struct { DocCount int64 `json:"doc_count"` IndexCount int64 `json:"index_count"` diff --git a/typedapi/types/datatiers.go b/typedapi/types/datatiers.go index 15754161c5..3cf22e8ef0 100644 --- a/typedapi/types/datatiers.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DataTiers type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L349-L359 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L349-L359 type DataTiers struct { Available bool `json:"available"` DataCold DataTierPhaseStatistics `json:"data_cold"` diff --git a/typedapi/types/datedecayfunction.go b/typedapi/types/datedecayfunction.go index 9f5327a0ca..c93c101426 100644 --- a/typedapi/types/datedecayfunction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ import ( // DateDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L209-L209 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L209-L209 type DateDecayFunction struct { DecayFunctionBaseDateMathDuration map[string]DecayPlacementDateMathDuration `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/typedapi/types/datedistancefeaturequery.go b/typedapi/types/datedistancefeaturequery.go index 8a73f68809..2e62ef7579 100644 --- a/typedapi/types/datedistancefeaturequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DateDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L71-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L71-L74 type DateDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/datehistogramaggregate.go b/typedapi/types/datehistogramaggregate.go index 825e483912..549fdafa9d 100644 --- a/typedapi/types/datehistogramaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L383-L386 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L383-L386 type DateHistogramAggregate struct { Buckets BucketsDateHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/datehistogramaggregation.go b/typedapi/types/datehistogramaggregation.go index 387ed3970a..ee6533ab52 100644 --- a/typedapi/types/datehistogramaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // DateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L202-L260 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L202-L260 type DateHistogramAggregation struct { // CalendarInterval Calendar-aware interval. // Can be specified using the unit name, such as `month`, or as a single unit diff --git a/typedapi/types/datehistogrambucket.go b/typedapi/types/datehistogrambucket.go index 30a421215b..10c267192c 100644 --- a/typedapi/types/datehistogrambucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // DateHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L388-L391 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L388-L391 type DateHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/datehistogramgrouping.go b/typedapi/types/datehistogramgrouping.go index 9d5250aa4f..c217918f19 100644 --- a/typedapi/types/datehistogramgrouping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DateHistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/_types/Groupings.ts#L42-L73 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dateindexnameprocessor.go b/typedapi/types/dateindexnameprocessor.go index a5572b54af..94f77108bf 100644 --- a/typedapi/types/dateindexnameprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DateIndexNameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L729-L767 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L729-L767 type DateIndexNameProcessor struct { // DateFormats An array of the expected date formats for parsing dates / timestamps in the // document being preprocessed. diff --git a/typedapi/types/datenanosproperty.go b/typedapi/types/datenanosproperty.go index 0679ce3c32..24683142fe 100644 --- a/typedapi/types/datenanosproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // DateNanosProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L80-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L90-L100 type DateNanosProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/dateprocessor.go b/typedapi/types/dateprocessor.go index 858cf64a5d..28996ddbe7 100644 --- a/typedapi/types/dateprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DateProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L769-L802 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L769-L802 type DateProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/dateproperty.go b/typedapi/types/dateproperty.go index 68b9842765..482dfc29bf 100644 --- a/typedapi/types/dateproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // DateProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L66-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L76-L88 type DateProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/daterangeaggregate.go b/typedapi/types/daterangeaggregate.go index 80defa4068..2811c832f9 100644 --- a/typedapi/types/daterangeaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DateRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L609-L615 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L609-L615 type DateRangeAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/daterangeaggregation.go b/typedapi/types/daterangeaggregation.go index b4bc22beac..348944633e 100644 --- a/typedapi/types/daterangeaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DateRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L281-L307 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L281-L307 type DateRangeAggregation struct { // Field The date field whose values are use to build ranges. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/daterangeexpression.go b/typedapi/types/daterangeexpression.go index f613bad2a3..aa491a88e6 100644 --- a/typedapi/types/daterangeexpression.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DateRangeExpression type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L318-L331 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L318-L331 type DateRangeExpression struct { // From Start of the range (inclusive). From FieldDateMath `json:"from,omitempty"` diff --git a/typedapi/types/daterangeproperty.go b/typedapi/types/daterangeproperty.go index 6f9c360cad..698561eec9 100644 --- a/typedapi/types/daterangeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // DateRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/range.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/range.ts#L29-L32 type DateRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/daterangequery.go b/typedapi/types/daterangequery.go index dc3abfa146..447be0693c 100644 --- a/typedapi/types/daterangequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DateRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L161-L170 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L161-L170 type DateRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/datetime.go b/typedapi/types/datetime.go index 708645c2ab..b0cd9260a7 100644 --- a/typedapi/types/datetime.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // int64 // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L22-L27 type DateTime any type DateTimeVariant interface { diff --git a/typedapi/types/decayfunction.go b/typedapi/types/decayfunction.go index 09f1aaac04..db97a90a08 100644 --- a/typedapi/types/decayfunction.go +++ b/typedapi/types/decayfunction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ package types // NumericDecayFunction // GeoDecayFunction // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L215-L224 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L215-L224 type DecayFunction any type DecayFunctionVariant interface { diff --git a/typedapi/types/decayplacement.go b/typedapi/types/decayplacement.go index 9eb82e066c..4a07cc205a 100644 --- a/typedapi/types/decayplacement.go +++ b/typedapi/types/decayplacement.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DecayPlacement type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacement struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` diff --git a/typedapi/types/decayplacementdatemathduration.go b/typedapi/types/decayplacementdatemathduration.go index 426f031458..4894d2710d 100644 --- a/typedapi/types/decayplacementdatemathduration.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementDateMathDuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementDateMathDuration struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` diff --git a/typedapi/types/decayplacementdoubledouble.go b/typedapi/types/decayplacementdoubledouble.go index 72fdbd707d..cb849c0b39 100644 --- a/typedapi/types/decayplacementdoubledouble.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementdoubledouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementdoubledouble struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` diff --git a/typedapi/types/decayplacementgeolocationdistance.go b/typedapi/types/decayplacementgeolocationdistance.go index da3c31b9ba..ca413e4ce0 100644 --- a/typedapi/types/decayplacementgeolocationdistance.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementGeoLocationDistance type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementGeoLocationDistance struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` diff --git a/typedapi/types/defaults.go b/typedapi/types/defaults.go index 81ab8c92a6..256bec0dc1 100644 --- a/typedapi/types/defaults.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Defaults type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/info/types.ts#L24-L27 type Defaults struct { AnomalyDetectors AnomalyDetectors `json:"anomaly_detectors"` Datafeeds Datafeeds `json:"datafeeds"` diff --git a/typedapi/types/definition.go b/typedapi/types/definition.go index f0b22ab564..f7239dc7be 100644 --- a/typedapi/types/definition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Definition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_trained_model/types.ts#L24-L29 type Definition struct { // Preprocessors Collection of preprocessors Preprocessors []Preprocessor `json:"preprocessors,omitempty"` diff --git a/typedapi/types/delayeddatacheckconfig.go b/typedapi/types/delayeddatacheckconfig.go index 31d8ed26fc..87bcfece65 100644 --- a/typedapi/types/delayeddatacheckconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DelayedDataCheckConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L122-L133 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L122-L133 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/typedapi/types/deleteaction.go b/typedapi/types/deleteaction.go index 17810b1614..cf2d80b8f0 100644 --- a/typedapi/types/deleteaction.go +++ b/typedapi/types/deleteaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DeleteAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L149-L151 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L149-L151 type DeleteAction struct { DeleteSearchableSnapshot *bool `json:"delete_searchable_snapshot,omitempty"` } diff --git a/typedapi/types/deleteoperation.go b/typedapi/types/deleteoperation.go index e0746725b1..c5b93036a9 100644 --- a/typedapi/types/deleteoperation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DeleteOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L144-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L144-L144 type DeleteOperation struct { // Id_ The document ID. Id_ *string `json:"_id,omitempty"` diff --git a/typedapi/types/delimitedpayloadtokenfilter.go b/typedapi/types/delimitedpayloadtokenfilter.go index dcae8b30c4..1f2f4ffec4 100644 --- a/typedapi/types/delimitedpayloadtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DelimitedPayloadTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L67-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L67-L71 type DelimitedPayloadTokenFilter struct { Delimiter *string `json:"delimiter,omitempty"` Encoding *delimitedpayloadencoding.DelimitedPayloadEncoding `json:"encoding,omitempty"` diff --git a/typedapi/types/densevectorindexoptions.go b/typedapi/types/densevectorindexoptions.go index 098d4b8b36..f0be25a267 100644 --- a/typedapi/types/densevectorindexoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DenseVectorIndexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/DenseVectorProperty.ts#L129-L162 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/DenseVectorProperty.ts#L129-L162 type DenseVectorIndexOptions struct { // ConfidenceInterval The confidence interval to use when quantizing the vectors. Can be any value // between and including `0.90` and @@ -56,11 +56,13 @@ type DenseVectorIndexOptions struct { // EfConstruction The number of candidates to track while assembling the list of nearest // neighbors for each new node. // - // Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types. + // Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index + // types. EfConstruction *int `json:"ef_construction,omitempty"` // M The number of neighbors each node will be connected to in the HNSW graph. // - // Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types. + // Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index + // types. M *int `json:"m,omitempty"` // Type The type of kNN algorithm to use. Type densevectorindexoptionstype.DenseVectorIndexOptionsType `json:"type"` diff --git a/typedapi/types/densevectorproperty.go b/typedapi/types/densevectorproperty.go index ac52b54db8..3feb97dab6 100644 --- a/typedapi/types/densevectorproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // DenseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/DenseVectorProperty.ts#L23-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/DenseVectorProperty.ts#L23-L62 type DenseVectorProperty struct { // Dims Number of vector dimensions. Can't exceed `4096`. If `dims` is not specified, // it will be set to the length of diff --git a/typedapi/types/dependency.go b/typedapi/types/dependency.go index 3bd9e8fe87..783035ac76 100644 --- a/typedapi/types/dependency.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Dependency type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L30-L33 type Dependency struct { Field string `json:"field"` Value ScalarValue `json:"value"` diff --git a/typedapi/types/deprecation.go b/typedapi/types/deprecation.go index 7104b29019..0f395ecd6e 100644 --- a/typedapi/types/deprecation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // Deprecation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/deprecations/types.ts#L32-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/migration/deprecations/types.ts#L32-L47 type Deprecation struct { // Details Optional details about the deprecation warning. Details *string `json:"details,omitempty"` diff --git a/typedapi/types/deprecationindexing.go b/typedapi/types/deprecationindexing.go index a50b0c4e23..bc2ee878ff 100644 --- a/typedapi/types/deprecationindexing.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DeprecationIndexing type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L144-L146 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L144-L146 type DeprecationIndexing struct { Enabled string `json:"enabled"` } diff --git a/typedapi/types/derivativeaggregate.go b/typedapi/types/derivativeaggregate.go index 4823a33896..f896f9f2b4 100644 --- a/typedapi/types/derivativeaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DerivativeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L241-L248 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L241-L248 type DerivativeAggregate struct { Meta Metadata `json:"meta,omitempty"` NormalizedValue *Float64 `json:"normalized_value,omitempty"` diff --git a/typedapi/types/derivativeaggregation.go b/typedapi/types/derivativeaggregation.go index a7c80918a2..40f35177c4 100644 --- a/typedapi/types/derivativeaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DerivativeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L216-L216 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L216-L216 type DerivativeAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/detailsinfo.go b/typedapi/types/detailsinfo.go index 4abc1d3de2..0d183bc757 100644 --- a/typedapi/types/detailsinfo.go +++ b/typedapi/types/detailsinfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DetailsInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321 type DetailsInfo struct { // Blob A description of the blob that was written and read. Blob BlobDetails `json:"blob"` diff --git a/typedapi/types/detectionrule.go b/typedapi/types/detectionrule.go index 6bd82b88c9..80b63430f5 100644 --- a/typedapi/types/detectionrule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // DetectionRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Rule.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/detector.go b/typedapi/types/detector.go index 9470f293dd..d09afcfaa1 100644 --- a/typedapi/types/detector.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // Detector type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Detector.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/detectorread.go b/typedapi/types/detectorread.go index c781525b13..e123aaab09 100644 --- a/typedapi/types/detectorread.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DetectorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Detector.ts#L69-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/detectorupdate.go b/typedapi/types/detectorupdate.go index 2a7349533f..13bc3a0cfe 100644 --- a/typedapi/types/detectorupdate.go +++ b/typedapi/types/detectorupdate.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DetectorUpdate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Detector.ts#L127-L143 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Detector.ts#L127-L143 type DetectorUpdate struct { // CustomRules An array of custom rule objects, which enable you to customize the way // detectors operate. diff --git a/typedapi/types/dfsknnprofile.go b/typedapi/types/dfsknnprofile.go index 35dde9e492..4b4501a1df 100644 --- a/typedapi/types/dfsknnprofile.go +++ b/typedapi/types/dfsknnprofile.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DfsKnnProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L181-L186 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L181-L186 type DfsKnnProfile struct { Collector []KnnCollectorResult `json:"collector"` Query []KnnQueryProfileResult `json:"query"` diff --git a/typedapi/types/dfsprofile.go b/typedapi/types/dfsprofile.go index c402860fd7..d9471fe32e 100644 --- a/typedapi/types/dfsprofile.go +++ b/typedapi/types/dfsprofile.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DfsProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L154-L157 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L154-L157 type DfsProfile struct { Knn []DfsKnnProfile `json:"knn,omitempty"` Statistics *DfsStatisticsProfile `json:"statistics,omitempty"` diff --git a/typedapi/types/dfsstatisticsbreakdown.go b/typedapi/types/dfsstatisticsbreakdown.go index 49806d8a62..ab45e1296d 100644 --- a/typedapi/types/dfsstatisticsbreakdown.go +++ b/typedapi/types/dfsstatisticsbreakdown.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DfsStatisticsBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L170-L179 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L170-L179 type DfsStatisticsBreakdown struct { CollectionStatistics int64 `json:"collection_statistics"` CollectionStatisticsCount int64 `json:"collection_statistics_count"` diff --git a/typedapi/types/dfsstatisticsprofile.go b/typedapi/types/dfsstatisticsprofile.go index b4a5ec3484..6ed0642ace 100644 --- a/typedapi/types/dfsstatisticsprofile.go +++ b/typedapi/types/dfsstatisticsprofile.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DfsStatisticsProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L159-L167 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L159-L167 type DfsStatisticsProfile struct { Breakdown DfsStatisticsBreakdown `json:"breakdown"` Children []DfsStatisticsProfile `json:"children,omitempty"` diff --git a/typedapi/types/diagnosis.go b/typedapi/types/diagnosis.go index 96a211c4cd..6d732bfa0a 100644 --- a/typedapi/types/diagnosis.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Diagnosis type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L50-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L50-L56 type Diagnosis struct { Action string `json:"action"` AffectedResources DiagnosisAffectedResources `json:"affected_resources"` diff --git a/typedapi/types/diagnosisaffectedresources.go b/typedapi/types/diagnosisaffectedresources.go index 692ac11e5f..3ff920f070 100644 --- a/typedapi/types/diagnosisaffectedresources.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DiagnosisAffectedResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L58-L64 type DiagnosisAffectedResources struct { FeatureStates []string `json:"feature_states,omitempty"` Indices []string `json:"indices,omitempty"` diff --git a/typedapi/types/dictionarydecompoundertokenfilter.go b/typedapi/types/dictionarydecompoundertokenfilter.go index d207152333..2355b88f16 100644 --- a/typedapi/types/dictionarydecompoundertokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DictionaryDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L53-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L53-L55 type DictionaryDecompounderTokenFilter struct { HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` MaxSubwordSize *int `json:"max_subword_size,omitempty"` diff --git a/typedapi/types/directgenerator.go b/typedapi/types/directgenerator.go index e2d2f4eb50..1de838d25b 100644 --- a/typedapi/types/directgenerator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DirectGenerator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L268-L331 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/discovery.go b/typedapi/types/discovery.go index ca2a74c89a..a584feb164 100644 --- a/typedapi/types/discovery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Discovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L201-L219 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/discoverynode.go b/typedapi/types/discoverynode.go index 85c379c037..09b040e24d 100644 --- a/typedapi/types/discoverynode.go +++ b/typedapi/types/discoverynode.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DiscoveryNode type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DiscoveryNode.ts#L25-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DiscoveryNode.ts#L25-L25 type DiscoveryNode map[string]DiscoveryNodeContent diff --git a/typedapi/types/discoverynodecompact.go b/typedapi/types/discoverynodecompact.go index 9c3a72c25e..410adfca39 100644 --- a/typedapi/types/discoverynodecompact.go +++ b/typedapi/types/discoverynodecompact.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DiscoveryNodeCompact type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DiscoveryNode.ts#L39-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DiscoveryNode.ts#L39-L48 type DiscoveryNodeCompact struct { Attributes map[string]string `json:"attributes"` EphemeralId string `json:"ephemeral_id"` diff --git a/typedapi/types/discoverynodecontent.go b/typedapi/types/discoverynodecontent.go index 3e51d94010..819f1d1f35 100644 --- a/typedapi/types/discoverynodecontent.go +++ b/typedapi/types/discoverynodecontent.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DiscoveryNodeContent type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DiscoveryNode.ts#L27-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DiscoveryNode.ts#L27-L37 type DiscoveryNodeContent struct { Attributes map[string]string `json:"attributes"` EphemeralId string `json:"ephemeral_id"` diff --git a/typedapi/types/diskindicator.go b/typedapi/types/diskindicator.go index 3ab10370e3..f507dbfb34 100644 --- a/typedapi/types/diskindicator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DiskIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L123-L127 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L123-L127 type DiskIndicator struct { Details *DiskIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/diskindicatordetails.go b/typedapi/types/diskindicatordetails.go index 4d64c4fa10..a35c87423b 100644 --- a/typedapi/types/diskindicatordetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DiskIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L128-L134 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L128-L134 type DiskIndicatorDetails struct { IndicesWithReadonlyBlock int64 `json:"indices_with_readonly_block"` NodesOverFloodStageWatermark int64 `json:"nodes_over_flood_stage_watermark"` diff --git a/typedapi/types/diskusage.go b/typedapi/types/diskusage.go index fbb663893a..c3f56f4705 100644 --- a/typedapi/types/diskusage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L63-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L63-L70 type DiskUsage struct { FreeBytes int64 `json:"free_bytes"` FreeDiskPercent Float64 `json:"free_disk_percent"` diff --git a/typedapi/types/dismaxquery.go b/typedapi/types/dismaxquery.go index 0dff579279..c791938b7e 100644 --- a/typedapi/types/dismaxquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DisMaxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L88-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L88-L103 type DisMaxQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/dissectprocessor.go b/typedapi/types/dissectprocessor.go index d04727cae9..baa1aec62d 100644 --- a/typedapi/types/dissectprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DissectProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L804-L823 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L804-L823 type DissectProcessor struct { // AppendSeparator The character(s) that separate the appended fields. AppendSeparator *string `json:"append_separator,omitempty"` diff --git a/typedapi/types/distancefeaturequery.go b/typedapi/types/distancefeaturequery.go index 063dbe600b..02cc2492b4 100644 --- a/typedapi/types/distancefeaturequery.go +++ b/typedapi/types/distancefeaturequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ package types // GeoDistanceFeatureQuery // DateDistanceFeatureQuery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L76-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L76-L85 type DistanceFeatureQuery any type DistanceFeatureQueryVariant interface { diff --git a/typedapi/types/diversifiedsampleraggregation.go b/typedapi/types/diversifiedsampleraggregation.go index eb4d3f9067..4861ef9b4b 100644 --- a/typedapi/types/diversifiedsampleraggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DiversifiedSamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L333-L357 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L333-L357 type DiversifiedSamplerAggregation struct { // ExecutionHint The type of value used for de-duplication. ExecutionHint *sampleraggregationexecutionhint.SamplerAggregationExecutionHint `json:"execution_hint,omitempty"` diff --git a/typedapi/types/docstats.go b/typedapi/types/docstats.go index cd802abda0..9e1cc078f2 100644 --- a/typedapi/types/docstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DocStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L100-L112 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L100-L112 type DocStats struct { // Count Total number of non-deleted documents across all primary shards assigned to // selected nodes. diff --git a/typedapi/types/document.go b/typedapi/types/document.go index a0eb8b8e44..3c06577ede 100644 --- a/typedapi/types/document.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Document type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Simulation.ts#L62-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Simulation.ts#L62-L76 type Document struct { // Id_ Unique identifier for the document. // This ID must be unique within the `_index`. diff --git a/typedapi/types/documentrating.go b/typedapi/types/documentrating.go index 8cd2d1e8c2..02004a117a 100644 --- a/typedapi/types/documentrating.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DocumentRating type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L119-L126 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/rank_eval/types.ts#L119-L126 type DocumentRating struct { // Id_ The document ID. Id_ string `json:"_id"` diff --git a/typedapi/types/documentsimulation.go b/typedapi/types/documentsimulation.go index 59f0cc5808..08c4985911 100644 --- a/typedapi/types/documentsimulation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // DocumentSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Simulation.ts#L78-L108 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Simulation.ts#L78-L108 type DocumentSimulation struct { DocumentSimulation map[string]string `json:"-"` // Id_ Unique identifier for the document. This ID must be unique within the diff --git a/typedapi/types/dotexpanderprocessor.go b/typedapi/types/dotexpanderprocessor.go index d896ffc730..164164ad36 100644 --- a/typedapi/types/dotexpanderprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DotExpanderProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L825-L843 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L825-L843 type DotExpanderProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/doublenumberproperty.go b/typedapi/types/doublenumberproperty.go index 41ac6b60b2..f9c522e9be 100644 --- a/typedapi/types/doublenumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // DoubleNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L156-L159 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L166-L169 type DoubleNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/doublerangeproperty.go b/typedapi/types/doublerangeproperty.go index 4b0a4e9680..09f075d788 100644 --- a/typedapi/types/doublerangeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // DoubleRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/range.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/range.ts#L34-L36 type DoubleRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/doubletermsaggregate.go b/typedapi/types/doubletermsaggregate.go index 06e15186c8..afd6cd22b7 100644 --- a/typedapi/types/doubletermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DoubleTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L451-L456 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L451-L456 type DoubleTermsAggregate struct { Buckets BucketsDoubleTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/doubletermsbucket.go b/typedapi/types/doubletermsbucket.go index b973b2c888..ac0fca146a 100644 --- a/typedapi/types/doubletermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // DoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L458-L461 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L458-L461 type DoubleTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/downsampleaction.go b/typedapi/types/downsampleaction.go index f8ed3f52d3..f71a3db401 100644 --- a/typedapi/types/downsampleaction.go +++ b/typedapi/types/downsampleaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DownsampleAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L112-L115 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L112-L115 type DownsampleAction struct { FixedInterval string `json:"fixed_interval"` WaitTimeout Duration `json:"wait_timeout,omitempty"` diff --git a/typedapi/types/downsampleconfig.go b/typedapi/types/downsampleconfig.go index 0281816019..4ad7f142b0 100644 --- a/typedapi/types/downsampleconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DownsampleConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/Downsample.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/downsamplinground.go b/typedapi/types/downsamplinground.go index af6f191b61..716a5366b4 100644 --- a/typedapi/types/downsamplinground.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // DownsamplingRound type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DownsamplingRound.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/dropprocessor.go b/typedapi/types/dropprocessor.go index 4dd96c640f..c37bddff42 100644 --- a/typedapi/types/dropprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DropProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L845-L845 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L845-L845 type DropProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/duration.go b/typedapi/types/duration.go index 44f1d46427..f41ebcca5a 100644 --- a/typedapi/types/duration.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -24,7 +24,7 @@ package types // // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L52-L58 type Duration any type DurationVariant interface { diff --git a/typedapi/types/durationvalueunitfloatmillis.go b/typedapi/types/durationvalueunitfloatmillis.go index f0af7aedbf..db1f70b846 100644 --- a/typedapi/types/durationvalueunitfloatmillis.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DurationValueUnitFloatMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L67-L67 type DurationValueUnitFloatMillis Float64 diff --git a/typedapi/types/durationvalueunitmillis.go b/typedapi/types/durationvalueunitmillis.go index dd20426a75..69a1adae4c 100644 --- a/typedapi/types/durationvalueunitmillis.go +++ b/typedapi/types/durationvalueunitmillis.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DurationValueUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L67-L67 type DurationValueUnitMillis int64 type DurationValueUnitMillisVariant interface { diff --git a/typedapi/types/durationvalueunitnanos.go b/typedapi/types/durationvalueunitnanos.go index 73c1159bd4..1d947120be 100644 --- a/typedapi/types/durationvalueunitnanos.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DurationValueUnitNanos type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L67-L67 type DurationValueUnitNanos int64 diff --git a/typedapi/types/durationvalueunitseconds.go b/typedapi/types/durationvalueunitseconds.go index 667a9b0e00..1d7e520098 100644 --- a/typedapi/types/durationvalueunitseconds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // DurationValueUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L67-L67 type DurationValueUnitSeconds int64 diff --git a/typedapi/types/dutchanalyzer.go b/typedapi/types/dutchanalyzer.go index aa83fea7c2..6d96e1fcca 100644 --- a/typedapi/types/dutchanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // DutchAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L125-L130 type DutchAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/dynamicproperty.go b/typedapi/types/dynamicproperty.go index 21a82c7692..38dedb1c63 100644 --- a/typedapi/types/dynamicproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -38,7 +38,7 @@ import ( // DynamicProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L318-L349 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L335-L366 type DynamicProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` diff --git a/typedapi/types/dynamictemplate.go b/typedapi/types/dynamictemplate.go index 73c0cf0430..6320a43d72 100644 --- a/typedapi/types/dynamictemplate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // DynamicTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/dynamic-template.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/dynamic-template.ts#L23-L43 type DynamicTemplate struct { AdditionalDynamicTemplateProperty map[string]json.RawMessage `json:"-"` Mapping Property `json:"mapping,omitempty"` diff --git a/typedapi/types/edgengramtokenfilter.go b/typedapi/types/edgengramtokenfilter.go index 98e7d2bcdc..6f449df90b 100644 --- a/typedapi/types/edgengramtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // EdgeNGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L78-L84 type EdgeNGramTokenFilter struct { MaxGram *int `json:"max_gram,omitempty"` MinGram *int `json:"min_gram,omitempty"` diff --git a/typedapi/types/edgengramtokenizer.go b/typedapi/types/edgengramtokenizer.go index feb0b7d9d2..3f1d723fe5 100644 --- a/typedapi/types/edgengramtokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // EdgeNGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L48-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L48-L57 type EdgeNGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` MaxGram *int `json:"max_gram,omitempty"` diff --git a/typedapi/types/elasticsearchservicesettings.go b/typedapi/types/elasticsearchservicesettings.go new file mode 100644 index 0000000000..7be5916501 --- /dev/null +++ b/typedapi/types/elasticsearchservicesettings.go @@ -0,0 +1,164 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ElasticsearchServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L704-L738 +type ElasticsearchServiceSettings struct { + // AdaptiveAllocations Adaptive allocations configuration details. + // If `enabled` is true, the number of allocations of the model is set based on + // the current load the process gets. + // When the load is high, a new model allocation is automatically created, + // respecting the value of `max_number_of_allocations` if it's set. + // When the load is low, a model allocation is automatically removed, respecting + // the value of `min_number_of_allocations` if it's set. + // If `enabled` is true, do not set the number of allocations manually. + AdaptiveAllocations *AdaptiveAllocations `json:"adaptive_allocations,omitempty"` + // DeploymentId The deployment identifier for a trained model deployment. + // When `deployment_id` is used the `model_id` is optional. + DeploymentId *string `json:"deployment_id,omitempty"` + // ModelId The name of the model to use for the inference task. + // It can be the ID of a built-in model (for example, `.multilingual-e5-small` + // for E5) or a text embedding model that was uploaded by using the Eland + // client. + ModelId string `json:"model_id"` + // NumAllocations The total number of allocations that are assigned to the model across machine + // learning nodes. + // Increasing this value generally increases the throughput. + // If adaptive allocations are enabled, do not set this value because it's + // automatically set. + NumAllocations *int `json:"num_allocations,omitempty"` + // NumThreads The number of threads used by each model allocation during inference. + // This setting generally increases the speed per inference request. + // The inference process is a compute-bound process; `threads_per_allocations` + // must not exceed the number of available allocated processors per node. + // The value must be a power of 2. + // The maximum value is 32. + NumThreads int `json:"num_threads"` +} + +func (s *ElasticsearchServiceSettings) 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 "adaptive_allocations": + if err := dec.Decode(&s.AdaptiveAllocations); err != nil { + return fmt.Errorf("%s | %w", "AdaptiveAllocations", err) + } + + case "deployment_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "DeploymentId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.DeploymentId = &o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "num_allocations": + + 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", "NumAllocations", err) + } + s.NumAllocations = &value + case float64: + f := int(v) + s.NumAllocations = &f + } + + case "num_threads": + + 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", "NumThreads", err) + } + s.NumThreads = value + case float64: + f := int(v) + s.NumThreads = f + } + + } + } + return nil +} + +// NewElasticsearchServiceSettings returns a ElasticsearchServiceSettings. +func NewElasticsearchServiceSettings() *ElasticsearchServiceSettings { + r := &ElasticsearchServiceSettings{} + + return r +} + +// true + +type ElasticsearchServiceSettingsVariant interface { + ElasticsearchServiceSettingsCaster() *ElasticsearchServiceSettings +} + +func (s *ElasticsearchServiceSettings) ElasticsearchServiceSettingsCaster() *ElasticsearchServiceSettings { + return s +} diff --git a/typedapi/types/elasticsearchtasksettings.go b/typedapi/types/elasticsearchtasksettings.go new file mode 100644 index 0000000000..0b26b1cf26 --- /dev/null +++ b/typedapi/types/elasticsearchtasksettings.go @@ -0,0 +1,89 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ElasticsearchTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L740-L746 +type ElasticsearchTaskSettings struct { + // ReturnDocuments For a `rerank` task, return the document instead of only the index. + ReturnDocuments *bool `json:"return_documents,omitempty"` +} + +func (s *ElasticsearchTaskSettings) 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 "return_documents": + 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", "ReturnDocuments", err) + } + s.ReturnDocuments = &value + case bool: + s.ReturnDocuments = &v + } + + } + } + return nil +} + +// NewElasticsearchTaskSettings returns a ElasticsearchTaskSettings. +func NewElasticsearchTaskSettings() *ElasticsearchTaskSettings { + r := &ElasticsearchTaskSettings{} + + return r +} + +// true + +type ElasticsearchTaskSettingsVariant interface { + ElasticsearchTaskSettingsCaster() *ElasticsearchTaskSettings +} + +func (s *ElasticsearchTaskSettings) ElasticsearchTaskSettingsCaster() *ElasticsearchTaskSettings { + return s +} diff --git a/typedapi/types/elasticsearchversioninfo.go b/typedapi/types/elasticsearchversioninfo.go index 6ede8974eb..b0d83a1add 100644 --- a/typedapi/types/elasticsearchversioninfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Base.ts#L76-L115 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Base.ts#L76-L115 type ElasticsearchVersionInfo struct { // BuildDate The Elasticsearch Git commit's date. BuildDate DateTime `json:"build_date"` diff --git a/typedapi/types/elasticsearchversionmininfo.go b/typedapi/types/elasticsearchversionmininfo.go index 04713107b1..a2d8ac9617 100644 --- a/typedapi/types/elasticsearchversionmininfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionMinInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Base.ts#L117-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Base.ts#L117-L125 type ElasticsearchVersionMinInfo struct { BuildFlavor string `json:"build_flavor"` Int string `json:"number"` diff --git a/typedapi/types/elisiontokenfilter.go b/typedapi/types/elisiontokenfilter.go index e96e83e339..6e077ee3a6 100644 --- a/typedapi/types/elisiontokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ElisionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L188-L193 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L188-L193 type ElisionTokenFilter struct { Articles []string `json:"articles,omitempty"` ArticlesCase Stringifiedboolean `json:"articles_case,omitempty"` diff --git a/typedapi/types/elserservicesettings.go b/typedapi/types/elserservicesettings.go new file mode 100644 index 0000000000..5a62a06f09 --- /dev/null +++ b/typedapi/types/elserservicesettings.go @@ -0,0 +1,137 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ElserServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L758-L784 +type ElserServiceSettings struct { + // AdaptiveAllocations Adaptive allocations configuration details. + // If `enabled` is true, the number of allocations of the model is set based on + // the current load the process gets. + // When the load is high, a new model allocation is automatically created, + // respecting the value of `max_number_of_allocations` if it's set. + // When the load is low, a model allocation is automatically removed, respecting + // the value of `min_number_of_allocations` if it's set. + // If `enabled` is true, do not set the number of allocations manually. + AdaptiveAllocations *AdaptiveAllocations `json:"adaptive_allocations,omitempty"` + // NumAllocations The total number of allocations this model is assigned across machine + // learning nodes. + // Increasing this value generally increases the throughput. + // If adaptive allocations is enabled, do not set this value because it's + // automatically set. + NumAllocations int `json:"num_allocations"` + // NumThreads The number of threads used by each model allocation during inference. + // Increasing this value generally increases the speed per inference request. + // The inference process is a compute-bound process; `threads_per_allocations` + // must not exceed the number of available allocated processors per node. + // The value must be a power of 2. + // The maximum value is 32. + // + // > info + // > If you want to optimize your ELSER endpoint for ingest, set the number of + // threads to 1. If you want to optimize your ELSER endpoint for search, set the + // number of threads to greater than 1. + NumThreads int `json:"num_threads"` +} + +func (s *ElserServiceSettings) 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 "adaptive_allocations": + if err := dec.Decode(&s.AdaptiveAllocations); err != nil { + return fmt.Errorf("%s | %w", "AdaptiveAllocations", err) + } + + case "num_allocations": + + 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", "NumAllocations", err) + } + s.NumAllocations = value + case float64: + f := int(v) + s.NumAllocations = f + } + + case "num_threads": + + 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", "NumThreads", err) + } + s.NumThreads = value + case float64: + f := int(v) + s.NumThreads = f + } + + } + } + return nil +} + +// NewElserServiceSettings returns a ElserServiceSettings. +func NewElserServiceSettings() *ElserServiceSettings { + r := &ElserServiceSettings{} + + return r +} + +// true + +type ElserServiceSettingsVariant interface { + ElserServiceSettingsCaster() *ElserServiceSettings +} + +func (s *ElserServiceSettings) ElserServiceSettingsCaster() *ElserServiceSettings { + return s +} diff --git a/typedapi/types/email.go b/typedapi/types/email.go index 8ddafe2f35..1bce38f98a 100644 --- a/typedapi/types/email.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // Email type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L238-L250 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/emailaction.go b/typedapi/types/emailaction.go index 2b4fb8e96c..1d6c651ae7 100644 --- a/typedapi/types/emailaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // EmailAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L252-L252 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/emailattachmentcontainer.go b/typedapi/types/emailattachmentcontainer.go index 28ff279f99..f65ee25f2f 100644 --- a/typedapi/types/emailattachmentcontainer.go +++ b/typedapi/types/emailattachmentcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // EmailAttachmentContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L211-L216 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L211-L216 type EmailAttachmentContainer struct { AdditionalEmailAttachmentContainerProperty map[string]json.RawMessage `json:"-"` Data *DataEmailAttachment `json:"data,omitempty"` diff --git a/typedapi/types/emailbody.go b/typedapi/types/emailbody.go index a97ca5ec2a..9ac3a24424 100644 --- a/typedapi/types/emailbody.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // EmailBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L192-L195 type EmailBody struct { Html *string `json:"html,omitempty"` Text *string `json:"text,omitempty"` diff --git a/typedapi/types/emailresult.go b/typedapi/types/emailresult.go index 66cd134908..544068ba91 100644 --- a/typedapi/types/emailresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // EmailResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L205-L209 type EmailResult struct { Account *string `json:"account,omitempty"` Message Email `json:"message"` diff --git a/typedapi/types/emptyobject.go b/typedapi/types/emptyobject.go index f739de8505..c872dbeb1a 100644 --- a/typedapi/types/emptyobject.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EmptyObject type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L164-L165 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L164-L165 type EmptyObject struct { } diff --git a/typedapi/types/englishanalyzer.go b/typedapi/types/englishanalyzer.go index 8294406ba8..1d8d57bb96 100644 --- a/typedapi/types/englishanalyzer.go +++ b/typedapi/types/englishanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // EnglishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L132-L137 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L132-L137 type EnglishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/enrichpolicy.go b/typedapi/types/enrichpolicy.go index 0c5cc7fcc3..5cf0ca7c03 100644 --- a/typedapi/types/enrichpolicy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // EnrichPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/_types/Policy.ts#L34-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/_types/Policy.ts#L34-L41 type EnrichPolicy struct { ElasticsearchVersion *string `json:"elasticsearch_version,omitempty"` EnrichFields []string `json:"enrich_fields"` diff --git a/typedapi/types/enrichprocessor.go b/typedapi/types/enrichprocessor.go index 66019f5add..387065ace5 100644 --- a/typedapi/types/enrichprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // EnrichProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L847-L886 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L847-L886 type EnrichProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/ensemble.go b/typedapi/types/ensemble.go index 214eb89724..936e64fc20 100644 --- a/typedapi/types/ensemble.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Ensemble type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go b/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go index 70d45668f0..98a9e9a24f 100644 --- a/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package accesstokengranttype package accesstokengranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_token/types.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_token/types.ts#L23-L48 type AccessTokenGrantType struct { Name string } diff --git a/typedapi/types/enums/acknowledgementoptions/acknowledgementoptions.go b/typedapi/types/enums/acknowledgementoptions/acknowledgementoptions.go index 5a2f4e3efd..b2d858050f 100644 --- a/typedapi/types/enums/acknowledgementoptions/acknowledgementoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package acknowledgementoptions package acknowledgementoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L103-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L103-L107 type AcknowledgementOptions struct { Name string } diff --git a/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go b/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go index 50c39d13f9..edc260f132 100644 --- a/typedapi/types/enums/actionexecutionmode/actionexecutionmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package actionexecutionmode package actionexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L67-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L67-L88 type ActionExecutionMode struct { Name string } diff --git a/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go b/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go index bb36f18e17..a321373c15 100644 --- a/typedapi/types/enums/actionstatusoptions/actionstatusoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package actionstatusoptions package actionstatusoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L96-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L96-L101 type ActionStatusOptions struct { Name string } diff --git a/typedapi/types/enums/actiontype/actiontype.go b/typedapi/types/enums/actiontype/actiontype.go index 7c7c1d8384..1328cc7abe 100644 --- a/typedapi/types/enums/actiontype/actiontype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package actiontype package actiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L58-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L58-L65 type ActionType struct { Name string } diff --git a/typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.go b/typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.go new file mode 100644 index 0000000000..e56ff6823d --- /dev/null +++ b/typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package alibabacloudservicetype +package alibabacloudservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L289-L291 +type AlibabaCloudServiceType struct { + Name string +} + +var ( + AlibabacloudAiSearch = AlibabaCloudServiceType{"alibabacloud-ai-search"} +) + +func (a AlibabaCloudServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AlibabaCloudServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "alibabacloud-ai-search": + *a = AlibabacloudAiSearch + default: + *a = AlibabaCloudServiceType{string(text)} + } + + return nil +} + +func (a AlibabaCloudServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go b/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go new file mode 100644 index 0000000000..156410e774 --- /dev/null +++ b/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package alibabacloudtasktype +package alibabacloudtasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L282-L287 +type AlibabaCloudTaskType struct { + Name string +} + +var ( + Completion = AlibabaCloudTaskType{"completion"} + + Rerank = AlibabaCloudTaskType{"rerank"} + + Spaceembedding = AlibabaCloudTaskType{"space_embedding"} + + Textembedding = AlibabaCloudTaskType{"text_embedding"} +) + +func (a AlibabaCloudTaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AlibabaCloudTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + case "rerank": + *a = Rerank + case "space_embedding": + *a = Spaceembedding + case "text_embedding": + *a = Textembedding + default: + *a = AlibabaCloudTaskType{string(text)} + } + + return nil +} + +func (a AlibabaCloudTaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go b/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go index 84c88162f3..13409f0c68 100644 --- a/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package allocationexplaindecision package allocationexplaindecision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L33-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L33-L38 type AllocationExplainDecision struct { Name string } diff --git a/typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.go b/typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.go new file mode 100644 index 0000000000..959ff3599f --- /dev/null +++ b/typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package amazonbedrockservicetype +package amazonbedrockservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L368-L370 +type AmazonBedrockServiceType struct { + Name string +} + +var ( + Amazonbedrock = AmazonBedrockServiceType{"amazonbedrock"} +) + +func (a AmazonBedrockServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AmazonBedrockServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "amazonbedrock": + *a = Amazonbedrock + default: + *a = AmazonBedrockServiceType{string(text)} + } + + return nil +} + +func (a AmazonBedrockServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go b/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go new file mode 100644 index 0000000000..4a00517405 --- /dev/null +++ b/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package amazonbedrocktasktype +package amazonbedrocktasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L363-L366 +type AmazonBedrockTaskType struct { + Name string +} + +var ( + Completion = AmazonBedrockTaskType{"completion"} + + Textembedding = AmazonBedrockTaskType{"text_embedding"} +) + +func (a AmazonBedrockTaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AmazonBedrockTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + case "text_embedding": + *a = Textembedding + default: + *a = AmazonBedrockTaskType{string(text)} + } + + return nil +} + +func (a AmazonBedrockTaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go b/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go new file mode 100644 index 0000000000..efba482f46 --- /dev/null +++ b/typedapi/types/enums/anthropicservicetype/anthropicservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package anthropicservicetype +package anthropicservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L421-L423 +type AnthropicServiceType struct { + Name string +} + +var ( + Anthropic = AnthropicServiceType{"anthropic"} +) + +func (a AnthropicServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AnthropicServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "anthropic": + *a = Anthropic + default: + *a = AnthropicServiceType{string(text)} + } + + return nil +} + +func (a AnthropicServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/anthropictasktype/anthropictasktype.go b/typedapi/types/enums/anthropictasktype/anthropictasktype.go new file mode 100644 index 0000000000..44aa6deaa2 --- /dev/null +++ b/typedapi/types/enums/anthropictasktype/anthropictasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package anthropictasktype +package anthropictasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L417-L419 +type AnthropicTaskType struct { + Name string +} + +var ( + Completion = AnthropicTaskType{"completion"} +) + +func (a AnthropicTaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AnthropicTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + default: + *a = AnthropicTaskType{string(text)} + } + + return nil +} + +func (a AnthropicTaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/apikeygranttype/apikeygranttype.go b/typedapi/types/enums/apikeygranttype/apikeygranttype.go index 78240641df..07a6ec7503 100644 --- a/typedapi/types/enums/apikeygranttype/apikeygranttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package apikeygranttype package apikeygranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/grant_api_key/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/grant_api_key/types.ts#L47-L50 type ApiKeyGrantType struct { Name string } diff --git a/typedapi/types/enums/apikeytype/apikeytype.go b/typedapi/types/enums/apikeytype/apikeytype.go index b948742a59..f442a5f9cf 100644 --- a/typedapi/types/enums/apikeytype/apikeytype.go +++ b/typedapi/types/enums/apikeytype/apikeytype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package apikeytype package apikeytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/ApiKey.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/ApiKey.ts#L115-L118 type ApiKeyType struct { Name string } diff --git a/typedapi/types/enums/appliesto/appliesto.go b/typedapi/types/enums/appliesto/appliesto.go index 15778ee775..d05745c873 100644 --- a/typedapi/types/enums/appliesto/appliesto.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package appliesto package appliesto import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Rule.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Rule.ts#L67-L72 type AppliesTo struct { Name string } diff --git a/typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.go b/typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.go new file mode 100644 index 0000000000..906e2c599a --- /dev/null +++ b/typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package azureaistudioservicetype +package azureaistudioservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L504-L506 +type AzureAiStudioServiceType struct { + Name string +} + +var ( + Azureaistudio = AzureAiStudioServiceType{"azureaistudio"} +) + +func (a AzureAiStudioServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AzureAiStudioServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "azureaistudio": + *a = Azureaistudio + default: + *a = AzureAiStudioServiceType{string(text)} + } + + return nil +} + +func (a AzureAiStudioServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go b/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go new file mode 100644 index 0000000000..77bfd4893b --- /dev/null +++ b/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package azureaistudiotasktype +package azureaistudiotasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L499-L502 +type AzureAiStudioTaskType struct { + Name string +} + +var ( + Completion = AzureAiStudioTaskType{"completion"} + + Textembedding = AzureAiStudioTaskType{"text_embedding"} +) + +func (a AzureAiStudioTaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AzureAiStudioTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + case "text_embedding": + *a = Textembedding + default: + *a = AzureAiStudioTaskType{string(text)} + } + + return nil +} + +func (a AzureAiStudioTaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go b/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go new file mode 100644 index 0000000000..80edaad9da --- /dev/null +++ b/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package azureopenaiservicetype +package azureopenaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L568-L570 +type AzureOpenAIServiceType struct { + Name string +} + +var ( + Azureopenai = AzureOpenAIServiceType{"azureopenai"} +) + +func (a AzureOpenAIServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AzureOpenAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "azureopenai": + *a = Azureopenai + default: + *a = AzureOpenAIServiceType{string(text)} + } + + return nil +} + +func (a AzureOpenAIServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go b/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go new file mode 100644 index 0000000000..031d37bbb2 --- /dev/null +++ b/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package azureopenaitasktype +package azureopenaitasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L563-L566 +type AzureOpenAITaskType struct { + Name string +} + +var ( + Completion = AzureOpenAITaskType{"completion"} + + Textembedding = AzureOpenAITaskType{"text_embedding"} +) + +func (a AzureOpenAITaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AzureOpenAITaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + case "text_embedding": + *a = Textembedding + default: + *a = AzureOpenAITaskType{string(text)} + } + + return nil +} + +func (a AzureOpenAITaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/boundaryscanner/boundaryscanner.go b/typedapi/types/enums/boundaryscanner/boundaryscanner.go index 2e5d6b6426..7db7283e9b 100644 --- a/typedapi/types/enums/boundaryscanner/boundaryscanner.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package boundaryscanner package boundaryscanner import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/highlighting.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/highlighting.ts#L26-L45 type BoundaryScanner struct { Name string } diff --git a/typedapi/types/enums/bytes/bytes.go b/typedapi/types/enums/bytes/bytes.go index 61b0ac2842..6588fdb429 100644 --- a/typedapi/types/enums/bytes/bytes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package bytes package bytes import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L173-L185 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L173-L185 type Bytes struct { Name string } diff --git a/typedapi/types/enums/calendarinterval/calendarinterval.go b/typedapi/types/enums/calendarinterval/calendarinterval.go index f1958f709f..4f03f45c80 100644 --- a/typedapi/types/enums/calendarinterval/calendarinterval.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package calendarinterval package calendarinterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L262-L279 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L262-L279 type CalendarInterval struct { Name string } diff --git a/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go b/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go index 2ed08e3bdb..e95f636d46 100644 --- a/typedapi/types/enums/cardinalityexecutionmode/cardinalityexecutionmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package cardinalityexecutionmode package cardinalityexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L64-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L64-L85 type CardinalityExecutionMode struct { Name string } diff --git a/typedapi/types/enums/catanomalydetectorcolumn/catanomalydetectorcolumn.go b/typedapi/types/enums/catanomalydetectorcolumn/catanomalydetectorcolumn.go index 082457e48a..516458ccc9 100644 --- a/typedapi/types/enums/catanomalydetectorcolumn/catanomalydetectorcolumn.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package catanomalydetectorcolumn package catanomalydetectorcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L32-L401 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L32-L401 type CatAnomalyDetectorColumn struct { Name string } diff --git a/typedapi/types/enums/catdatafeedcolumn/catdatafeedcolumn.go b/typedapi/types/enums/catdatafeedcolumn/catdatafeedcolumn.go index 33a81106d7..b1b53300e2 100644 --- a/typedapi/types/enums/catdatafeedcolumn/catdatafeedcolumn.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package catdatafeedcolumn package catdatafeedcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L405-L471 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L405-L471 type CatDatafeedColumn struct { Name string } diff --git a/typedapi/types/enums/catdfacolumn/catdfacolumn.go b/typedapi/types/enums/catdfacolumn/catdfacolumn.go index 83c4e37105..c32ebc6d11 100644 --- a/typedapi/types/enums/catdfacolumn/catdfacolumn.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package catdfacolumn package catdfacolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L472-L557 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L472-L557 type CatDfaColumn struct { Name string } diff --git a/typedapi/types/enums/categorizationstatus/categorizationstatus.go b/typedapi/types/enums/categorizationstatus/categorizationstatus.go index ef3ce9e8bf..6477edc52d 100644 --- a/typedapi/types/enums/categorizationstatus/categorizationstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package categorizationstatus package categorizationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Model.ts#L84-L87 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Model.ts#L84-L87 type CategorizationStatus struct { Name string } diff --git a/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go b/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go index 50c8772ea0..3213f3bcfd 100644 --- a/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package cattrainedmodelscolumn package cattrainedmodelscolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L561-L635 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L561-L635 type CatTrainedModelsColumn struct { Name string } diff --git a/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go b/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go index b4145ff9fb..056707b484 100644 --- a/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package cattransformcolumn package cattransformcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/_types/CatBase.ts#L640-L844 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/_types/CatBase.ts#L640-L844 type CatTransformColumn struct { Name string } diff --git a/typedapi/types/enums/childscoremode/childscoremode.go b/typedapi/types/enums/childscoremode/childscoremode.go index 6dd2cdcc2e..b46014ee3f 100644 --- a/typedapi/types/enums/childscoremode/childscoremode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package childscoremode package childscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/joining.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/joining.ts#L25-L39 type ChildScoreMode struct { Name string } diff --git a/typedapi/types/enums/chunkingmode/chunkingmode.go b/typedapi/types/enums/chunkingmode/chunkingmode.go index 32e257d3c2..06334adb08 100644 --- a/typedapi/types/enums/chunkingmode/chunkingmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package chunkingmode package chunkingmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L245-L249 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L245-L249 type ChunkingMode struct { Name string } diff --git a/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go b/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go index 12e5076b45..9265f4fa41 100644 --- a/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package clusterinfotarget package clusterinfotarget import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L385-L391 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L385-L391 type ClusterInfoTarget struct { Name string } diff --git a/typedapi/types/enums/clusterprivilege/clusterprivilege.go b/typedapi/types/enums/clusterprivilege/clusterprivilege.go index 871ba902d9..5134520d40 100644 --- a/typedapi/types/enums/clusterprivilege/clusterprivilege.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package clusterprivilege package clusterprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L42-L199 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L42-L199 type ClusterPrivilege struct { Name string } diff --git a/typedapi/types/enums/clustersearchstatus/clustersearchstatus.go b/typedapi/types/enums/clustersearchstatus/clustersearchstatus.go index 6bc581bb47..db8fa8402c 100644 --- a/typedapi/types/enums/clustersearchstatus/clustersearchstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package clustersearchstatus package clustersearchstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L37-L43 type ClusterSearchStatus struct { Name string } diff --git a/typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.go b/typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.go new file mode 100644 index 0000000000..d98ea97c29 --- /dev/null +++ b/typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package cohereembeddingtype +package cohereembeddingtype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L625-L629 +type CohereEmbeddingType struct { + Name string +} + +var ( + Byte = CohereEmbeddingType{"byte"} + + Float = CohereEmbeddingType{"float"} + + Int8 = CohereEmbeddingType{"int8"} +) + +func (c CohereEmbeddingType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereEmbeddingType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "byte": + *c = Byte + case "float": + *c = Float + case "int8": + *c = Int8 + default: + *c = CohereEmbeddingType{string(text)} + } + + return nil +} + +func (c CohereEmbeddingType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/cohereinputtype/cohereinputtype.go b/typedapi/types/enums/cohereinputtype/cohereinputtype.go new file mode 100644 index 0000000000..1b1e164d88 --- /dev/null +++ b/typedapi/types/enums/cohereinputtype/cohereinputtype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package cohereinputtype +package cohereinputtype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L631-L636 +type CohereInputType struct { + Name string +} + +var ( + Classification = CohereInputType{"classification"} + + Clustering = CohereInputType{"clustering"} + + Ingest = CohereInputType{"ingest"} + + Search = CohereInputType{"search"} +) + +func (c CohereInputType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereInputType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "classification": + *c = Classification + case "clustering": + *c = Clustering + case "ingest": + *c = Ingest + case "search": + *c = Search + default: + *c = CohereInputType{string(text)} + } + + return nil +} + +func (c CohereInputType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/cohereservicetype/cohereservicetype.go b/typedapi/types/enums/cohereservicetype/cohereservicetype.go new file mode 100644 index 0000000000..ae9330fb9d --- /dev/null +++ b/typedapi/types/enums/cohereservicetype/cohereservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package cohereservicetype +package cohereservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L621-L623 +type CohereServiceType struct { + Name string +} + +var ( + Cohere = CohereServiceType{"cohere"} +) + +func (c CohereServiceType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "cohere": + *c = Cohere + default: + *c = CohereServiceType{string(text)} + } + + return nil +} + +func (c CohereServiceType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go b/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go new file mode 100644 index 0000000000..67e77895a4 --- /dev/null +++ b/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package coheresimilaritytype +package coheresimilaritytype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L638-L642 +type CohereSimilarityType struct { + Name string +} + +var ( + Cosine = CohereSimilarityType{"cosine"} + + Dotproduct = CohereSimilarityType{"dot_product"} + + L2norm = CohereSimilarityType{"l2_norm"} +) + +func (c CohereSimilarityType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereSimilarityType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "cosine": + *c = Cosine + case "dot_product": + *c = Dotproduct + case "l2_norm": + *c = L2norm + default: + *c = CohereSimilarityType{string(text)} + } + + return nil +} + +func (c CohereSimilarityType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/coheretasktype/coheretasktype.go b/typedapi/types/enums/coheretasktype/coheretasktype.go new file mode 100644 index 0000000000..9ebba1f633 --- /dev/null +++ b/typedapi/types/enums/coheretasktype/coheretasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package coheretasktype +package coheretasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L615-L619 +type CohereTaskType struct { + Name string +} + +var ( + Completion = CohereTaskType{"completion"} + + Rerank = CohereTaskType{"rerank"} + + Textembedding = CohereTaskType{"text_embedding"} +) + +func (c CohereTaskType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *c = Completion + case "rerank": + *c = Rerank + case "text_embedding": + *c = Textembedding + default: + *c = CohereTaskType{string(text)} + } + + return nil +} + +func (c CohereTaskType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go b/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go new file mode 100644 index 0000000000..679d185e7a --- /dev/null +++ b/typedapi/types/enums/coheretruncatetype/coheretruncatetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package coheretruncatetype +package coheretruncatetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L644-L648 +type CohereTruncateType struct { + Name string +} + +var ( + END = CohereTruncateType{"END"} + + NONE = CohereTruncateType{"NONE"} + + START = CohereTruncateType{"START"} +) + +func (c CohereTruncateType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereTruncateType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "end": + *c = END + case "none": + *c = NONE + case "start": + *c = START + default: + *c = CohereTruncateType{string(text)} + } + + return nil +} + +func (c CohereTruncateType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go b/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go index d1425dd147..8037307818 100644 --- a/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package combinedfieldsoperator package combinedfieldsoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/abstractions.ts#L519-L522 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/abstractions.ts#L519-L522 type CombinedFieldsOperator struct { Name string } diff --git a/typedapi/types/enums/combinedfieldszeroterms/combinedfieldszeroterms.go b/typedapi/types/enums/combinedfieldszeroterms/combinedfieldszeroterms.go index f6878f6b30..da56d69e20 100644 --- a/typedapi/types/enums/combinedfieldszeroterms/combinedfieldszeroterms.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package combinedfieldszeroterms package combinedfieldszeroterms import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/abstractions.ts#L524-L533 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/abstractions.ts#L524-L533 type CombinedFieldsZeroTerms struct { Name string } diff --git a/typedapi/types/enums/conditionop/conditionop.go b/typedapi/types/enums/conditionop/conditionop.go index f2e4f448d2..eb53ff0ba7 100644 --- a/typedapi/types/enums/conditionop/conditionop.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package conditionop package conditionop import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L41-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L41-L48 type ConditionOp struct { Name string } diff --git a/typedapi/types/enums/conditionoperator/conditionoperator.go b/typedapi/types/enums/conditionoperator/conditionoperator.go index e36df31982..f585f93e8a 100644 --- a/typedapi/types/enums/conditionoperator/conditionoperator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package conditionoperator package conditionoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Rule.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Rule.ts#L74-L79 type ConditionOperator struct { Name string } diff --git a/typedapi/types/enums/conditiontype/conditiontype.go b/typedapi/types/enums/conditiontype/conditiontype.go index 245f7d3430..d828ad3d83 100644 --- a/typedapi/types/enums/conditiontype/conditiontype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package conditiontype package conditiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L64-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L64-L70 type ConditionType struct { Name string } diff --git a/typedapi/types/enums/conflicts/conflicts.go b/typedapi/types/enums/conflicts/conflicts.go index 664292b88e..9a1e9b2d16 100644 --- a/typedapi/types/enums/conflicts/conflicts.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package conflicts package conflicts import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L187-L196 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L187-L196 type Conflicts struct { Name string } diff --git a/typedapi/types/enums/connectionscheme/connectionscheme.go b/typedapi/types/enums/connectionscheme/connectionscheme.go index 32d04fd232..25d73af0fa 100644 --- a/typedapi/types/enums/connectionscheme/connectionscheme.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package connectionscheme package connectionscheme import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L39-L42 type ConnectionScheme struct { Name string } diff --git a/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go b/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go index 604721f0bd..403aebf51a 100644 --- a/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go +++ b/typedapi/types/enums/connectorfieldtype/connectorfieldtype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package connectorfieldtype package connectorfieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L43-L48 type ConnectorFieldType struct { Name string } diff --git a/typedapi/types/enums/connectorstatus/connectorstatus.go b/typedapi/types/enums/connectorstatus/connectorstatus.go index 79a5af58eb..15366c97e8 100644 --- a/typedapi/types/enums/connectorstatus/connectorstatus.go +++ b/typedapi/types/enums/connectorstatus/connectorstatus.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package connectorstatus package connectorstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L130-L136 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L130-L136 type ConnectorStatus struct { Name string } diff --git a/typedapi/types/enums/converttype/converttype.go b/typedapi/types/enums/converttype/converttype.go index 98b8a1694c..e27296986f 100644 --- a/typedapi/types/enums/converttype/converttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package converttype package converttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L661-L670 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L661-L670 type ConvertType struct { Name string } diff --git a/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go b/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go index c68355d675..86078b76ad 100644 --- a/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package dataattachmentformat package dataattachmentformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L187-L190 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L187-L190 type DataAttachmentFormat struct { Name string } diff --git a/typedapi/types/enums/datafeedstate/datafeedstate.go b/typedapi/types/enums/datafeedstate/datafeedstate.go index 36510269ab..2066977f94 100644 --- a/typedapi/types/enums/datafeedstate/datafeedstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package datafeedstate package datafeedstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L136-L141 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L136-L141 type DatafeedState struct { Name string } diff --git a/typedapi/types/enums/dataframestate/dataframestate.go b/typedapi/types/enums/dataframestate/dataframestate.go index 243b553afc..c9dc880903 100644 --- a/typedapi/types/enums/dataframestate/dataframestate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package dataframestate package dataframestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Dataframe.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Dataframe.ts#L20-L26 type DataframeState struct { Name string } diff --git a/typedapi/types/enums/day/day.go b/typedapi/types/enums/day/day.go index df3bf2dc9b..98ae37d980 100644 --- a/typedapi/types/enums/day/day.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package day package day import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L37-L45 type Day struct { Name string } diff --git a/typedapi/types/enums/decision/decision.go b/typedapi/types/enums/decision/decision.go index 1f800b4013..6dba2d00e1 100644 --- a/typedapi/types/enums/decision/decision.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package decision package decision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L92-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L92-L101 type Decision struct { Name string } diff --git a/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go b/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go index 70e284d184..43d6439290 100644 --- a/typedapi/types/enums/delimitedpayloadencoding/delimitedpayloadencoding.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package delimitedpayloadencoding package delimitedpayloadencoding import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L61-L65 type DelimitedPayloadEncoding struct { Name string } diff --git a/typedapi/types/enums/densevectorelementtype/densevectorelementtype.go b/typedapi/types/enums/densevectorelementtype/densevectorelementtype.go index 40bed7a2e8..4fa88ddf59 100644 --- a/typedapi/types/enums/densevectorelementtype/densevectorelementtype.go +++ b/typedapi/types/enums/densevectorelementtype/densevectorelementtype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package densevectorelementtype package densevectorelementtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/DenseVectorProperty.ts#L64-L80 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/DenseVectorProperty.ts#L64-L80 type DenseVectorElementType struct { Name string } diff --git a/typedapi/types/enums/densevectorindexoptionstype/densevectorindexoptionstype.go b/typedapi/types/enums/densevectorindexoptionstype/densevectorindexoptionstype.go index 7314a609c9..67dc14e757 100644 --- a/typedapi/types/enums/densevectorindexoptionstype/densevectorindexoptionstype.go +++ b/typedapi/types/enums/densevectorindexoptionstype/densevectorindexoptionstype.go @@ -16,19 +16,23 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package densevectorindexoptionstype package densevectorindexoptionstype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/DenseVectorProperty.ts#L164-L197 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/DenseVectorProperty.ts#L164-L209 type DenseVectorIndexOptionsType struct { Name string } var ( + Bbqflat = DenseVectorIndexOptionsType{"bbq_flat"} + + Bbqhnsw = DenseVectorIndexOptionsType{"bbq_hnsw"} + Flat = DenseVectorIndexOptionsType{"flat"} Hnsw = DenseVectorIndexOptionsType{"hnsw"} @@ -49,6 +53,10 @@ func (d DenseVectorIndexOptionsType) MarshalText() (text []byte, err error) { func (d *DenseVectorIndexOptionsType) UnmarshalText(text []byte) error { switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + case "bbq_flat": + *d = Bbqflat + case "bbq_hnsw": + *d = Bbqhnsw case "flat": *d = Flat case "hnsw": diff --git a/typedapi/types/enums/densevectorsimilarity/densevectorsimilarity.go b/typedapi/types/enums/densevectorsimilarity/densevectorsimilarity.go index 68be60c809..5fe23d4517 100644 --- a/typedapi/types/enums/densevectorsimilarity/densevectorsimilarity.go +++ b/typedapi/types/enums/densevectorsimilarity/densevectorsimilarity.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package densevectorsimilarity package densevectorsimilarity import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/DenseVectorProperty.ts#L82-L127 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/DenseVectorProperty.ts#L82-L127 type DenseVectorSimilarity struct { Name string } diff --git a/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go b/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go index a25a5bfbad..a6ecaafb7d 100644 --- a/typedapi/types/enums/deploymentallocationstate/deploymentallocationstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package deploymentallocationstate package deploymentallocationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L330-L343 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L331-L344 type DeploymentAllocationState struct { Name string } diff --git a/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go b/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go index 83d6b05d47..ab2a985067 100644 --- a/typedapi/types/enums/deploymentassignmentstate/deploymentassignmentstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package deploymentassignmentstate package deploymentassignmentstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L345-L362 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L346-L363 type DeploymentAssignmentState struct { Name string } diff --git a/typedapi/types/enums/deprecationlevel/deprecationlevel.go b/typedapi/types/enums/deprecationlevel/deprecationlevel.go index 50567c1d6c..b0bc23573b 100644 --- a/typedapi/types/enums/deprecationlevel/deprecationlevel.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package deprecationlevel package deprecationlevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/deprecations/types.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/migration/deprecations/types.ts#L23-L30 type DeprecationLevel struct { Name string } diff --git a/typedapi/types/enums/dfiindependencemeasure/dfiindependencemeasure.go b/typedapi/types/enums/dfiindependencemeasure/dfiindependencemeasure.go index fd28271e6f..65bf65c9f6 100644 --- a/typedapi/types/enums/dfiindependencemeasure/dfiindependencemeasure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package dfiindependencemeasure package dfiindependencemeasure import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Similarity.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Similarity.ts#L20-L24 type DFIIndependenceMeasure struct { Name string } diff --git a/typedapi/types/enums/dfraftereffect/dfraftereffect.go b/typedapi/types/enums/dfraftereffect/dfraftereffect.go index 4bcb7edf64..f1ecf0f57c 100644 --- a/typedapi/types/enums/dfraftereffect/dfraftereffect.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package dfraftereffect package dfraftereffect import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Similarity.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Similarity.ts#L26-L30 type DFRAfterEffect struct { Name string } diff --git a/typedapi/types/enums/dfrbasicmodel/dfrbasicmodel.go b/typedapi/types/enums/dfrbasicmodel/dfrbasicmodel.go index 808b90022a..7b02b18423 100644 --- a/typedapi/types/enums/dfrbasicmodel/dfrbasicmodel.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package dfrbasicmodel package dfrbasicmodel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Similarity.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Similarity.ts#L32-L40 type DFRBasicModel struct { Name string } diff --git a/typedapi/types/enums/displaytype/displaytype.go b/typedapi/types/enums/displaytype/displaytype.go index 1d0fedc5fb..3d927c342c 100644 --- a/typedapi/types/enums/displaytype/displaytype.go +++ b/typedapi/types/enums/displaytype/displaytype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package displaytype package displaytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L35-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L35-L41 type DisplayType struct { Name string } diff --git a/typedapi/types/enums/distanceunit/distanceunit.go b/typedapi/types/enums/distanceunit/distanceunit.go index 58b8e16caf..29761b242d 100644 --- a/typedapi/types/enums/distanceunit/distanceunit.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package distanceunit package distanceunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L30-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L30-L40 type DistanceUnit struct { Name string } diff --git a/typedapi/types/enums/dynamicmapping/dynamicmapping.go b/typedapi/types/enums/dynamicmapping/dynamicmapping.go index 51bf9915e1..0e95f19e08 100644 --- a/typedapi/types/enums/dynamicmapping/dynamicmapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package dynamicmapping package dynamicmapping import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/dynamic-template.ts#L50-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/dynamic-template.ts#L50-L59 type DynamicMapping struct { Name string } diff --git a/typedapi/types/enums/ecscompatibilitytype/ecscompatibilitytype.go b/typedapi/types/enums/ecscompatibilitytype/ecscompatibilitytype.go index 3325e17530..70e993b736 100644 --- a/typedapi/types/enums/ecscompatibilitytype/ecscompatibilitytype.go +++ b/typedapi/types/enums/ecscompatibilitytype/ecscompatibilitytype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package ecscompatibilitytype package ecscompatibilitytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/_types/Structure.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/_types/Structure.ts#L40-L43 type EcsCompatibilityType struct { Name string } diff --git a/typedapi/types/enums/edgengramside/edgengramside.go b/typedapi/types/enums/edgengramside/edgengramside.go index d439e8f67a..bc1a9cdacc 100644 --- a/typedapi/types/enums/edgengramside/edgengramside.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package edgengramside package edgengramside import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L73-L76 type EdgeNGramSide struct { Name string } diff --git a/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go b/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go new file mode 100644 index 0000000000..517fa383a5 --- /dev/null +++ b/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package elasticsearchservicetype +package elasticsearchservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L754-L756 +type ElasticsearchServiceType struct { + Name string +} + +var ( + Elasticsearch = ElasticsearchServiceType{"elasticsearch"} +) + +func (e ElasticsearchServiceType) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil +} + +func (e *ElasticsearchServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "elasticsearch": + *e = Elasticsearch + default: + *e = ElasticsearchServiceType{string(text)} + } + + return nil +} + +func (e ElasticsearchServiceType) String() string { + return e.Name +} diff --git a/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go b/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go new file mode 100644 index 0000000000..f1741b2496 --- /dev/null +++ b/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package elasticsearchtasktype +package elasticsearchtasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L748-L752 +type ElasticsearchTaskType struct { + Name string +} + +var ( + Rerank = ElasticsearchTaskType{"rerank"} + + Sparseembedding = ElasticsearchTaskType{"sparse_embedding"} + + Textembedding = ElasticsearchTaskType{"text_embedding"} +) + +func (e ElasticsearchTaskType) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil +} + +func (e *ElasticsearchTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "rerank": + *e = Rerank + case "sparse_embedding": + *e = Sparseembedding + case "text_embedding": + *e = Textembedding + default: + *e = ElasticsearchTaskType{string(text)} + } + + return nil +} + +func (e ElasticsearchTaskType) String() string { + return e.Name +} diff --git a/typedapi/types/enums/servicetype/servicetype.go b/typedapi/types/enums/elserservicetype/elserservicetype.go similarity index 60% rename from typedapi/types/enums/servicetype/servicetype.go rename to typedapi/types/enums/elserservicetype/elserservicetype.go index 2b1a933c45..aafb5d1a46 100644 --- a/typedapi/types/enums/servicetype/servicetype.go +++ b/typedapi/types/enums/elserservicetype/elserservicetype.go @@ -16,38 +16,38 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 -// Package servicetype -package servicetype +// Package elserservicetype +package elserservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_watsonx/PutWatsonxRequest.ts#L76-L78 -type ServiceType struct { +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L790-L792 +type ElserServiceType struct { Name string } var ( - Watsonxai = ServiceType{"watsonxai"} + Elser = ElserServiceType{"elser"} ) -func (s ServiceType) MarshalText() (text []byte, err error) { - return []byte(s.String()), nil +func (e ElserServiceType) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil } -func (s *ServiceType) UnmarshalText(text []byte) error { +func (e *ElserServiceType) UnmarshalText(text []byte) error { switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { - case "watsonxai": - *s = Watsonxai + case "elser": + *e = Elser default: - *s = ServiceType{string(text)} + *e = ElserServiceType{string(text)} } return nil } -func (s ServiceType) String() string { - return s.Name +func (e ElserServiceType) String() string { + return e.Name } diff --git a/typedapi/types/enums/elsertasktype/elsertasktype.go b/typedapi/types/enums/elsertasktype/elsertasktype.go new file mode 100644 index 0000000000..17d59f5023 --- /dev/null +++ b/typedapi/types/enums/elsertasktype/elsertasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package elsertasktype +package elsertasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L786-L788 +type ElserTaskType struct { + Name string +} + +var ( + Sparseembedding = ElserTaskType{"sparse_embedding"} +) + +func (e ElserTaskType) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil +} + +func (e *ElserTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "sparse_embedding": + *e = Sparseembedding + default: + *e = ElserTaskType{string(text)} + } + + return nil +} + +func (e ElserTaskType) String() string { + return e.Name +} diff --git a/typedapi/types/enums/emailpriority/emailpriority.go b/typedapi/types/enums/emailpriority/emailpriority.go index f612c3d212..439b3ea905 100644 --- a/typedapi/types/enums/emailpriority/emailpriority.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package emailpriority package emailpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L197-L203 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L197-L203 type EmailPriority struct { Name string } diff --git a/typedapi/types/enums/enrichpolicyphase/enrichpolicyphase.go b/typedapi/types/enums/enrichpolicyphase/enrichpolicyphase.go index 599d308707..c29e36cf1e 100644 --- a/typedapi/types/enums/enrichpolicyphase/enrichpolicyphase.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package enrichpolicyphase package enrichpolicyphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/execute_policy/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/execute_policy/types.ts#L25-L31 type EnrichPolicyPhase struct { Name string } @@ -36,6 +36,8 @@ var ( COMPLETE = EnrichPolicyPhase{"COMPLETE"} FAILED = EnrichPolicyPhase{"FAILED"} + + CANCELLED = EnrichPolicyPhase{"CANCELLED"} ) func (e EnrichPolicyPhase) MarshalText() (text []byte, err error) { @@ -53,6 +55,8 @@ func (e *EnrichPolicyPhase) UnmarshalText(text []byte) error { *e = COMPLETE case "failed": *e = FAILED + case "cancelled": + *e = CANCELLED default: *e = EnrichPolicyPhase{string(text)} } diff --git a/typedapi/types/enums/esqlformat/esqlformat.go b/typedapi/types/enums/esqlformat/esqlformat.go index c907851e6c..6c58909b1a 100644 --- a/typedapi/types/enums/esqlformat/esqlformat.go +++ b/typedapi/types/enums/esqlformat/esqlformat.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package esqlformat package esqlformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/query/QueryParameters.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/query/QueryParameters.ts#L20-L29 type EsqlFormat struct { Name string } diff --git a/typedapi/types/enums/eventtype/eventtype.go b/typedapi/types/enums/eventtype/eventtype.go index 95a2d7c8d7..af7d251921 100644 --- a/typedapi/types/enums/eventtype/eventtype.go +++ b/typedapi/types/enums/eventtype/eventtype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package eventtype package eventtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/_types/AnalyticsEvent.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/_types/AnalyticsEvent.ts#L22-L26 type EventType struct { Name string } diff --git a/typedapi/types/enums/excludefrequent/excludefrequent.go b/typedapi/types/enums/excludefrequent/excludefrequent.go index 10fb7a96a5..c97c5f1a47 100644 --- a/typedapi/types/enums/excludefrequent/excludefrequent.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package excludefrequent package excludefrequent import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Detector.ts#L145-L150 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Detector.ts#L145-L150 type ExcludeFrequent struct { Name string } diff --git a/typedapi/types/enums/executionphase/executionphase.go b/typedapi/types/enums/executionphase/executionphase.go index f43cae1be0..da14ab911f 100644 --- a/typedapi/types/enums/executionphase/executionphase.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package executionphase package executionphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Execution.ts#L49-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Execution.ts#L49-L58 type ExecutionPhase struct { Name string } diff --git a/typedapi/types/enums/executionstatus/executionstatus.go b/typedapi/types/enums/executionstatus/executionstatus.go index 4379a154a0..1c1032975d 100644 --- a/typedapi/types/enums/executionstatus/executionstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package executionstatus package executionstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Execution.ts#L38-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Execution.ts#L38-L47 type ExecutionStatus struct { Name string } diff --git a/typedapi/types/enums/expandwildcard/expandwildcard.go b/typedapi/types/enums/expandwildcard/expandwildcard.go index 9ccde066c6..75cea43dfe 100644 --- a/typedapi/types/enums/expandwildcard/expandwildcard.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package expandwildcard package expandwildcard import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L205-L219 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L205-L219 type ExpandWildcard struct { Name string } diff --git a/typedapi/types/enums/failurestorestatus/failurestorestatus.go b/typedapi/types/enums/failurestorestatus/failurestorestatus.go index 4208c7c452..81c0b9ec37 100644 --- a/typedapi/types/enums/failurestorestatus/failurestorestatus.go +++ b/typedapi/types/enums/failurestorestatus/failurestorestatus.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package failurestorestatus package failurestorestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L86-L91 type FailureStoreStatus struct { Name string } diff --git a/typedapi/types/enums/feature/feature.go b/typedapi/types/enums/feature/feature.go index a11aa786a8..025e2e3d59 100644 --- a/typedapi/types/enums/feature/feature.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package feature package feature import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get/IndicesGetRequest.ts#L98-L102 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get/IndicesGetRequest.ts#L98-L102 type Feature struct { Name string } diff --git a/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go b/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go index ed96581cc2..6f6eeb6510 100644 --- a/typedapi/types/enums/fieldsortnumerictype/fieldsortnumerictype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package fieldsortnumerictype package fieldsortnumerictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L36-L41 type FieldSortNumericType struct { Name string } diff --git a/typedapi/types/enums/fieldtype/fieldtype.go b/typedapi/types/enums/fieldtype/fieldtype.go index b682f86c5d..e7a3024556 100644 --- a/typedapi/types/enums/fieldtype/fieldtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package fieldtype package fieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/Property.ts#L191-L240 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/Property.ts#L191-L240 type FieldType struct { Name string } diff --git a/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go b/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go index 66985466b7..c0b7892ace 100644 --- a/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package fieldvaluefactormodifier package fieldvaluefactormodifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L323-L366 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L323-L366 type FieldValueFactorModifier struct { Name string } diff --git a/typedapi/types/enums/filteringpolicy/filteringpolicy.go b/typedapi/types/enums/filteringpolicy/filteringpolicy.go index 4398958dbe..c7a729be56 100644 --- a/typedapi/types/enums/filteringpolicy/filteringpolicy.go +++ b/typedapi/types/enums/filteringpolicy/filteringpolicy.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package filteringpolicy package filteringpolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L155-L158 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L155-L158 type FilteringPolicy struct { Name string } diff --git a/typedapi/types/enums/filteringrulerule/filteringrulerule.go b/typedapi/types/enums/filteringrulerule/filteringrulerule.go index e0fcc823cb..b2f63ce091 100644 --- a/typedapi/types/enums/filteringrulerule/filteringrulerule.go +++ b/typedapi/types/enums/filteringrulerule/filteringrulerule.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package filteringrulerule package filteringrulerule import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L160-L168 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L160-L168 type FilteringRuleRule struct { Name string } diff --git a/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go b/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go index c5f25aa737..e9cd904a7d 100644 --- a/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go +++ b/typedapi/types/enums/filteringvalidationstate/filteringvalidationstate.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package filteringvalidationstate package filteringvalidationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L186-L190 type FilteringValidationState struct { Name string } diff --git a/typedapi/types/enums/filtertype/filtertype.go b/typedapi/types/enums/filtertype/filtertype.go index 73306cac46..9305bbf1d4 100644 --- a/typedapi/types/enums/filtertype/filtertype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package filtertype package filtertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Filter.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Filter.ts#L43-L46 type FilterType struct { Name string } diff --git a/typedapi/types/enums/fingerprintdigest/fingerprintdigest.go b/typedapi/types/enums/fingerprintdigest/fingerprintdigest.go index acd2151af1..8cdd78b356 100644 --- a/typedapi/types/enums/fingerprintdigest/fingerprintdigest.go +++ b/typedapi/types/enums/fingerprintdigest/fingerprintdigest.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package fingerprintdigest package fingerprintdigest import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L896-L902 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L896-L902 type FingerprintDigest struct { Name string } diff --git a/typedapi/types/enums/followerindexstatus/followerindexstatus.go b/typedapi/types/enums/followerindexstatus/followerindexstatus.go index 0bd2562481..d3b16ef59f 100644 --- a/typedapi/types/enums/followerindexstatus/followerindexstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package followerindexstatus package followerindexstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/follow_info/types.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/follow_info/types.ts#L37-L40 type FollowerIndexStatus struct { Name string } diff --git a/typedapi/types/enums/formattype/formattype.go b/typedapi/types/enums/formattype/formattype.go index f1667ef4e5..aa9366c6c5 100644 --- a/typedapi/types/enums/formattype/formattype.go +++ b/typedapi/types/enums/formattype/formattype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package formattype package formattype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/_types/Structure.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/_types/Structure.ts#L45-L50 type FormatType struct { Name string } diff --git a/typedapi/types/enums/functionboostmode/functionboostmode.go b/typedapi/types/enums/functionboostmode/functionboostmode.go index 83f9158291..01bd71849e 100644 --- a/typedapi/types/enums/functionboostmode/functionboostmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package functionboostmode package functionboostmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L295-L321 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L295-L321 type FunctionBoostMode struct { Name string } diff --git a/typedapi/types/enums/functionscoremode/functionscoremode.go b/typedapi/types/enums/functionscoremode/functionscoremode.go index 73b1181239..21700a7197 100644 --- a/typedapi/types/enums/functionscoremode/functionscoremode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package functionscoremode package functionscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L268-L293 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L268-L293 type FunctionScoreMode struct { Name string } diff --git a/typedapi/types/enums/gappolicy/gappolicy.go b/typedapi/types/enums/gappolicy/gappolicy.go index 59a3be34a8..5e288d81d6 100644 --- a/typedapi/types/enums/gappolicy/gappolicy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package gappolicy package gappolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L61-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L61-L76 type GapPolicy struct { Name string } diff --git a/typedapi/types/enums/geodistancetype/geodistancetype.go b/typedapi/types/enums/geodistancetype/geodistancetype.go index 11815aeb4a..2c7d04329a 100644 --- a/typedapi/types/enums/geodistancetype/geodistancetype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package geodistancetype package geodistancetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L42-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L42-L51 type GeoDistanceType struct { Name string } diff --git a/typedapi/types/enums/geoexecution/geoexecution.go b/typedapi/types/enums/geoexecution/geoexecution.go index fe6ba53b63..14e11e0fb5 100644 --- a/typedapi/types/enums/geoexecution/geoexecution.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package geoexecution package geoexecution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L59-L62 type GeoExecution struct { Name string } diff --git a/typedapi/types/enums/geogridtargetformat/geogridtargetformat.go b/typedapi/types/enums/geogridtargetformat/geogridtargetformat.go index a9ae757d0f..a8eb04f662 100644 --- a/typedapi/types/enums/geogridtargetformat/geogridtargetformat.go +++ b/typedapi/types/enums/geogridtargetformat/geogridtargetformat.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package geogridtargetformat package geogridtargetformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L437-L440 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L437-L440 type GeoGridTargetFormat struct { Name string } diff --git a/typedapi/types/enums/geogridtiletype/geogridtiletype.go b/typedapi/types/enums/geogridtiletype/geogridtiletype.go index 53301097ce..88eb1ec7d5 100644 --- a/typedapi/types/enums/geogridtiletype/geogridtiletype.go +++ b/typedapi/types/enums/geogridtiletype/geogridtiletype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package geogridtiletype package geogridtiletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L431-L435 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L431-L435 type GeoGridTileType struct { Name string } diff --git a/typedapi/types/enums/geoorientation/geoorientation.go b/typedapi/types/enums/geoorientation/geoorientation.go index 3382298b41..38f60cc75a 100644 --- a/typedapi/types/enums/geoorientation/geoorientation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package geoorientation package geoorientation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/geo.ts#L34-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/geo.ts#L34-L39 type GeoOrientation struct { Name string } diff --git a/typedapi/types/enums/geoshaperelation/geoshaperelation.go b/typedapi/types/enums/geoshaperelation/geoshaperelation.go index 08412bd8d9..eade0ea507 100644 --- a/typedapi/types/enums/geoshaperelation/geoshaperelation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package geoshaperelation package geoshaperelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L64-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L64-L82 type GeoShapeRelation struct { Name string } diff --git a/typedapi/types/enums/geostrategy/geostrategy.go b/typedapi/types/enums/geostrategy/geostrategy.go index 89172ce902..0b2095172c 100644 --- a/typedapi/types/enums/geostrategy/geostrategy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package geostrategy package geostrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/geo.ts#L56-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/geo.ts#L57-L60 type GeoStrategy struct { Name string } diff --git a/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go b/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go index 7e88a38ab4..52c9b6ba26 100644 --- a/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package geovalidationmethod package geovalidationmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L173-L183 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L173-L183 type GeoValidationMethod struct { Name string } diff --git a/typedapi/types/enums/googleaiservicetype/googleaiservicetype.go b/typedapi/types/enums/googleaiservicetype/googleaiservicetype.go new file mode 100644 index 0000000000..3449929796 --- /dev/null +++ b/typedapi/types/enums/googleaiservicetype/googleaiservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package googleaiservicetype +package googleaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L817-L819 +type GoogleAiServiceType struct { + Name string +} + +var ( + Googleaistudio = GoogleAiServiceType{"googleaistudio"} +) + +func (g GoogleAiServiceType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GoogleAiServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "googleaistudio": + *g = Googleaistudio + default: + *g = GoogleAiServiceType{string(text)} + } + + return nil +} + +func (g GoogleAiServiceType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go b/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go new file mode 100644 index 0000000000..5e4d778396 --- /dev/null +++ b/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package googleaistudiotasktype +package googleaistudiotasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L812-L815 +type GoogleAiStudioTaskType struct { + Name string +} + +var ( + Completion = GoogleAiStudioTaskType{"completion"} + + Textembedding = GoogleAiStudioTaskType{"text_embedding"} +) + +func (g GoogleAiStudioTaskType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GoogleAiStudioTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *g = Completion + case "text_embedding": + *g = Textembedding + default: + *g = GoogleAiStudioTaskType{string(text)} + } + + return nil +} + +func (g GoogleAiStudioTaskType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go b/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go new file mode 100644 index 0000000000..459e5d11db --- /dev/null +++ b/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package googlevertexaiservicetype +package googlevertexaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L865-L867 +type GoogleVertexAIServiceType struct { + Name string +} + +var ( + Googlevertexai = GoogleVertexAIServiceType{"googlevertexai"} +) + +func (g GoogleVertexAIServiceType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GoogleVertexAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "googlevertexai": + *g = Googlevertexai + default: + *g = GoogleVertexAIServiceType{string(text)} + } + + return nil +} + +func (g GoogleVertexAIServiceType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go b/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go new file mode 100644 index 0000000000..0d41a82d0f --- /dev/null +++ b/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package googlevertexaitasktype +package googlevertexaitasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L860-L863 +type GoogleVertexAITaskType struct { + Name string +} + +var ( + Rerank = GoogleVertexAITaskType{"rerank"} + + Textembedding = GoogleVertexAITaskType{"text_embedding"} +) + +func (g GoogleVertexAITaskType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GoogleVertexAITaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "rerank": + *g = Rerank + case "text_embedding": + *g = Textembedding + default: + *g = GoogleVertexAITaskType{string(text)} + } + + return nil +} + +func (g GoogleVertexAITaskType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/granttype/granttype.go b/typedapi/types/enums/granttype/granttype.go index e0041510cf..42f6426117 100644 --- a/typedapi/types/enums/granttype/granttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package granttype package granttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/GrantType.ts#L20-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/GrantType.ts#L20-L30 type GrantType struct { Name string } diff --git a/typedapi/types/enums/gridaggregationtype/gridaggregationtype.go b/typedapi/types/enums/gridaggregationtype/gridaggregationtype.go index 20a73c2ab8..8fd7f13dd3 100644 --- a/typedapi/types/enums/gridaggregationtype/gridaggregationtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package gridaggregationtype package gridaggregationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_mvt/_types/GridType.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search_mvt/_types/GridType.ts#L30-L33 type GridAggregationType struct { Name string } diff --git a/typedapi/types/enums/gridtype/gridtype.go b/typedapi/types/enums/gridtype/gridtype.go index 40e9835e1b..50ef30b820 100644 --- a/typedapi/types/enums/gridtype/gridtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package gridtype package gridtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_mvt/_types/GridType.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search_mvt/_types/GridType.ts#L20-L28 type GridType struct { Name string } diff --git a/typedapi/types/enums/groupby/groupby.go b/typedapi/types/enums/groupby/groupby.go index 39bac1c487..eb7f9d94e6 100644 --- a/typedapi/types/enums/groupby/groupby.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package groupby package groupby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/tasks/_types/GroupBy.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/tasks/_types/GroupBy.ts#L20-L27 type GroupBy struct { Name string } diff --git a/typedapi/types/enums/healthstatus/healthstatus.go b/typedapi/types/enums/healthstatus/healthstatus.go index 9b10e0c895..af4decfdcc 100644 --- a/typedapi/types/enums/healthstatus/healthstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package healthstatus package healthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L223-L243 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L223-L243 type HealthStatus struct { Name string } diff --git a/typedapi/types/enums/highlighterencoder/highlighterencoder.go b/typedapi/types/enums/highlighterencoder/highlighterencoder.go index 07737e5479..084a0d83bb 100644 --- a/typedapi/types/enums/highlighterencoder/highlighterencoder.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package highlighterencoder package highlighterencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/highlighting.ts#L157-L160 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/highlighting.ts#L157-L160 type HighlighterEncoder struct { Name string } diff --git a/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go b/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go index ae224ec21f..e8654ffda5 100644 --- a/typedapi/types/enums/highlighterfragmenter/highlighterfragmenter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package highlighterfragmenter package highlighterfragmenter import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/highlighting.ts#L162-L165 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/highlighting.ts#L162-L165 type HighlighterFragmenter struct { Name string } diff --git a/typedapi/types/enums/highlighterorder/highlighterorder.go b/typedapi/types/enums/highlighterorder/highlighterorder.go index 125d1b4d73..62ce77c331 100644 --- a/typedapi/types/enums/highlighterorder/highlighterorder.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package highlighterorder package highlighterorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/highlighting.ts#L167-L169 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/highlighting.ts#L167-L169 type HighlighterOrder struct { Name string } diff --git a/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go b/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go index 0b3ea30824..ef2a339d4e 100644 --- a/typedapi/types/enums/highlightertagsschema/highlightertagsschema.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package highlightertagsschema package highlightertagsschema import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/highlighting.ts#L171-L173 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/highlighting.ts#L171-L173 type HighlighterTagsSchema struct { Name string } diff --git a/typedapi/types/enums/highlightertype/highlightertype.go b/typedapi/types/enums/highlightertype/highlightertype.go index 23ae796042..0eaa3a76df 100644 --- a/typedapi/types/enums/highlightertype/highlightertype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package highlightertype package highlightertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/highlighting.ts#L175-L190 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/highlighting.ts#L175-L190 type HighlighterType struct { Name string } diff --git a/typedapi/types/enums/holtwinterstype/holtwinterstype.go b/typedapi/types/enums/holtwinterstype/holtwinterstype.go index 36eea5ed03..19cabd0b67 100644 --- a/typedapi/types/enums/holtwinterstype/holtwinterstype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package holtwinterstype package holtwinterstype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L309-L312 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L309-L312 type HoltWintersType struct { Name string } diff --git a/typedapi/types/enums/httpinputmethod/httpinputmethod.go b/typedapi/types/enums/httpinputmethod/httpinputmethod.go index 7ab3c7e6f3..c62d35ca9f 100644 --- a/typedapi/types/enums/httpinputmethod/httpinputmethod.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package httpinputmethod package httpinputmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L59-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L59-L65 type HttpInputMethod struct { Name string } diff --git a/typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.go b/typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.go new file mode 100644 index 0000000000..553d2c24ab --- /dev/null +++ b/typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package huggingfaceservicetype +package huggingfaceservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L896-L898 +type HuggingFaceServiceType struct { + Name string +} + +var ( + Huggingface = HuggingFaceServiceType{"hugging_face"} +) + +func (h HuggingFaceServiceType) MarshalText() (text []byte, err error) { + return []byte(h.String()), nil +} + +func (h *HuggingFaceServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "hugging_face": + *h = Huggingface + default: + *h = HuggingFaceServiceType{string(text)} + } + + return nil +} + +func (h HuggingFaceServiceType) String() string { + return h.Name +} diff --git a/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go b/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go new file mode 100644 index 0000000000..d53eec381b --- /dev/null +++ b/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package huggingfacetasktype +package huggingfacetasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L892-L894 +type HuggingFaceTaskType struct { + Name string +} + +var ( + Textembedding = HuggingFaceTaskType{"text_embedding"} +) + +func (h HuggingFaceTaskType) MarshalText() (text []byte, err error) { + return []byte(h.String()), nil +} + +func (h *HuggingFaceTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *h = Textembedding + default: + *h = HuggingFaceTaskType{string(text)} + } + + return nil +} + +func (h HuggingFaceTaskType) String() string { + return h.Name +} diff --git a/typedapi/types/enums/ibdistribution/ibdistribution.go b/typedapi/types/enums/ibdistribution/ibdistribution.go index 25ceaacba1..bc44600eba 100644 --- a/typedapi/types/enums/ibdistribution/ibdistribution.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package ibdistribution package ibdistribution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Similarity.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Similarity.ts#L42-L45 type IBDistribution struct { Name string } diff --git a/typedapi/types/enums/iblambda/iblambda.go b/typedapi/types/enums/iblambda/iblambda.go index 7176c4f9a2..3c53c926e1 100644 --- a/typedapi/types/enums/iblambda/iblambda.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package iblambda package iblambda import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Similarity.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Similarity.ts#L47-L50 type IBLambda struct { Name string } diff --git a/typedapi/types/enums/icucollationalternate/icucollationalternate.go b/typedapi/types/enums/icucollationalternate/icucollationalternate.go index e7ff6f9aca..e9780182d9 100644 --- a/typedapi/types/enums/icucollationalternate/icucollationalternate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package icucollationalternate package icucollationalternate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L89-L92 type IcuCollationAlternate struct { Name string } diff --git a/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go b/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go index 6f887a4387..2f94a4b58c 100644 --- a/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package icucollationcasefirst package icucollationcasefirst import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L94-L97 type IcuCollationCaseFirst struct { Name string } diff --git a/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go b/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go index 95364e838e..b10e69e465 100644 --- a/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package icucollationdecomposition package icucollationdecomposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L99-L102 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L99-L102 type IcuCollationDecomposition struct { Name string } diff --git a/typedapi/types/enums/icucollationstrength/icucollationstrength.go b/typedapi/types/enums/icucollationstrength/icucollationstrength.go index ae746b07a8..bbf68711ae 100644 --- a/typedapi/types/enums/icucollationstrength/icucollationstrength.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package icucollationstrength package icucollationstrength import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L104-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L104-L110 type IcuCollationStrength struct { Name string } diff --git a/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go b/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go index bde456dcd7..dff7935b80 100644 --- a/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package icunormalizationmode package icunormalizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L78-L81 type IcuNormalizationMode struct { Name string } diff --git a/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go b/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go index 287144883d..4b757c9a57 100644 --- a/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package icunormalizationtype package icunormalizationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L83-L87 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L83-L87 type IcuNormalizationType struct { Name string } diff --git a/typedapi/types/enums/icutransformdirection/icutransformdirection.go b/typedapi/types/enums/icutransformdirection/icutransformdirection.go index 90bee795eb..47917caf8a 100644 --- a/typedapi/types/enums/icutransformdirection/icutransformdirection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package icutransformdirection package icutransformdirection import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L73-L76 type IcuTransformDirection struct { Name string } diff --git a/typedapi/types/enums/impactarea/impactarea.go b/typedapi/types/enums/impactarea/impactarea.go index e2f8ddc266..1ac1baa997 100644 --- a/typedapi/types/enums/impactarea/impactarea.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package impactarea package impactarea import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L73-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L73-L78 type ImpactArea struct { Name string } diff --git a/typedapi/types/enums/include/include.go b/typedapi/types/enums/include/include.go index ba9fa9d586..22eb4e96cb 100644 --- a/typedapi/types/enums/include/include.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package include package include import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Include.ts#L20-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Include.ts#L20-L47 type Include struct { Name string } diff --git a/typedapi/types/enums/indexcheckonstartup/indexcheckonstartup.go b/typedapi/types/enums/indexcheckonstartup/indexcheckonstartup.go index ca9fabc977..79c37c25ee 100644 --- a/typedapi/types/enums/indexcheckonstartup/indexcheckonstartup.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indexcheckonstartup package indexcheckonstartup import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L270-L277 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L270-L277 type IndexCheckOnStartup struct { Name string } diff --git a/typedapi/types/enums/indexingjobstate/indexingjobstate.go b/typedapi/types/enums/indexingjobstate/indexingjobstate.go index f5d8c1d1c9..91531f596e 100644 --- a/typedapi/types/enums/indexingjobstate/indexingjobstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indexingjobstate package indexingjobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_jobs/types.ts#L77-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_jobs/types.ts#L77-L83 type IndexingJobState struct { Name string } diff --git a/typedapi/types/enums/indexmetadatastate/indexmetadatastate.go b/typedapi/types/enums/indexmetadatastate/indexmetadatastate.go index ab0e923db0..9c203cf86a 100644 --- a/typedapi/types/enums/indexmetadatastate/indexmetadatastate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indexmetadatastate package indexmetadatastate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L225-L232 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L225-L232 type IndexMetadataState struct { Name string } diff --git a/typedapi/types/enums/indexoptions/indexoptions.go b/typedapi/types/enums/indexoptions/indexoptions.go index a39dcb81df..094778f779 100644 --- a/typedapi/types/enums/indexoptions/indexoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indexoptions package indexoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L274-L279 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L291-L296 type IndexOptions struct { Name string } diff --git a/typedapi/types/enums/indexprivilege/indexprivilege.go b/typedapi/types/enums/indexprivilege/indexprivilege.go index c8b22f58cf..e4e0d69f2c 100644 --- a/typedapi/types/enums/indexprivilege/indexprivilege.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indexprivilege package indexprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L386-L428 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L386-L428 type IndexPrivilege struct { Name string } diff --git a/typedapi/types/enums/indexroutingallocationoptions/indexroutingallocationoptions.go b/typedapi/types/enums/indexroutingallocationoptions/indexroutingallocationoptions.go index 40115cdb12..ef31b7232e 100644 --- a/typedapi/types/enums/indexroutingallocationoptions/indexroutingallocationoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indexroutingallocationoptions package indexroutingallocationoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexRouting.ts#L38-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexRouting.ts#L38-L43 type IndexRoutingAllocationOptions struct { Name string } diff --git a/typedapi/types/enums/indexroutingrebalanceoptions/indexroutingrebalanceoptions.go b/typedapi/types/enums/indexroutingrebalanceoptions/indexroutingrebalanceoptions.go index c3ec89a0ae..6333549b63 100644 --- a/typedapi/types/enums/indexroutingrebalanceoptions/indexroutingrebalanceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indexroutingrebalanceoptions package indexroutingrebalanceoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexRouting.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexRouting.ts#L45-L50 type IndexRoutingRebalanceOptions struct { Name string } diff --git a/typedapi/types/enums/indicatorhealthstatus/indicatorhealthstatus.go b/typedapi/types/enums/indicatorhealthstatus/indicatorhealthstatus.go index f48d006b4a..0382af04ca 100644 --- a/typedapi/types/enums/indicatorhealthstatus/indicatorhealthstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indicatorhealthstatus package indicatorhealthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L25-L30 type IndicatorHealthStatus struct { Name string } diff --git a/typedapi/types/enums/indicesblockoptions/indicesblockoptions.go b/typedapi/types/enums/indicesblockoptions/indicesblockoptions.go index ef93eca6db..62d3588715 100644 --- a/typedapi/types/enums/indicesblockoptions/indicesblockoptions.go +++ b/typedapi/types/enums/indicesblockoptions/indicesblockoptions.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package indicesblockoptions package indicesblockoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/add_block/IndicesAddBlockRequest.ts#L91-L100 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/add_block/IndicesAddBlockRequest.ts#L91-L100 type IndicesBlockOptions struct { Name string } diff --git a/typedapi/types/enums/inputtype/inputtype.go b/typedapi/types/enums/inputtype/inputtype.go index 542a26b887..dfe75792eb 100644 --- a/typedapi/types/enums/inputtype/inputtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package inputtype package inputtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L100-L104 type InputType struct { Name string } diff --git a/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go b/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go new file mode 100644 index 0000000000..8fa9ac30b5 --- /dev/null +++ b/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package jinaaiservicetype +package jinaaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L959-L961 +type JinaAIServiceType struct { + Name string +} + +var ( + Jinaai = JinaAIServiceType{"jinaai"} +) + +func (j JinaAIServiceType) MarshalText() (text []byte, err error) { + return []byte(j.String()), nil +} + +func (j *JinaAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "jinaai": + *j = Jinaai + default: + *j = JinaAIServiceType{string(text)} + } + + return nil +} + +func (j JinaAIServiceType) String() string { + return j.Name +} diff --git a/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go b/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go new file mode 100644 index 0000000000..cad3bd1137 --- /dev/null +++ b/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package jinaaisimilaritytype +package jinaaisimilaritytype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L963-L967 +type JinaAISimilarityType struct { + Name string +} + +var ( + Cosine = JinaAISimilarityType{"cosine"} + + Dotproduct = JinaAISimilarityType{"dot_product"} + + L2norm = JinaAISimilarityType{"l2_norm"} +) + +func (j JinaAISimilarityType) MarshalText() (text []byte, err error) { + return []byte(j.String()), nil +} + +func (j *JinaAISimilarityType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "cosine": + *j = Cosine + case "dot_product": + *j = Dotproduct + case "l2_norm": + *j = L2norm + default: + *j = JinaAISimilarityType{string(text)} + } + + return nil +} + +func (j JinaAISimilarityType) String() string { + return j.Name +} diff --git a/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go b/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go new file mode 100644 index 0000000000..4adcac0528 --- /dev/null +++ b/typedapi/types/enums/jinaaitasktype/jinaaitasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package jinaaitasktype +package jinaaitasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L954-L957 +type JinaAITaskType struct { + Name string +} + +var ( + Rerank = JinaAITaskType{"rerank"} + + Textembedding = JinaAITaskType{"text_embedding"} +) + +func (j JinaAITaskType) MarshalText() (text []byte, err error) { + return []byte(j.String()), nil +} + +func (j *JinaAITaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "rerank": + *j = Rerank + case "text_embedding": + *j = Textembedding + default: + *j = JinaAITaskType{string(text)} + } + + return nil +} + +func (j JinaAITaskType) String() string { + return j.Name +} diff --git a/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go b/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go new file mode 100644 index 0000000000..077d40946f --- /dev/null +++ b/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package jinaaitextembeddingtask +package jinaaitextembeddingtask + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L969-L974 +type JinaAITextEmbeddingTask struct { + Name string +} + +var ( + Classification = JinaAITextEmbeddingTask{"classification"} + + Clustering = JinaAITextEmbeddingTask{"clustering"} + + Ingest = JinaAITextEmbeddingTask{"ingest"} + + Search = JinaAITextEmbeddingTask{"search"} +) + +func (j JinaAITextEmbeddingTask) MarshalText() (text []byte, err error) { + return []byte(j.String()), nil +} + +func (j *JinaAITextEmbeddingTask) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "classification": + *j = Classification + case "clustering": + *j = Clustering + case "ingest": + *j = Ingest + case "search": + *j = Search + default: + *j = JinaAITextEmbeddingTask{string(text)} + } + + return nil +} + +func (j JinaAITextEmbeddingTask) String() string { + return j.Name +} diff --git a/typedapi/types/enums/jobblockedreason/jobblockedreason.go b/typedapi/types/enums/jobblockedreason/jobblockedreason.go index 0b0cfb4dca..c766c1c5e7 100644 --- a/typedapi/types/enums/jobblockedreason/jobblockedreason.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package jobblockedreason package jobblockedreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L397-L401 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Job.ts#L397-L401 type JobBlockedReason struct { Name string } diff --git a/typedapi/types/enums/jobstate/jobstate.go b/typedapi/types/enums/jobstate/jobstate.go index dbf90bc4e5..3b8375cf87 100644 --- a/typedapi/types/enums/jobstate/jobstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package jobstate package jobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L36-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Job.ts#L36-L52 type JobState struct { Name string } diff --git a/typedapi/types/enums/jsonprocessorconflictstrategy/jsonprocessorconflictstrategy.go b/typedapi/types/enums/jsonprocessorconflictstrategy/jsonprocessorconflictstrategy.go index 7eebba250f..e14669cdf8 100644 --- a/typedapi/types/enums/jsonprocessorconflictstrategy/jsonprocessorconflictstrategy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package jsonprocessorconflictstrategy package jsonprocessorconflictstrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1151-L1156 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1169-L1174 type JsonProcessorConflictStrategy struct { Name string } diff --git a/typedapi/types/enums/keeptypesmode/keeptypesmode.go b/typedapi/types/enums/keeptypesmode/keeptypesmode.go index 975d15f61f..69443c3851 100644 --- a/typedapi/types/enums/keeptypesmode/keeptypesmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package keeptypesmode package keeptypesmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L214-L217 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L214-L217 type KeepTypesMode struct { Name string } diff --git a/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go b/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go index e0e1d6d1c5..42b85dc524 100644 --- a/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package kuromojitokenizationmode package kuromojitokenizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/kuromoji-plugin.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/kuromoji-plugin.ts#L52-L56 type KuromojiTokenizationMode struct { Name string } diff --git a/typedapi/types/enums/level/level.go b/typedapi/types/enums/level/level.go index 64b444bfdd..b137ebf714 100644 --- a/typedapi/types/enums/level/level.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package level package level import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L253-L257 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L253-L257 type Level struct { Name string } diff --git a/typedapi/types/enums/licensestatus/licensestatus.go b/typedapi/types/enums/licensestatus/licensestatus.go index 5b9e7d5706..0dd58cffaf 100644 --- a/typedapi/types/enums/licensestatus/licensestatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package licensestatus package licensestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/_types/License.ts#L35-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/_types/License.ts#L35-L40 type LicenseStatus struct { Name string } diff --git a/typedapi/types/enums/licensetype/licensetype.go b/typedapi/types/enums/licensetype/licensetype.go index 8069108984..bfdd7b0a18 100644 --- a/typedapi/types/enums/licensetype/licensetype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package licensetype package licensetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/_types/License.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/_types/License.ts#L23-L33 type LicenseType struct { Name string } diff --git a/typedapi/types/enums/lifecycleoperationmode/lifecycleoperationmode.go b/typedapi/types/enums/lifecycleoperationmode/lifecycleoperationmode.go index a37aa00856..1e845728f0 100644 --- a/typedapi/types/enums/lifecycleoperationmode/lifecycleoperationmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package lifecycleoperationmode package lifecycleoperationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Lifecycle.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Lifecycle.ts#L20-L24 type LifecycleOperationMode struct { Name string } diff --git a/typedapi/types/enums/managedby/managedby.go b/typedapi/types/enums/managedby/managedby.go index d332d92b70..b0441b2e9e 100644 --- a/typedapi/types/enums/managedby/managedby.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package managedby package managedby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStream.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStream.ts#L32-L37 type ManagedBy struct { Name string } diff --git a/typedapi/types/enums/matchtype/matchtype.go b/typedapi/types/enums/matchtype/matchtype.go index f7028729ef..92a5d878b8 100644 --- a/typedapi/types/enums/matchtype/matchtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package matchtype package matchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/dynamic-template.ts#L45-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/dynamic-template.ts#L45-L48 type MatchType struct { Name string } diff --git a/typedapi/types/enums/memorystatus/memorystatus.go b/typedapi/types/enums/memorystatus/memorystatus.go index 9cd802d6ef..ab057192cc 100644 --- a/typedapi/types/enums/memorystatus/memorystatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package memorystatus package memorystatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Model.ts#L89-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Model.ts#L89-L93 type MemoryStatus struct { Name string } diff --git a/typedapi/types/enums/metric/metric.go b/typedapi/types/enums/metric/metric.go index 7f5ff31412..c2ecb8bf69 100644 --- a/typedapi/types/enums/metric/metric.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package metric package metric import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/_types/Metric.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/_types/Metric.ts#L22-L28 type Metric struct { Name string } diff --git a/typedapi/types/enums/migrationstatus/migrationstatus.go b/typedapi/types/enums/migrationstatus/migrationstatus.go index bed1ea7356..2647d00725 100644 --- a/typedapi/types/enums/migrationstatus/migrationstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package migrationstatus package migrationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35 type MigrationStatus struct { Name string } diff --git a/typedapi/types/enums/minimuminterval/minimuminterval.go b/typedapi/types/enums/minimuminterval/minimuminterval.go index 82e95c0a91..7e99c0dd89 100644 --- a/typedapi/types/enums/minimuminterval/minimuminterval.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package minimuminterval package minimuminterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L112-L119 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L112-L119 type MinimumInterval struct { Name string } diff --git a/typedapi/types/enums/missingorder/missingorder.go b/typedapi/types/enums/missingorder/missingorder.go index bc28b3e712..5db3bf102f 100644 --- a/typedapi/types/enums/missingorder/missingorder.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package missingorder package missingorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/AggregationContainer.ts#L536-L540 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/AggregationContainer.ts#L536-L540 type MissingOrder struct { Name string } diff --git a/typedapi/types/enums/mistralservicetype/mistralservicetype.go b/typedapi/types/enums/mistralservicetype/mistralservicetype.go new file mode 100644 index 0000000000..547d95fc99 --- /dev/null +++ b/typedapi/types/enums/mistralservicetype/mistralservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package mistralservicetype +package mistralservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1009-L1011 +type MistralServiceType struct { + Name string +} + +var ( + Mistral = MistralServiceType{"mistral"} +) + +func (m MistralServiceType) MarshalText() (text []byte, err error) { + return []byte(m.String()), nil +} + +func (m *MistralServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "mistral": + *m = Mistral + default: + *m = MistralServiceType{string(text)} + } + + return nil +} + +func (m MistralServiceType) String() string { + return m.Name +} diff --git a/typedapi/types/enums/mistraltasktype/mistraltasktype.go b/typedapi/types/enums/mistraltasktype/mistraltasktype.go new file mode 100644 index 0000000000..7a9ad7528e --- /dev/null +++ b/typedapi/types/enums/mistraltasktype/mistraltasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package mistraltasktype +package mistraltasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1005-L1007 +type MistralTaskType struct { + Name string +} + +var ( + Textembedding = MistralTaskType{"text_embedding"} +) + +func (m MistralTaskType) MarshalText() (text []byte, err error) { + return []byte(m.String()), nil +} + +func (m *MistralTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *m = Textembedding + default: + *m = MistralTaskType{string(text)} + } + + return nil +} + +func (m MistralTaskType) String() string { + return m.Name +} diff --git a/typedapi/types/enums/modeenum/modeenum.go b/typedapi/types/enums/modeenum/modeenum.go index 193637ed47..f9e9f64c3d 100644 --- a/typedapi/types/enums/modeenum/modeenum.go +++ b/typedapi/types/enums/modeenum/modeenum.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package modeenum package modeenum import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L54-L56 type ModeEnum struct { Name string } diff --git a/typedapi/types/enums/month/month.go b/typedapi/types/enums/month/month.go index 632b2c37e9..aa22025de4 100644 --- a/typedapi/types/enums/month/month.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package month package month import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L65-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L65-L78 type Month struct { Name string } diff --git a/typedapi/types/enums/multivaluemode/multivaluemode.go b/typedapi/types/enums/multivaluemode/multivaluemode.go index 21d6fc7f5b..d54931d7c9 100644 --- a/typedapi/types/enums/multivaluemode/multivaluemode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package multivaluemode package multivaluemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L368-L385 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L368-L385 type MultiValueMode struct { Name string } diff --git a/typedapi/types/enums/noderole/noderole.go b/typedapi/types/enums/noderole/noderole.go index fe7ebbdd67..1148d48474 100644 --- a/typedapi/types/enums/noderole/noderole.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package noderole package noderole import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Node.ts#L71-L89 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Node.ts#L71-L89 type NodeRole struct { Name string } diff --git a/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go b/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go index 6179785089..4ed2605712 100644 --- a/typedapi/types/enums/noridecompoundmode/noridecompoundmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package noridecompoundmode package noridecompoundmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/nori-plugin.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/nori-plugin.ts#L22-L26 type NoriDecompoundMode struct { Name string } diff --git a/typedapi/types/enums/normalization/normalization.go b/typedapi/types/enums/normalization/normalization.go index 1d14188b05..a628c2f1cb 100644 --- a/typedapi/types/enums/normalization/normalization.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package normalization package normalization import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Similarity.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Similarity.ts#L52-L58 type Normalization struct { Name string } diff --git a/typedapi/types/enums/normalizemethod/normalizemethod.go b/typedapi/types/enums/normalizemethod/normalizemethod.go index 9971f42cfc..c8efb10db8 100644 --- a/typedapi/types/enums/normalizemethod/normalizemethod.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package normalizemethod package normalizemethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L361-L387 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L361-L387 type NormalizeMethod struct { Name string } diff --git a/typedapi/types/enums/numericfielddataformat/numericfielddataformat.go b/typedapi/types/enums/numericfielddataformat/numericfielddataformat.go index 714e883b99..ed033c508f 100644 --- a/typedapi/types/enums/numericfielddataformat/numericfielddataformat.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package numericfielddataformat package numericfielddataformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/NumericFielddataFormat.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/NumericFielddataFormat.ts#L20-L23 type NumericFielddataFormat struct { Name string } diff --git a/typedapi/types/enums/onscripterror/onscripterror.go b/typedapi/types/enums/onscripterror/onscripterror.go index 98b42731fa..42245eb523 100644 --- a/typedapi/types/enums/onscripterror/onscripterror.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package onscripterror package onscripterror import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L141-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L151-L154 type OnScriptError struct { Name string } diff --git a/typedapi/types/enums/openaiservicetype/openaiservicetype.go b/typedapi/types/enums/openaiservicetype/openaiservicetype.go new file mode 100644 index 0000000000..c2ac54d01a --- /dev/null +++ b/typedapi/types/enums/openaiservicetype/openaiservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package openaiservicetype +package openaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1071-L1073 +type OpenAIServiceType struct { + Name string +} + +var ( + Openai = OpenAIServiceType{"openai"} +) + +func (o OpenAIServiceType) MarshalText() (text []byte, err error) { + return []byte(o.String()), nil +} + +func (o *OpenAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "openai": + *o = Openai + default: + *o = OpenAIServiceType{string(text)} + } + + return nil +} + +func (o OpenAIServiceType) String() string { + return o.Name +} diff --git a/typedapi/types/enums/openaitasktype/openaitasktype.go b/typedapi/types/enums/openaitasktype/openaitasktype.go index c9e8b9aed7..70ccf4338c 100644 --- a/typedapi/types/enums/openaitasktype/openaitasktype.go +++ b/typedapi/types/enums/openaitasktype/openaitasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package openaitasktype package openaitasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_openai/PutOpenAiRequest.ts#L84-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1065-L1069 type OpenAITaskType struct { Name string } diff --git a/typedapi/types/enums/operationtype/operationtype.go b/typedapi/types/enums/operationtype/operationtype.go index 6ec6306cf5..04b1af33b5 100644 --- a/typedapi/types/enums/operationtype/operationtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package operationtype package operationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L93-L98 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L93-L98 type OperationType struct { Name string } diff --git a/typedapi/types/enums/operator/operator.go b/typedapi/types/enums/operator/operator.go index a0dca3df61..dfb44ff6b7 100644 --- a/typedapi/types/enums/operator/operator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package operator package operator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/Operator.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/Operator.ts#L22-L27 type Operator struct { Name string } diff --git a/typedapi/types/enums/optype/optype.go b/typedapi/types/enums/optype/optype.go index 5f329bf20e..6bf4d4ae80 100644 --- a/typedapi/types/enums/optype/optype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package optype package optype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L259-L268 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L259-L268 type OpType struct { Name string } diff --git a/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go b/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go index 1de47f7bab..e8f9b592c6 100644 --- a/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package pagerdutycontexttype package pagerdutycontexttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L67-L70 type PagerDutyContextType struct { Name string } diff --git a/typedapi/types/enums/pagerdutyeventtype/pagerdutyeventtype.go b/typedapi/types/enums/pagerdutyeventtype/pagerdutyeventtype.go index c05d644773..ce6d1e6eda 100644 --- a/typedapi/types/enums/pagerdutyeventtype/pagerdutyeventtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package pagerdutyeventtype package pagerdutyeventtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L72-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L72-L76 type PagerDutyEventType struct { Name string } diff --git a/typedapi/types/enums/painlesscontext/painlesscontext.go b/typedapi/types/enums/painlesscontext/painlesscontext.go index 4ded03fc7f..59d78d7399 100644 --- a/typedapi/types/enums/painlesscontext/painlesscontext.go +++ b/typedapi/types/enums/painlesscontext/painlesscontext.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package painlesscontext package painlesscontext import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/scripts_painless_execute/types.ts#L57-L80 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/scripts_painless_execute/types.ts#L57-L80 type PainlessContext struct { Name string } diff --git a/typedapi/types/enums/phoneticencoder/phoneticencoder.go b/typedapi/types/enums/phoneticencoder/phoneticencoder.go index 72cd84f927..6648284dc0 100644 --- a/typedapi/types/enums/phoneticencoder/phoneticencoder.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package phoneticencoder package phoneticencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/phonetic-plugin.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/phonetic-plugin.ts#L23-L36 type PhoneticEncoder struct { Name string } diff --git a/typedapi/types/enums/phoneticlanguage/phoneticlanguage.go b/typedapi/types/enums/phoneticlanguage/phoneticlanguage.go index f3c7b6ed4b..5f3146f6cb 100644 --- a/typedapi/types/enums/phoneticlanguage/phoneticlanguage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package phoneticlanguage package phoneticlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/phonetic-plugin.ts#L38-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/phonetic-plugin.ts#L38-L51 type PhoneticLanguage struct { Name string } diff --git a/typedapi/types/enums/phoneticnametype/phoneticnametype.go b/typedapi/types/enums/phoneticnametype/phoneticnametype.go index ed27b50e1e..222780bd37 100644 --- a/typedapi/types/enums/phoneticnametype/phoneticnametype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package phoneticnametype package phoneticnametype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/phonetic-plugin.ts#L53-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/phonetic-plugin.ts#L53-L57 type PhoneticNameType struct { Name string } diff --git a/typedapi/types/enums/phoneticruletype/phoneticruletype.go b/typedapi/types/enums/phoneticruletype/phoneticruletype.go index f06d3ad369..67a9d8513c 100644 --- a/typedapi/types/enums/phoneticruletype/phoneticruletype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package phoneticruletype package phoneticruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/phonetic-plugin.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/phonetic-plugin.ts#L59-L62 type PhoneticRuleType struct { Name string } diff --git a/typedapi/types/enums/policytype/policytype.go b/typedapi/types/enums/policytype/policytype.go index ed0e68150c..ffd9af7220 100644 --- a/typedapi/types/enums/policytype/policytype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package policytype package policytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/_types/Policy.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/_types/Policy.ts#L28-L32 type PolicyType struct { Name string } diff --git a/typedapi/types/enums/quantifier/quantifier.go b/typedapi/types/enums/quantifier/quantifier.go index 1b5993a76e..c0391c8fc7 100644 --- a/typedapi/types/enums/quantifier/quantifier.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package quantifier package quantifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L74-L77 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L74-L77 type Quantifier struct { Name string } diff --git a/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go b/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go index b7813d64a7..553887d879 100644 --- a/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package queryrulecriteriatype package queryrulecriteriatype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/_types/QueryRuleset.ts#L95-L108 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/_types/QueryRuleset.ts#L95-L108 type QueryRuleCriteriaType struct { Name string } diff --git a/typedapi/types/enums/queryruletype/queryruletype.go b/typedapi/types/enums/queryruletype/queryruletype.go index fe410150b8..61aff69de4 100644 --- a/typedapi/types/enums/queryruletype/queryruletype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package queryruletype package queryruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/_types/QueryRuleset.ts#L60-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/_types/QueryRuleset.ts#L60-L63 type QueryRuleType struct { Name string } diff --git a/typedapi/types/enums/rangerelation/rangerelation.go b/typedapi/types/enums/rangerelation/rangerelation.go index 02afd04067..8d61888f90 100644 --- a/typedapi/types/enums/rangerelation/rangerelation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package rangerelation package rangerelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L188-L201 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L188-L201 type RangeRelation struct { Name string } diff --git a/typedapi/types/enums/ratemode/ratemode.go b/typedapi/types/enums/ratemode/ratemode.go index bf7bb5cf20..6e76927347 100644 --- a/typedapi/types/enums/ratemode/ratemode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package ratemode package ratemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L252-L261 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L252-L261 type RateMode struct { Name string } diff --git a/typedapi/types/enums/refresh/refresh.go b/typedapi/types/enums/refresh/refresh.go index 371fbad8d8..672e80ebc0 100644 --- a/typedapi/types/enums/refresh/refresh.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package refresh package refresh import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L270-L277 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L270-L277 type Refresh struct { Name string } diff --git a/typedapi/types/enums/remoteclusterprivilege/remoteclusterprivilege.go b/typedapi/types/enums/remoteclusterprivilege/remoteclusterprivilege.go index 641c11f4af..79fb57aed0 100644 --- a/typedapi/types/enums/remoteclusterprivilege/remoteclusterprivilege.go +++ b/typedapi/types/enums/remoteclusterprivilege/remoteclusterprivilege.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package remoteclusterprivilege package remoteclusterprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L201-L213 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L201-L213 type RemoteClusterPrivilege struct { Name string } diff --git a/typedapi/types/enums/responsecontenttype/responsecontenttype.go b/typedapi/types/enums/responsecontenttype/responsecontenttype.go index 1b9c2455cd..e21515fb6e 100644 --- a/typedapi/types/enums/responsecontenttype/responsecontenttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package responsecontenttype package responsecontenttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L106-L110 type ResponseContentType struct { Name string } diff --git a/typedapi/types/enums/restrictionworkflow/restrictionworkflow.go b/typedapi/types/enums/restrictionworkflow/restrictionworkflow.go index bb13e2de18..729b92e980 100644 --- a/typedapi/types/enums/restrictionworkflow/restrictionworkflow.go +++ b/typedapi/types/enums/restrictionworkflow/restrictionworkflow.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package restrictionworkflow package restrictionworkflow import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleDescriptor.ts#L143-L146 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleDescriptor.ts#L143-L146 type RestrictionWorkflow struct { Name string } diff --git a/typedapi/types/enums/result/result.go b/typedapi/types/enums/result/result.go index ef4a121d2b..895e27b6f7 100644 --- a/typedapi/types/enums/result/result.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package result package result import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Result.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Result.ts#L20-L26 type Result struct { Name string } diff --git a/typedapi/types/enums/resultposition/resultposition.go b/typedapi/types/enums/resultposition/resultposition.go index 1c5148984c..76007be885 100644 --- a/typedapi/types/enums/resultposition/resultposition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package resultposition package resultposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/search/types.ts#L20-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/eql/search/types.ts#L20-L32 type ResultPosition struct { Name string } diff --git a/typedapi/types/enums/routingstate/routingstate.go b/typedapi/types/enums/routingstate/routingstate.go index 5960bfaecc..fc92fd378d 100644 --- a/typedapi/types/enums/routingstate/routingstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package routingstate package routingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L407-L428 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L408-L429 type RoutingState struct { Name string } diff --git a/typedapi/types/enums/ruleaction/ruleaction.go b/typedapi/types/enums/ruleaction/ruleaction.go index 876e7f024a..58decd30ac 100644 --- a/typedapi/types/enums/ruleaction/ruleaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package ruleaction package ruleaction import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Rule.ts#L41-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Rule.ts#L41-L50 type RuleAction struct { Name string } diff --git a/typedapi/types/enums/runtimefieldtype/runtimefieldtype.go b/typedapi/types/enums/runtimefieldtype/runtimefieldtype.go index 44d5b4e63f..b7098482e1 100644 --- a/typedapi/types/enums/runtimefieldtype/runtimefieldtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package runtimefieldtype package runtimefieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/RuntimeFields.ts#L62-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/RuntimeFields.ts#L62-L73 type RuntimeFieldType struct { Name string } @@ -39,6 +39,8 @@ var ( Geopoint = RuntimeFieldType{"geo_point"} + Geoshape = RuntimeFieldType{"geo_shape"} + Ip = RuntimeFieldType{"ip"} Keyword = RuntimeFieldType{"keyword"} @@ -65,6 +67,8 @@ func (r *RuntimeFieldType) UnmarshalText(text []byte) error { *r = Double case "geo_point": *r = Geopoint + case "geo_shape": + *r = Geoshape case "ip": *r = Ip case "keyword": diff --git a/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go b/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go index 0e95b6112c..102e7cd2b4 100644 --- a/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package sampleraggregationexecutionhint package sampleraggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L359-L372 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L359-L372 type SamplerAggregationExecutionHint struct { Name string } diff --git a/typedapi/types/enums/scoremode/scoremode.go b/typedapi/types/enums/scoremode/scoremode.go index 924006a117..2e02e56346 100644 --- a/typedapi/types/enums/scoremode/scoremode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package scoremode package scoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/rescoring.ts#L64-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/rescoring.ts#L64-L86 type ScoreMode struct { Name string } diff --git a/typedapi/types/enums/scriptlanguage/scriptlanguage.go b/typedapi/types/enums/scriptlanguage/scriptlanguage.go index 253e0579f7..dc21e61404 100644 --- a/typedapi/types/enums/scriptlanguage/scriptlanguage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package scriptlanguage package scriptlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Scripting.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Scripting.ts#L24-L45 type ScriptLanguage struct { Name string } diff --git a/typedapi/types/enums/scriptsorttype/scriptsorttype.go b/typedapi/types/enums/scriptsorttype/scriptsorttype.go index 016089f5e8..b1de23dd0b 100644 --- a/typedapi/types/enums/scriptsorttype/scriptsorttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package scriptsorttype package scriptsorttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L80-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L80-L84 type ScriptSortType struct { Name string } diff --git a/typedapi/types/enums/searchtype/searchtype.go b/typedapi/types/enums/searchtype/searchtype.go index d4e043a92f..1388344a6e 100644 --- a/typedapi/types/enums/searchtype/searchtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package searchtype package searchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L279-L284 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L279-L284 type SearchType struct { Name string } diff --git a/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go b/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go index ac80b51cdc..09e527f530 100644 --- a/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package segmentsortmissing package segmentsortmissing import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSegmentSort.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSegmentSort.ts#L43-L46 type SegmentSortMissing struct { Name string } diff --git a/typedapi/types/enums/segmentsortmode/segmentsortmode.go b/typedapi/types/enums/segmentsortmode/segmentsortmode.go index 61d0d3ec9e..438fe38c1f 100644 --- a/typedapi/types/enums/segmentsortmode/segmentsortmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package segmentsortmode package segmentsortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSegmentSort.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSegmentSort.ts#L36-L41 type SegmentSortMode struct { Name string } diff --git a/typedapi/types/enums/segmentsortorder/segmentsortorder.go b/typedapi/types/enums/segmentsortorder/segmentsortorder.go index 0f8a78515c..ada9c9eda0 100644 --- a/typedapi/types/enums/segmentsortorder/segmentsortorder.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package segmentsortorder package segmentsortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSegmentSort.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSegmentSort.ts#L29-L34 type SegmentSortOrder struct { Name string } diff --git a/typedapi/types/enums/shapetype/shapetype.go b/typedapi/types/enums/shapetype/shapetype.go index 0b28ec0153..03c5b4a06f 100644 --- a/typedapi/types/enums/shapetype/shapetype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package shapetype package shapetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1473-L1476 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1491-L1494 type ShapeType struct { Name string } diff --git a/typedapi/types/enums/shardroutingstate/shardroutingstate.go b/typedapi/types/enums/shardroutingstate/shardroutingstate.go index 5cb82cabd0..e5bbdb25f2 100644 --- a/typedapi/types/enums/shardroutingstate/shardroutingstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package shardroutingstate package shardroutingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L169-L174 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L169-L174 type ShardRoutingState struct { Name string } diff --git a/typedapi/types/enums/shardsstatsstage/shardsstatsstage.go b/typedapi/types/enums/shardsstatsstage/shardsstatsstage.go index 3dbb75893b..ecd8bf2012 100644 --- a/typedapi/types/enums/shardsstatsstage/shardsstatsstage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package shardsstatsstage package shardsstatsstage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31 type ShardsStatsStage struct { Name string } diff --git a/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go b/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go index 6686145620..e1a457d9a9 100644 --- a/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package shardstoreallocation package shardstoreallocation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shard_stores/types.ts#L47-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shard_stores/types.ts#L47-L51 type ShardStoreAllocation struct { Name string } diff --git a/typedapi/types/enums/shardstorestatus/shardstorestatus.go b/typedapi/types/enums/shardstorestatus/shardstorestatus.go index 18b58e9924..6dc74035db 100644 --- a/typedapi/types/enums/shardstorestatus/shardstorestatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package shardstorestatus package shardstorestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shard_stores/types.ts#L62-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shard_stores/types.ts#L62-L71 type ShardStoreStatus struct { Name string } diff --git a/typedapi/types/enums/shutdownstatus/shutdownstatus.go b/typedapi/types/enums/shutdownstatus/shutdownstatus.go index 771deefd5d..fbea1dc5b3 100644 --- a/typedapi/types/enums/shutdownstatus/shutdownstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package shutdownstatus package shutdownstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50 type ShutdownStatus struct { Name string } diff --git a/typedapi/types/enums/shutdowntype/shutdowntype.go b/typedapi/types/enums/shutdowntype/shutdowntype.go index d800610029..8dda464bbf 100644 --- a/typedapi/types/enums/shutdowntype/shutdowntype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package shutdowntype package shutdowntype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43 type ShutdownType struct { Name string } diff --git a/typedapi/types/enums/simplequerystringflag/simplequerystringflag.go b/typedapi/types/enums/simplequerystringflag/simplequerystringflag.go index 8924d137e0..50703409e4 100644 --- a/typedapi/types/enums/simplequerystringflag/simplequerystringflag.go +++ b/typedapi/types/enums/simplequerystringflag/simplequerystringflag.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package simplequerystringflag package simplequerystringflag import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L729-L784 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L729-L784 type SimpleQueryStringFlag struct { Name string } diff --git a/typedapi/types/enums/slicescalculation/slicescalculation.go b/typedapi/types/enums/slicescalculation/slicescalculation.go index 4a7c1dcbdd..0f33e40337 100644 --- a/typedapi/types/enums/slicescalculation/slicescalculation.go +++ b/typedapi/types/enums/slicescalculation/slicescalculation.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package slicescalculation package slicescalculation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L375-L383 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L375-L383 type SlicesCalculation struct { Name string } diff --git a/typedapi/types/enums/snapshotsort/snapshotsort.go b/typedapi/types/enums/snapshotsort/snapshotsort.go index 2fb730e18c..cc8d1d03b2 100644 --- a/typedapi/types/enums/snapshotsort/snapshotsort.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package snapshotsort package snapshotsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotInfo.ts#L73-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotInfo.ts#L73-L93 type SnapshotSort struct { Name string } diff --git a/typedapi/types/enums/snapshotupgradestate/snapshotupgradestate.go b/typedapi/types/enums/snapshotupgradestate/snapshotupgradestate.go index 2e4a46999f..2d9d1e3bc5 100644 --- a/typedapi/types/enums/snapshotupgradestate/snapshotupgradestate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package snapshotupgradestate package snapshotupgradestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Model.ts#L95-L100 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Model.ts#L95-L100 type SnapshotUpgradeState struct { Name string } diff --git a/typedapi/types/enums/snowballlanguage/snowballlanguage.go b/typedapi/types/enums/snowballlanguage/snowballlanguage.go index f25c914e1c..ebf1495a98 100644 --- a/typedapi/types/enums/snowballlanguage/snowballlanguage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package snowballlanguage package snowballlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/languages.ts#L20-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/languages.ts#L20-L43 type SnowballLanguage struct { Name string } diff --git a/typedapi/types/enums/sortmode/sortmode.go b/typedapi/types/enums/sortmode/sortmode.go index 0fb60a71c2..e73446f7aa 100644 --- a/typedapi/types/enums/sortmode/sortmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package sortmode package sortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L108-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L108-L117 type SortMode struct { Name string } diff --git a/typedapi/types/enums/sortorder/sortorder.go b/typedapi/types/enums/sortorder/sortorder.go index 15c12ddf62..888648496f 100644 --- a/typedapi/types/enums/sortorder/sortorder.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package sortorder package sortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L119-L128 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L119-L128 type SortOrder struct { Name string } diff --git a/typedapi/types/enums/sourcefieldmode/sourcefieldmode.go b/typedapi/types/enums/sourcefieldmode/sourcefieldmode.go index 7264d3a1c8..707c619b8e 100644 --- a/typedapi/types/enums/sourcefieldmode/sourcefieldmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package sourcefieldmode package sourcefieldmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/meta-fields.ts#L67-L75 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/meta-fields.ts#L67-L75 type SourceFieldMode struct { Name string } diff --git a/typedapi/types/enums/sourcemode/sourcemode.go b/typedapi/types/enums/sourcemode/sourcemode.go index 3ce3af86b2..891e3a2652 100644 --- a/typedapi/types/enums/sourcemode/sourcemode.go +++ b/typedapi/types/enums/sourcemode/sourcemode.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package sourcemode package sourcemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L509-L513 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L509-L513 type SourceMode struct { Name string } diff --git a/typedapi/types/enums/sqlformat/sqlformat.go b/typedapi/types/enums/sqlformat/sqlformat.go index 45c273086b..b265721658 100644 --- a/typedapi/types/enums/sqlformat/sqlformat.go +++ b/typedapi/types/enums/sqlformat/sqlformat.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package sqlformat package sqlformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/sql/query/QuerySqlRequest.ts#L154-L162 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/sql/query/QuerySqlRequest.ts#L154-L162 type SqlFormat struct { Name string } diff --git a/typedapi/types/enums/statslevel/statslevel.go b/typedapi/types/enums/statslevel/statslevel.go index bb9c362c83..1575161ccd 100644 --- a/typedapi/types/enums/statslevel/statslevel.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package statslevel package statslevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/_types/stats.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/searchable_snapshots/_types/stats.ts#L20-L24 type StatsLevel struct { Name string } diff --git a/typedapi/types/enums/storagetype/storagetype.go b/typedapi/types/enums/storagetype/storagetype.go index 012fbfa0b9..4c50caf455 100644 --- a/typedapi/types/enums/storagetype/storagetype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package storagetype package storagetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L545-L573 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L545-L573 type StorageType struct { Name string } diff --git a/typedapi/types/enums/stringdistance/stringdistance.go b/typedapi/types/enums/stringdistance/stringdistance.go index cdcafe2ae8..4df3cb6220 100644 --- a/typedapi/types/enums/stringdistance/stringdistance.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package stringdistance package stringdistance import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L472-L493 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L472-L493 type StringDistance struct { Name string } diff --git a/typedapi/types/enums/subobjects/subobjects.go b/typedapi/types/enums/subobjects/subobjects.go index 838d396009..548e67d0cf 100644 --- a/typedapi/types/enums/subobjects/subobjects.go +++ b/typedapi/types/enums/subobjects/subobjects.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package subobjects package subobjects import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/TypeMapping.ts#L63-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/TypeMapping.ts#L63-L74 type Subobjects struct { Name string } diff --git a/typedapi/types/enums/suggestmode/suggestmode.go b/typedapi/types/enums/suggestmode/suggestmode.go index d3acb3bc6e..09f2442b7f 100644 --- a/typedapi/types/enums/suggestmode/suggestmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package suggestmode package suggestmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L286-L299 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L286-L299 type SuggestMode struct { Name string } diff --git a/typedapi/types/enums/suggestsort/suggestsort.go b/typedapi/types/enums/suggestsort/suggestsort.go index 359480656b..daf33b5e49 100644 --- a/typedapi/types/enums/suggestsort/suggestsort.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package suggestsort package suggestsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L495-L504 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L495-L504 type SuggestSort struct { Name string } diff --git a/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go b/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go index 5486734ceb..e137796560 100644 --- a/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go +++ b/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package syncjobtriggermethod package syncjobtriggermethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/SyncJob.ts#L48-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/SyncJob.ts#L48-L51 type SyncJobTriggerMethod struct { Name string } diff --git a/typedapi/types/enums/syncjobtype/syncjobtype.go b/typedapi/types/enums/syncjobtype/syncjobtype.go index 01e179bffa..9a2f3a0908 100644 --- a/typedapi/types/enums/syncjobtype/syncjobtype.go +++ b/typedapi/types/enums/syncjobtype/syncjobtype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package syncjobtype package syncjobtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/SyncJob.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/SyncJob.ts#L42-L46 type SyncJobType struct { Name string } diff --git a/typedapi/types/enums/syncstatus/syncstatus.go b/typedapi/types/enums/syncstatus/syncstatus.go index 1f5b937776..af90fab263 100644 --- a/typedapi/types/enums/syncstatus/syncstatus.go +++ b/typedapi/types/enums/syncstatus/syncstatus.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package syncstatus package syncstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L138-L146 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L138-L146 type SyncStatus struct { Name string } diff --git a/typedapi/types/enums/synonymformat/synonymformat.go b/typedapi/types/enums/synonymformat/synonymformat.go index e30eb1f2dc..cae555910e 100644 --- a/typedapi/types/enums/synonymformat/synonymformat.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package synonymformat package synonymformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L104-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L104-L107 type SynonymFormat struct { Name string } diff --git a/typedapi/types/enums/syntheticsourcekeepenum/syntheticsourcekeepenum.go b/typedapi/types/enums/syntheticsourcekeepenum/syntheticsourcekeepenum.go index cb3d104e34..673be6c3c3 100644 --- a/typedapi/types/enums/syntheticsourcekeepenum/syntheticsourcekeepenum.go +++ b/typedapi/types/enums/syntheticsourcekeepenum/syntheticsourcekeepenum.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package syntheticsourcekeepenum package syntheticsourcekeepenum import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/Property.ts#L99-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/Property.ts#L99-L117 type SyntheticSourceKeepEnum struct { Name string } diff --git a/typedapi/types/enums/tasktype/tasktype.go b/typedapi/types/enums/tasktype/tasktype.go index 700ca5d5e9..e5c32387d7 100644 --- a/typedapi/types/enums/tasktype/tasktype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package tasktype package tasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/TaskType.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/TaskType.ts#L20-L29 type TaskType struct { Name string } diff --git a/typedapi/types/enums/templateformat/templateformat.go b/typedapi/types/enums/templateformat/templateformat.go index 0d22bacaf0..48753ec1d3 100644 --- a/typedapi/types/enums/templateformat/templateformat.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package templateformat package templateformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleTemplate.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleTemplate.ts#L22-L25 type TemplateFormat struct { Name string } diff --git a/typedapi/types/enums/termsaggregationcollectmode/termsaggregationcollectmode.go b/typedapi/types/enums/termsaggregationcollectmode/termsaggregationcollectmode.go index cc7a446511..47af1db7cc 100644 --- a/typedapi/types/enums/termsaggregationcollectmode/termsaggregationcollectmode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package termsaggregationcollectmode package termsaggregationcollectmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1056-L1065 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1056-L1065 type TermsAggregationCollectMode struct { Name string } diff --git a/typedapi/types/enums/termsaggregationexecutionhint/termsaggregationexecutionhint.go b/typedapi/types/enums/termsaggregationexecutionhint/termsaggregationexecutionhint.go index d5e8c72be5..321ee00aaf 100644 --- a/typedapi/types/enums/termsaggregationexecutionhint/termsaggregationexecutionhint.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package termsaggregationexecutionhint package termsaggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1067-L1072 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1067-L1072 type TermsAggregationExecutionHint struct { Name string } diff --git a/typedapi/types/enums/termvectoroption/termvectoroption.go b/typedapi/types/enums/termvectoroption/termvectoroption.go index b5457ec3dd..6e2946f20c 100644 --- a/typedapi/types/enums/termvectoroption/termvectoroption.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package termvectoroption package termvectoroption import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/TermVectorOption.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/TermVectorOption.ts#L20-L28 type TermVectorOption struct { Name string } diff --git a/typedapi/types/enums/textquerytype/textquerytype.go b/typedapi/types/enums/textquerytype/textquerytype.go index 9fafdcce3b..e2e0e9a132 100644 --- a/typedapi/types/enums/textquerytype/textquerytype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package textquerytype package textquerytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L559-L585 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L559-L585 type TextQueryType struct { Name string } diff --git a/typedapi/types/enums/threadtype/threadtype.go b/typedapi/types/enums/threadtype/threadtype.go index 123d7a65d0..457e65c14c 100644 --- a/typedapi/types/enums/threadtype/threadtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package threadtype package threadtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L301-L307 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L301-L307 type ThreadType struct { Name string } diff --git a/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go b/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go index 002ee09191..96b1027be5 100644 --- a/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package timeseriesmetrictype package timeseriesmetrictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/TimeSeriesMetricType.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/TimeSeriesMetricType.ts#L20-L26 type TimeSeriesMetricType struct { Name string } diff --git a/typedapi/types/enums/timeunit/timeunit.go b/typedapi/types/enums/timeunit/timeunit.go index bedf5143af..667a22a1c0 100644 --- a/typedapi/types/enums/timeunit/timeunit.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package timeunit package timeunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L69-L77 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L69-L77 type TimeUnit struct { Name string } diff --git a/typedapi/types/enums/tokenchar/tokenchar.go b/typedapi/types/enums/tokenchar/tokenchar.go index a60f6cddf5..4d92aa37b5 100644 --- a/typedapi/types/enums/tokenchar/tokenchar.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package tokenchar package tokenchar import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L59-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L59-L66 type TokenChar struct { Name string } diff --git a/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go b/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go index 2642f4b52d..94df137cd5 100644 --- a/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package tokenizationtruncate package tokenizationtruncate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L338-L342 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L369-L373 type TokenizationTruncate struct { Name string } diff --git a/typedapi/types/enums/totalhitsrelation/totalhitsrelation.go b/typedapi/types/enums/totalhitsrelation/totalhitsrelation.go index 1aa8526288..2680d4af9c 100644 --- a/typedapi/types/enums/totalhitsrelation/totalhitsrelation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package totalhitsrelation package totalhitsrelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/hits.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/hits.ts#L101-L106 type TotalHitsRelation struct { Name string } diff --git a/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go b/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go index e2a234b708..f8889e191b 100644 --- a/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package trainedmodeltype package trainedmodeltype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L314-L328 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L315-L329 type TrainedModelType struct { Name string } diff --git a/typedapi/types/enums/trainingpriority/trainingpriority.go b/typedapi/types/enums/trainingpriority/trainingpriority.go index 756974e691..ac9ee6e0be 100644 --- a/typedapi/types/enums/trainingpriority/trainingpriority.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package trainingpriority package trainingpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L364-L367 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L365-L368 type TrainingPriority struct { Name string } diff --git a/typedapi/types/enums/translogdurability/translogdurability.go b/typedapi/types/enums/translogdurability/translogdurability.go index 73649ef50e..fe9db03321 100644 --- a/typedapi/types/enums/translogdurability/translogdurability.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package translogdurability package translogdurability import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L379-L394 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L379-L394 type TranslogDurability struct { Name string } diff --git a/typedapi/types/enums/ttesttype/ttesttype.go b/typedapi/types/enums/ttesttype/ttesttype.go index 4c2a4d78fa..448932a1eb 100644 --- a/typedapi/types/enums/ttesttype/ttesttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package ttesttype package ttesttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L331-L344 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L331-L344 type TTestType struct { Name string } diff --git a/typedapi/types/enums/type_/type_.go b/typedapi/types/enums/type_/type_.go index 483570771c..1f4504fcb4 100644 --- a/typedapi/types/enums/type_/type_.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package type_ package type_ import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/_types/types.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/_types/types.ts#L20-L24 type Type struct { Name string } diff --git a/typedapi/types/enums/unassignedinformationreason/unassignedinformationreason.go b/typedapi/types/enums/unassignedinformationreason/unassignedinformationreason.go index 79f9090f79..c7e507abed 100644 --- a/typedapi/types/enums/unassignedinformationreason/unassignedinformationreason.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package unassignedinformationreason package unassignedinformationreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L138-L157 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L138-L157 type UnassignedInformationReason struct { Name string } diff --git a/typedapi/types/enums/useragentproperty/useragentproperty.go b/typedapi/types/enums/useragentproperty/useragentproperty.go index 194c86223c..700bb4d9c1 100644 --- a/typedapi/types/enums/useragentproperty/useragentproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package useragentproperty package useragentproperty import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L547-L553 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L547-L553 type UserAgentProperty struct { Name string } diff --git a/typedapi/types/enums/valuetype/valuetype.go b/typedapi/types/enums/valuetype/valuetype.go index ce5b9ca02d..f32d93fe6e 100644 --- a/typedapi/types/enums/valuetype/valuetype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package valuetype package valuetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L436-L447 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L436-L447 type ValueType struct { Name string } diff --git a/typedapi/types/enums/versiontype/versiontype.go b/typedapi/types/enums/versiontype/versiontype.go index 3c6359360e..94add5347d 100644 --- a/typedapi/types/enums/versiontype/versiontype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package versiontype package versiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L107-L126 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L107-L126 type VersionType struct { Name string } diff --git a/typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.go b/typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.go new file mode 100644 index 0000000000..08bd70c19b --- /dev/null +++ b/typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package voyageaiservicetype +package voyageaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1139-L1141 +type VoyageAIServiceType struct { + Name string +} + +var ( + Voyageai = VoyageAIServiceType{"voyageai"} +) + +func (v VoyageAIServiceType) MarshalText() (text []byte, err error) { + return []byte(v.String()), nil +} + +func (v *VoyageAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "voyageai": + *v = Voyageai + default: + *v = VoyageAIServiceType{string(text)} + } + + return nil +} + +func (v VoyageAIServiceType) String() string { + return v.Name +} diff --git a/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go b/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go new file mode 100644 index 0000000000..04ec23eb01 --- /dev/null +++ b/typedapi/types/enums/voyageaitasktype/voyageaitasktype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package voyageaitasktype +package voyageaitasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1134-L1137 +type VoyageAITaskType struct { + Name string +} + +var ( + Textembedding = VoyageAITaskType{"text_embedding"} + + Rerank = VoyageAITaskType{"rerank"} +) + +func (v VoyageAITaskType) MarshalText() (text []byte, err error) { + return []byte(v.String()), nil +} + +func (v *VoyageAITaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *v = Textembedding + case "rerank": + *v = Rerank + default: + *v = VoyageAITaskType{string(text)} + } + + return nil +} + +func (v VoyageAITaskType) String() string { + return v.Name +} diff --git a/typedapi/types/enums/waitforactiveshardoptions/waitforactiveshardoptions.go b/typedapi/types/enums/waitforactiveshardoptions/waitforactiveshardoptions.go index b0df8c82bb..fa047b4c5e 100644 --- a/typedapi/types/enums/waitforactiveshardoptions/waitforactiveshardoptions.go +++ b/typedapi/types/enums/waitforactiveshardoptions/waitforactiveshardoptions.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package waitforactiveshardoptions package waitforactiveshardoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L309-L313 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L309-L313 type WaitForActiveShardOptions struct { Name string } diff --git a/typedapi/types/enums/waitforevents/waitforevents.go b/typedapi/types/enums/waitforevents/waitforevents.go index 599ddd1b53..6f55a9f7f3 100644 --- a/typedapi/types/enums/waitforevents/waitforevents.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package waitforevents package waitforevents import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L315-L322 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L315-L322 type WaitForEvents struct { Name string } diff --git a/typedapi/types/enums/watchermetric/watchermetric.go b/typedapi/types/enums/watchermetric/watchermetric.go index 8f3d956abb..bcaf35066c 100644 --- a/typedapi/types/enums/watchermetric/watchermetric.go +++ b/typedapi/types/enums/watchermetric/watchermetric.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package watchermetric package watchermetric import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/stats/types.ts#L63-L69 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/stats/types.ts#L63-L69 type WatcherMetric struct { Name string } diff --git a/typedapi/types/enums/watcherstate/watcherstate.go b/typedapi/types/enums/watcherstate/watcherstate.go index 5512cd1f21..3dac4edc17 100644 --- a/typedapi/types/enums/watcherstate/watcherstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package watcherstate package watcherstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/stats/types.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/stats/types.ts#L26-L31 type WatcherState struct { Name string } diff --git a/typedapi/types/enums/watsonxservicetype/watsonxservicetype.go b/typedapi/types/enums/watsonxservicetype/watsonxservicetype.go new file mode 100644 index 0000000000..10b751e873 --- /dev/null +++ b/typedapi/types/enums/watsonxservicetype/watsonxservicetype.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +// Package watsonxservicetype +package watsonxservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1186-L1188 +type WatsonxServiceType struct { + Name string +} + +var ( + Watsonxai = WatsonxServiceType{"watsonxai"} +) + +func (w WatsonxServiceType) MarshalText() (text []byte, err error) { + return []byte(w.String()), nil +} + +func (w *WatsonxServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "watsonxai": + *w = Watsonxai + default: + *w = WatsonxServiceType{string(text)} + } + + return nil +} + +func (w WatsonxServiceType) String() string { + return w.Name +} diff --git a/typedapi/types/enums/watsonxtasktype/watsonxtasktype.go b/typedapi/types/enums/watsonxtasktype/watsonxtasktype.go index 522c3fdf73..026ebc18b9 100644 --- a/typedapi/types/enums/watsonxtasktype/watsonxtasktype.go +++ b/typedapi/types/enums/watsonxtasktype/watsonxtasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package watsonxtasktype package watsonxtasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_watsonx/PutWatsonxRequest.ts#L72-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1182-L1184 type WatsonxTaskType struct { Name string } diff --git a/typedapi/types/enums/xpackcategory/xpackcategory.go b/typedapi/types/enums/xpackcategory/xpackcategory.go index 5011d7b3ec..75f9ab8e01 100644 --- a/typedapi/types/enums/xpackcategory/xpackcategory.go +++ b/typedapi/types/enums/xpackcategory/xpackcategory.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package xpackcategory package xpackcategory import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/info/XPackInfoRequest.ts#L58-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/info/XPackInfoRequest.ts#L58-L62 type XPackCategory struct { Name string } diff --git a/typedapi/types/enums/zerotermsquery/zerotermsquery.go b/typedapi/types/enums/zerotermsquery/zerotermsquery.go index b22e19e5a5..b1152893af 100644 --- a/typedapi/types/enums/zerotermsquery/zerotermsquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Package zerotermsquery package zerotermsquery import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L587-L596 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L587-L596 type ZeroTermsQuery struct { Name string } diff --git a/typedapi/types/epochtimeunitmillis.go b/typedapi/types/epochtimeunitmillis.go index 991b1a7dbc..465c0e537d 100644 --- a/typedapi/types/epochtimeunitmillis.go +++ b/typedapi/types/epochtimeunitmillis.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EpochTimeUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L40-L40 type EpochTimeUnitMillis int64 type EpochTimeUnitMillisVariant interface { diff --git a/typedapi/types/epochtimeunitseconds.go b/typedapi/types/epochtimeunitseconds.go index 4f3d4e129f..a94b0522b7 100644 --- a/typedapi/types/epochtimeunitseconds.go +++ b/typedapi/types/epochtimeunitseconds.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EpochTimeUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Time.ts#L40-L40 type EpochTimeUnitSeconds int64 type EpochTimeUnitSecondsVariant interface { diff --git a/typedapi/types/eql.go b/typedapi/types/eql.go index e1ff4fa650..fb60f205bd 100644 --- a/typedapi/types/eql.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Eql type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L361-L364 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L361-L364 type Eql struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/eqlfeatures.go b/typedapi/types/eqlfeatures.go index fac77e5c61..99c8beb0be 100644 --- a/typedapi/types/eqlfeatures.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EqlFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L96-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L96-L104 type EqlFeatures struct { Event uint `json:"event"` Join uint `json:"join"` diff --git a/typedapi/types/eqlfeaturesjoin.go b/typedapi/types/eqlfeaturesjoin.go index 5734a881c0..99e6e6de4e 100644 --- a/typedapi/types/eqlfeaturesjoin.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EqlFeaturesJoin type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L106-L112 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L106-L112 type EqlFeaturesJoin struct { JoinQueriesFiveOrMore uint `json:"join_queries_five_or_more"` JoinQueriesFour uint `json:"join_queries_four"` diff --git a/typedapi/types/eqlfeatureskeys.go b/typedapi/types/eqlfeatureskeys.go index 53878eb554..7e64f184c5 100644 --- a/typedapi/types/eqlfeatureskeys.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EqlFeaturesKeys type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L114-L120 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L114-L120 type EqlFeaturesKeys struct { JoinKeysFiveOrMore uint `json:"join_keys_five_or_more"` JoinKeysFour uint `json:"join_keys_four"` diff --git a/typedapi/types/eqlfeaturespipes.go b/typedapi/types/eqlfeaturespipes.go index d1f37ed839..0e4b60266e 100644 --- a/typedapi/types/eqlfeaturespipes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EqlFeaturesPipes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L122-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L122-L125 type EqlFeaturesPipes struct { PipeHead uint `json:"pipe_head"` PipeTail uint `json:"pipe_tail"` diff --git a/typedapi/types/eqlfeaturessequences.go b/typedapi/types/eqlfeaturessequences.go index 48dfa1aa7b..172eefc9e3 100644 --- a/typedapi/types/eqlfeaturessequences.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EqlFeaturesSequences type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L127-L134 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L127-L134 type EqlFeaturesSequences struct { SequenceMaxspan uint `json:"sequence_maxspan"` SequenceQueriesFiveOrMore uint `json:"sequence_queries_five_or_more"` diff --git a/typedapi/types/eqlhits.go b/typedapi/types/eqlhits.go index 766833422b..85ee87be76 100644 --- a/typedapi/types/eqlhits.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EqlHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/_types/EqlHits.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/errorcause.go b/typedapi/types/errorcause.go index 4bf8ede6ee..1e480cf411 100644 --- a/typedapi/types/errorcause.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ErrorCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Errors.ts#L25-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Errors.ts#L25-L50 type ErrorCause struct { CausedBy *ErrorCause `json:"caused_by,omitempty"` Metadata map[string]json.RawMessage `json:"-"` diff --git a/typedapi/types/errorresponsebase.go b/typedapi/types/errorresponsebase.go index 17f4f9ce3d..1a0a5a174e 100644 --- a/typedapi/types/errorresponsebase.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ErrorResponseBase type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Base.ts#L127-L136 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Base.ts#L127-L136 type ErrorResponseBase struct { Error ErrorCause `json:"error"` Status int `json:"status"` diff --git a/typedapi/types/esqlresult.go b/typedapi/types/esqlresult.go index a824236b06..cdd77ac7f2 100644 --- a/typedapi/types/esqlresult.go +++ b/typedapi/types/esqlresult.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // EsqlResult type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Binary.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Binary.ts#L24-L24 type EsqlResult []byte diff --git a/typedapi/types/estoniananalyzer.go b/typedapi/types/estoniananalyzer.go index 2bd26512cd..8c9168868d 100644 --- a/typedapi/types/estoniananalyzer.go +++ b/typedapi/types/estoniananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // EstonianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L139-L143 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L139-L143 type EstonianAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/eventdatastream.go b/typedapi/types/eventdatastream.go index 47092866ab..a8dc80e6c8 100644 --- a/typedapi/types/eventdatastream.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // EventDataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31 type EventDataStream struct { Name string `json:"name"` } diff --git a/typedapi/types/ewmamodelsettings.go b/typedapi/types/ewmamodelsettings.go index 05760454ea..19b9a5c245 100644 --- a/typedapi/types/ewmamodelsettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // EwmaModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L293-L295 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L293-L295 type EwmaModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` } diff --git a/typedapi/types/ewmamovingaverageaggregation.go b/typedapi/types/ewmamovingaverageaggregation.go index 65b4e8b5d4..d3ee410932 100644 --- a/typedapi/types/ewmamovingaverageaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // EwmaMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L278-L281 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L278-L281 type EwmaMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/executeenrichpolicystatus.go b/typedapi/types/executeenrichpolicystatus.go index 21b06b0717..2805aa3591 100644 --- a/typedapi/types/executeenrichpolicystatus.go +++ b/typedapi/types/executeenrichpolicystatus.go @@ -16,19 +16,64 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/enrichpolicyphase" ) // ExecuteEnrichPolicyStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/execute_policy/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/execute_policy/types.ts#L20-L23 type ExecuteEnrichPolicyStatus struct { Phase enrichpolicyphase.EnrichPolicyPhase `json:"phase"` + Step *string `json:"step,omitempty"` +} + +func (s *ExecuteEnrichPolicyStatus) 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 "phase": + if err := dec.Decode(&s.Phase); err != nil { + return fmt.Errorf("%s | %w", "Phase", err) + } + + case "step": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Step", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Step = &o + + } + } + return nil } // NewExecuteEnrichPolicyStatus returns a ExecuteEnrichPolicyStatus. diff --git a/typedapi/types/executingpolicy.go b/typedapi/types/executingpolicy.go index 82d27d3894..a0cbb5cfae 100644 --- a/typedapi/types/executingpolicy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ExecutingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/stats/types.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/stats/types.ts#L25-L28 type ExecutingPolicy struct { Name string `json:"name"` Task TaskInfo `json:"task"` diff --git a/typedapi/types/executionresult.go b/typedapi/types/executionresult.go index b6f9c6f502..8711f5355b 100644 --- a/typedapi/types/executionresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ExecutionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Execution.ts#L60-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Execution.ts#L60-L66 type ExecutionResult struct { Actions []ExecutionResultAction `json:"actions"` Condition ExecutionResultCondition `json:"condition"` diff --git a/typedapi/types/executionresultaction.go b/typedapi/types/executionresultaction.go index 32255c241f..cb488a6c30 100644 --- a/typedapi/types/executionresultaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // ExecutionResultAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Execution.ts#L74-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Execution.ts#L74-L86 type ExecutionResultAction struct { Email *EmailResult `json:"email,omitempty"` Error *ErrorCause `json:"error,omitempty"` diff --git a/typedapi/types/executionresultcondition.go b/typedapi/types/executionresultcondition.go index ae3e841daf..bfd300791b 100644 --- a/typedapi/types/executionresultcondition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // ExecutionResultCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Execution.ts#L68-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Execution.ts#L68-L72 type ExecutionResultCondition struct { Met bool `json:"met"` Status actionstatusoptions.ActionStatusOptions `json:"status"` diff --git a/typedapi/types/executionresultinput.go b/typedapi/types/executionresultinput.go index 330387e52e..25bd957b77 100644 --- a/typedapi/types/executionresultinput.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ import ( // ExecutionResultInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Execution.ts#L88-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/executionstate.go b/typedapi/types/executionstate.go index d5ee793b70..9621d41528 100644 --- a/typedapi/types/executionstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExecutionState type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L114-L118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L114-L118 type ExecutionState struct { Reason *string `json:"reason,omitempty"` Successful bool `json:"successful"` diff --git a/typedapi/types/executionthreadpool.go b/typedapi/types/executionthreadpool.go index 213291dd50..606ef2c93a 100644 --- a/typedapi/types/executionthreadpool.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExecutionThreadPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Execution.ts#L94-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Execution.ts#L94-L103 type ExecutionThreadPool struct { // MaxSize The largest size of the execution thread pool, which indicates the largest // number of concurrent running watches. diff --git a/typedapi/types/existsquery.go b/typedapi/types/existsquery.go index 8ca3256653..47443c9a12 100644 --- a/typedapi/types/existsquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExistsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L38-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L38-L46 type ExistsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/expandwildcards.go b/typedapi/types/expandwildcards.go index 082c0a5949..5db5e27b13 100644 --- a/typedapi/types/expandwildcards.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // ExpandWildcards type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L221-L221 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L221-L221 type ExpandWildcards []expandwildcard.ExpandWildcard type ExpandWildcardsVariant interface { diff --git a/typedapi/types/explainanalyzetoken.go b/typedapi/types/explainanalyzetoken.go index 4037417561..0c04fc1bf9 100644 --- a/typedapi/types/explainanalyzetoken.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExplainAnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/types.ts#L52-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/analyze/types.ts#L52-L67 type ExplainAnalyzeToken struct { Bytes string `json:"bytes"` EndOffset int64 `json:"end_offset"` diff --git a/typedapi/types/explanation.go b/typedapi/types/explanation.go index 1c462eb818..0a35da975f 100644 --- a/typedapi/types/explanation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Explanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/explain/types.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/explain/types.ts#L22-L26 type Explanation struct { Description string `json:"description"` Details []ExplanationDetail `json:"details"` diff --git a/typedapi/types/explanationdetail.go b/typedapi/types/explanationdetail.go index 3683a0ef86..b54248932d 100644 --- a/typedapi/types/explanationdetail.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExplanationDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/explain/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/explain/types.ts#L28-L32 type ExplanationDetail struct { Description string `json:"description"` Details []ExplanationDetail `json:"details,omitempty"` diff --git a/typedapi/types/explorecontrols.go b/typedapi/types/explorecontrols.go index d958f0414f..a3b6671a07 100644 --- a/typedapi/types/explorecontrols.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExploreControls type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/_types/ExploreControls.ts#L24-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/exponentialaveragecalculationcontext.go b/typedapi/types/exponentialaveragecalculationcontext.go index 1c531e17d6..b6675bb2fa 100644 --- a/typedapi/types/exponentialaveragecalculationcontext.go +++ b/typedapi/types/exponentialaveragecalculationcontext.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ExponentialAverageCalculationContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L204-L208 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L204-L208 type ExponentialAverageCalculationContext struct { IncrementalMetricValueMs Float64 `json:"incremental_metric_value_ms"` LatestTimestamp *int64 `json:"latest_timestamp,omitempty"` diff --git a/typedapi/types/extendedboundsdouble.go b/typedapi/types/extendedboundsdouble.go index 7b123c1ef4..2b50af9bdc 100644 --- a/typedapi/types/extendedboundsdouble.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExtendedBoundsdouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L508-L517 type ExtendedBoundsdouble struct { // Max Maximum value for the bound. Max *Float64 `json:"max,omitempty"` diff --git a/typedapi/types/extendedboundsfielddatemath.go b/typedapi/types/extendedboundsfielddatemath.go index 948bf36999..1879da0cf6 100644 --- a/typedapi/types/extendedboundsfielddatemath.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ExtendedBoundsFieldDateMath type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L508-L517 type ExtendedBoundsFieldDateMath struct { // Max Maximum value for the bound. Max FieldDateMath `json:"max,omitempty"` diff --git a/typedapi/types/extendedmemorystats.go b/typedapi/types/extendedmemorystats.go index 8b0d21c4e0..d4bc5d56e8 100644 --- a/typedapi/types/extendedmemorystats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExtendedMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L658-L667 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L658-L667 type ExtendedMemoryStats struct { // AdjustedTotalInBytes If the amount of physical memory has been overridden using the // `es`.`total_memory_bytes` system property then this reports the overridden diff --git a/typedapi/types/extendedstatsaggregate.go b/typedapi/types/extendedstatsaggregate.go index 9c523831f5..472ca312bb 100644 --- a/typedapi/types/extendedstatsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L299-L320 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L299-L320 type ExtendedStatsAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` diff --git a/typedapi/types/extendedstatsaggregation.go b/typedapi/types/extendedstatsaggregation.go index e31a94ac83..c3b8488299 100644 --- a/typedapi/types/extendedstatsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L101-L106 type ExtendedStatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/extendedstatsbucketaggregate.go b/typedapi/types/extendedstatsbucketaggregate.go index 9c0406daa6..20c0b1d9a1 100644 --- a/typedapi/types/extendedstatsbucketaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L322-L323 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L322-L323 type ExtendedStatsBucketAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` diff --git a/typedapi/types/extendedstatsbucketaggregation.go b/typedapi/types/extendedstatsbucketaggregation.go index f03dafd3f1..14a9472ba2 100644 --- a/typedapi/types/extendedstatsbucketaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ExtendedStatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L218-L223 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L218-L223 type ExtendedStatsBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/failprocessor.go b/typedapi/types/failprocessor.go index 8cb5a8521e..73c7bba4e9 100644 --- a/typedapi/types/failprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FailProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L888-L894 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L888-L894 type FailProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/failurestore.go b/typedapi/types/failurestore.go index 565fd275f9..d34490c974 100644 --- a/typedapi/types/failurestore.go +++ b/typedapi/types/failurestore.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FailureStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/DataStream.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/DataStream.ts#L39-L43 type FailureStore struct { Enabled bool `json:"enabled"` Indices []DataStreamIndex `json:"indices"` diff --git a/typedapi/types/feature.go b/typedapi/types/feature.go index f4cd6f8152..a01401e1cc 100644 --- a/typedapi/types/feature.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Feature type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/features/_types/Feature.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/features/_types/Feature.ts#L20-L23 type Feature struct { Description string `json:"description"` Name string `json:"name"` diff --git a/typedapi/types/featureenabled.go b/typedapi/types/featureenabled.go index 95eb571d27..d1ad36e553 100644 --- a/typedapi/types/featureenabled.go +++ b/typedapi/types/featureenabled.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FeatureEnabled type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L215-L217 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L215-L217 type FeatureEnabled struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/featureextractor.go b/typedapi/types/featureextractor.go new file mode 100644 index 0000000000..ee29227f75 --- /dev/null +++ b/typedapi/types/featureextractor.go @@ -0,0 +1,30 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +// FeatureExtractor type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L93-L96 +type FeatureExtractor QueryFeatureExtractor + +type FeatureExtractorVariant interface { + FeatureExtractorCaster() *FeatureExtractor +} diff --git a/typedapi/types/features.go b/typedapi/types/features.go index af4503ff6b..4b288f9928 100644 --- a/typedapi/types/features.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,5 +26,5 @@ import ( // Features type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get/IndicesGetRequest.ts#L103-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get/IndicesGetRequest.ts#L103-L103 type Features []feature.Feature diff --git a/typedapi/types/featuretoggle.go b/typedapi/types/featuretoggle.go index 03ee0379f8..b90bf2c82d 100644 --- a/typedapi/types/featuretoggle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FeatureToggle type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L37-L39 type FeatureToggle struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/fetchprofile.go b/typedapi/types/fetchprofile.go index 7da0fe8d44..0d490357e7 100644 --- a/typedapi/types/fetchprofile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FetchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L230-L237 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L230-L237 type FetchProfile struct { Breakdown FetchProfileBreakdown `json:"breakdown"` Children []FetchProfile `json:"children,omitempty"` diff --git a/typedapi/types/fetchprofilebreakdown.go b/typedapi/types/fetchprofilebreakdown.go index 2b23aa9424..cdd85f72c9 100644 --- a/typedapi/types/fetchprofilebreakdown.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FetchProfileBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L239-L248 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L239-L248 type FetchProfileBreakdown struct { LoadSource *int `json:"load_source,omitempty"` LoadSourceCount *int `json:"load_source_count,omitempty"` diff --git a/typedapi/types/fetchprofiledebug.go b/typedapi/types/fetchprofiledebug.go index c3510db4a0..75bdb65f95 100644 --- a/typedapi/types/fetchprofiledebug.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FetchProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L250-L253 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L250-L253 type FetchProfileDebug struct { FastPath *int `json:"fast_path,omitempty"` StoredFields []string `json:"stored_fields,omitempty"` diff --git a/typedapi/types/fieldaliasproperty.go b/typedapi/types/fieldaliasproperty.go index 889e8bc0f4..dbe4b2bb39 100644 --- a/typedapi/types/fieldaliasproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // FieldAliasProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L64-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L64-L67 type FieldAliasProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/fieldandformat.go b/typedapi/types/fieldandformat.go index c333c57e8e..08ef567307 100644 --- a/typedapi/types/fieldandformat.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldAndFormat type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/abstractions.ts#L535-L549 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/abstractions.ts#L535-L549 type FieldAndFormat struct { // Field A wildcard pattern. The request returns values for field names matching this // pattern. diff --git a/typedapi/types/fieldcapability.go b/typedapi/types/fieldcapability.go index 3b2af1fb48..b2e493272f 100644 --- a/typedapi/types/fieldcapability.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // FieldCapability type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/field_caps/types.ts#L23-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/fieldcollapse.go b/typedapi/types/fieldcollapse.go index dd7f376045..ee433a379f 100644 --- a/typedapi/types/fieldcollapse.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldCollapse type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/FieldCollapse.ts#L24-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/FieldCollapse.ts#L24-L41 type FieldCollapse struct { Collapse *FieldCollapse `json:"collapse,omitempty"` // Field The field to collapse the result set on diff --git a/typedapi/types/fielddatafrequencyfilter.go b/typedapi/types/fielddatafrequencyfilter.go index a510a39a6a..f76c5832cf 100644 --- a/typedapi/types/fielddatafrequencyfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FielddataFrequencyFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 type FielddataFrequencyFilter struct { Max Float64 `json:"max"` Min Float64 `json:"min"` diff --git a/typedapi/types/fielddatarecord.go b/typedapi/types/fielddatarecord.go index 3454892068..12ed788c9e 100644 --- a/typedapi/types/fielddatarecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FielddataRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/fielddata/types.ts#L20-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/fielddata/types.ts#L20-L48 type FielddataRecord struct { // Field field name Field *string `json:"field,omitempty"` diff --git a/typedapi/types/fielddatastats.go b/typedapi/types/fielddatastats.go index 0e1fb009f0..04cf8f3458 100644 --- a/typedapi/types/fielddatastats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FielddataStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L114-L119 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L114-L119 type FielddataStats struct { Evictions *int64 `json:"evictions,omitempty"` Fields map[string]FieldMemoryUsage `json:"fields,omitempty"` diff --git a/typedapi/types/fielddatemath.go b/typedapi/types/fielddatemath.go index 4a67941d7a..3d6b752748 100644 --- a/typedapi/types/fielddatemath.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // Float64 // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L309-L316 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L309-L316 type FieldDateMath any type FieldDateMathVariant interface { diff --git a/typedapi/types/fieldlookup.go b/typedapi/types/fieldlookup.go index 341dcc889e..6291917fac 100644 --- a/typedapi/types/fieldlookup.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // FieldLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/abstractions.ts#L436-L453 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/abstractions.ts#L436-L453 type FieldLookup struct { // Id `id` of the document. Id string `json:"id"` diff --git a/typedapi/types/fieldmapping.go b/typedapi/types/fieldmapping.go index 3d2e686fb8..e6b3f2b4df 100644 --- a/typedapi/types/fieldmapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/meta-fields.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/meta-fields.ts#L24-L27 type FieldMapping struct { FullName string `json:"full_name"` Mapping map[string]Property `json:"mapping"` diff --git a/typedapi/types/fieldmemoryusage.go b/typedapi/types/fieldmemoryusage.go index 194e67a350..e3ba50da7f 100644 --- a/typedapi/types/fieldmemoryusage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L121-L124 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L121-L124 type FieldMemoryUsage struct { MemorySize ByteSize `json:"memory_size,omitempty"` MemorySizeInBytes int64 `json:"memory_size_in_bytes"` diff --git a/typedapi/types/fieldmetric.go b/typedapi/types/fieldmetric.go index 5138d4abab..5e73d84272 100644 --- a/typedapi/types/fieldmetric.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // FieldMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/_types/Metric.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/fieldnamesfield.go b/typedapi/types/fieldnamesfield.go index c1c9445930..e142886ed4 100644 --- a/typedapi/types/fieldnamesfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldNamesField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/meta-fields.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/meta-fields.ts#L42-L44 type FieldNamesField struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/fieldrule.go b/typedapi/types/fieldrule.go index ab3b159725..795e493cff 100644 --- a/typedapi/types/fieldrule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // FieldRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleMappingRule.ts#L35-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleMappingRule.ts#L35-L43 type FieldRule struct { AdditionalFieldRuleProperty map[string]json.RawMessage `json:"-"` Dn []string `json:"dn,omitempty"` diff --git a/typedapi/types/fields.go b/typedapi/types/fields.go index e8d0f87683..e60aed9d28 100644 --- a/typedapi/types/fields.go +++ b/typedapi/types/fields.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Fields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L144-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L144-L144 type Fields []string type FieldsVariant interface { diff --git a/typedapi/types/fieldsecurity.go b/typedapi/types/fieldsecurity.go index 240a783ea5..787e4643fe 100644 --- a/typedapi/types/fieldsecurity.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // FieldSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/FieldSecurity.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/FieldSecurity.ts#L22-L25 type FieldSecurity struct { Except []string `json:"except,omitempty"` Grant []string `json:"grant,omitempty"` diff --git a/typedapi/types/fieldsizeusage.go b/typedapi/types/fieldsizeusage.go index 503aa46186..c2634c8772 100644 --- a/typedapi/types/fieldsizeusage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldSizeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L95-L98 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L95-L98 type FieldSizeUsage struct { Size ByteSize `json:"size,omitempty"` SizeInBytes int64 `json:"size_in_bytes"` diff --git a/typedapi/types/fieldsort.go b/typedapi/types/fieldsort.go index 148fbba10d..4bb2d30cfa 100644 --- a/typedapi/types/fieldsort.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // FieldSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L43-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L43-L52 type FieldSort struct { Format *string `json:"format,omitempty"` Missing Missing `json:"missing,omitempty"` diff --git a/typedapi/types/fieldstat.go b/typedapi/types/fieldstat.go index fc2ec09a23..69b59c5399 100644 --- a/typedapi/types/fieldstat.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/_types/Structure.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/_types/Structure.ts#L23-L33 type FieldStat struct { Cardinality int `json:"cardinality"` Count int `json:"count"` diff --git a/typedapi/types/fieldstatistics.go b/typedapi/types/fieldstatistics.go index fb4d10edbf..6c12fb745e 100644 --- a/typedapi/types/fieldstatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/termvectors/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/termvectors/types.ts#L28-L32 type FieldStatistics struct { DocCount int `json:"doc_count"` SumDocFreq int64 `json:"sum_doc_freq"` diff --git a/typedapi/types/fieldsuggester.go b/typedapi/types/fieldsuggester.go index c1b902caa1..52324cc925 100644 --- a/typedapi/types/fieldsuggester.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L109-L142 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L109-L142 type FieldSuggester struct { AdditionalFieldSuggesterProperty map[string]json.RawMessage `json:"-"` // Completion Provides auto-complete/search-as-you-type functionality. diff --git a/typedapi/types/fieldsummary.go b/typedapi/types/fieldsummary.go index 9086e984a6..7c791eb173 100644 --- a/typedapi/types/fieldsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // FieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L57-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L57-L66 type FieldSummary struct { Any uint `json:"any"` DocValues uint `json:"doc_values"` diff --git a/typedapi/types/fieldtypes.go b/typedapi/types/fieldtypes.go index c00c21d0f8..3acd78ecaf 100644 --- a/typedapi/types/fieldtypes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L136-L167 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/fieldtypesmappings.go b/typedapi/types/fieldtypesmappings.go index 3309b8da3a..3336e5ec46 100644 --- a/typedapi/types/fieldtypesmappings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FieldTypesMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L109-L134 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/fieldvalue.go b/typedapi/types/fieldvalue.go index 1d12e8193f..0400e478ab 100644 --- a/typedapi/types/fieldvalue.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ package types // nil // json.RawMessage // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L25-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L25-L37 type FieldValue any type FieldValueVariant interface { diff --git a/typedapi/types/fieldvaluefactorscorefunction.go b/typedapi/types/fieldvaluefactorscorefunction.go index 5676801d26..61ccf41a3f 100644 --- a/typedapi/types/fieldvaluefactorscorefunction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // FieldValueFactorScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L149-L168 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L149-L168 type FieldValueFactorScoreFunction struct { // Factor Optional factor to multiply the field value with. Factor *Float64 `json:"factor,omitempty"` diff --git a/typedapi/types/filecountsnapshotstats.go b/typedapi/types/filecountsnapshotstats.go index 7501861227..7cc804c05e 100644 --- a/typedapi/types/filecountsnapshotstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FileCountSnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 type FileCountSnapshotStats struct { FileCount int `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` diff --git a/typedapi/types/filedetails.go b/typedapi/types/filedetails.go index 6ab383f99d..e519473d2e 100644 --- a/typedapi/types/filedetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FileDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L50-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/recovery/types.ts#L50-L54 type FileDetails struct { Length int64 `json:"length"` Name string `json:"name"` diff --git a/typedapi/types/filesystem.go b/typedapi/types/filesystem.go index 13eeb47dc0..01972124a7 100644 --- a/typedapi/types/filesystem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L769-L787 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L769-L787 type FileSystem struct { // Data List of all file stores. Data []DataPathStats `json:"data,omitempty"` diff --git a/typedapi/types/filesystemtotal.go b/typedapi/types/filesystemtotal.go index 6479fc534f..13f511f0a9 100644 --- a/typedapi/types/filesystemtotal.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FileSystemTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L828-L857 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L828-L857 type FileSystemTotal struct { // Available Total disk space available to this Java virtual machine on all file stores. // Depending on OS or process level restrictions, this might appear less than diff --git a/typedapi/types/fillmaskinferenceoptions.go b/typedapi/types/fillmaskinferenceoptions.go index e3fcc74b22..c92137e02c 100644 --- a/typedapi/types/fillmaskinferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L253-L268 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L284-L299 type FillMaskInferenceOptions struct { // MaskToken The string/token which will be removed from incoming documents and replaced // with the inference prediction(s). diff --git a/typedapi/types/fillmaskinferenceupdateoptions.go b/typedapi/types/fillmaskinferenceupdateoptions.go index b86081e871..5f642564e8 100644 --- a/typedapi/types/fillmaskinferenceupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L399-L406 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L430-L437 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/typedapi/types/filteraggregate.go b/typedapi/types/filteraggregate.go index b49947cd04..77f509d02a 100644 --- a/typedapi/types/filteraggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // FilterAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L552-L556 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L552-L556 type FilterAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/filteringadvancedsnippet.go b/typedapi/types/filteringadvancedsnippet.go index c88dcc89ea..132eaaa103 100644 --- a/typedapi/types/filteringadvancedsnippet.go +++ b/typedapi/types/filteringadvancedsnippet.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // FilteringAdvancedSnippet type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L192-L196 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L192-L196 type FilteringAdvancedSnippet struct { CreatedAt DateTime `json:"created_at,omitempty"` UpdatedAt DateTime `json:"updated_at,omitempty"` diff --git a/typedapi/types/filteringconfig.go b/typedapi/types/filteringconfig.go index ceaf4315e9..266570058c 100644 --- a/typedapi/types/filteringconfig.go +++ b/typedapi/types/filteringconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FilteringConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L209-L213 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L209-L213 type FilteringConfig struct { Active FilteringRules `json:"active"` Domain *string `json:"domain,omitempty"` diff --git a/typedapi/types/filteringrule.go b/typedapi/types/filteringrule.go index 01874804e4..283dd73f0b 100644 --- a/typedapi/types/filteringrule.go +++ b/typedapi/types/filteringrule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // FilteringRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L170-L179 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L170-L179 type FilteringRule struct { CreatedAt DateTime `json:"created_at,omitempty"` Field string `json:"field"` diff --git a/typedapi/types/filteringrules.go b/typedapi/types/filteringrules.go index afb1c8845d..f837cac6a6 100644 --- a/typedapi/types/filteringrules.go +++ b/typedapi/types/filteringrules.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // FilteringRules type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L203-L207 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L203-L207 type FilteringRules struct { AdvancedSnippet FilteringAdvancedSnippet `json:"advanced_snippet"` Rules []FilteringRule `json:"rules"` diff --git a/typedapi/types/filteringrulesvalidation.go b/typedapi/types/filteringrulesvalidation.go index 90658b2cc8..b54e3ce6a7 100644 --- a/typedapi/types/filteringrulesvalidation.go +++ b/typedapi/types/filteringrulesvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // FilteringRulesValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L198-L201 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L198-L201 type FilteringRulesValidation struct { Errors []FilteringValidation `json:"errors"` State filteringvalidationstate.FilteringValidationState `json:"state"` diff --git a/typedapi/types/filteringvalidation.go b/typedapi/types/filteringvalidation.go index 43b85c4448..a72c0d471b 100644 --- a/typedapi/types/filteringvalidation.go +++ b/typedapi/types/filteringvalidation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // FilteringValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L181-L184 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L181-L184 type FilteringValidation struct { Ids []string `json:"ids"` Messages []string `json:"messages"` diff --git a/typedapi/types/filterref.go b/typedapi/types/filterref.go index ac81216406..79c34b1407 100644 --- a/typedapi/types/filterref.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // FilterRef type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Filter.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Filter.ts#L31-L41 type FilterRef struct { // FilterId The identifier for the filter. FilterId string `json:"filter_id"` diff --git a/typedapi/types/filtersaggregate.go b/typedapi/types/filtersaggregate.go index 6e5494d50c..c83b997379 100644 --- a/typedapi/types/filtersaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // FiltersAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L639-L643 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L639-L643 type FiltersAggregate struct { Buckets BucketsFiltersBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/filtersaggregation.go b/typedapi/types/filtersaggregation.go index da3ebee50e..5a0f97596d 100644 --- a/typedapi/types/filtersaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L374-L394 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L374-L394 type FiltersAggregation struct { // Filters Collection of queries from which to build buckets. Filters BucketsQuery `json:"filters,omitempty"` diff --git a/typedapi/types/filtersbucket.go b/typedapi/types/filtersbucket.go index 799d73c29d..bdabf7edd3 100644 --- a/typedapi/types/filtersbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // FiltersBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L645-L645 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L645-L645 type FiltersBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/fingerprintanalyzer.go b/typedapi/types/fingerprintanalyzer.go index 139f99b139..7348061794 100644 --- a/typedapi/types/fingerprintanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FingerprintAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L37-L45 type FingerprintAnalyzer struct { MaxOutputSize int `json:"max_output_size"` PreserveOriginal bool `json:"preserve_original"` diff --git a/typedapi/types/fingerprintprocessor.go b/typedapi/types/fingerprintprocessor.go index c481beb6b6..29100145f2 100644 --- a/typedapi/types/fingerprintprocessor.go +++ b/typedapi/types/fingerprintprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // FingerprintProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L904-L932 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L904-L932 type FingerprintProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/fingerprinttokenfilter.go b/typedapi/types/fingerprinttokenfilter.go index 18ec288203..92e6a906d5 100644 --- a/typedapi/types/fingerprinttokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FingerprintTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L195-L199 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L195-L199 type FingerprintTokenFilter struct { MaxOutputSize *int `json:"max_output_size,omitempty"` Separator *string `json:"separator,omitempty"` diff --git a/typedapi/types/finnishanalyzer.go b/typedapi/types/finnishanalyzer.go index cab2c0c6f7..ddb1a0960a 100644 --- a/typedapi/types/finnishanalyzer.go +++ b/typedapi/types/finnishanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FinnishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L145-L150 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L145-L150 type FinnishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/flattened.go b/typedapi/types/flattened.go index ced9f49684..8327a1bd90 100644 --- a/typedapi/types/flattened.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Flattened type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L366-L368 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L366-L368 type Flattened struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/flattenedproperty.go b/typedapi/types/flattenedproperty.go index 20758dd243..f2acb61ed4 100644 --- a/typedapi/types/flattenedproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // FlattenedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/complex.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/complex.ts#L26-L37 type FlattenedProperty struct { Boost *Float64 `json:"boost,omitempty"` DepthLimit *int `json:"depth_limit,omitempty"` diff --git a/typedapi/types/floatnumberproperty.go b/typedapi/types/floatnumberproperty.go index 7131eb5760..b62830bf17 100644 --- a/typedapi/types/floatnumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // FloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L146-L149 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L156-L159 type FloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/floatrangeproperty.go b/typedapi/types/floatrangeproperty.go index cae27b80d6..0b38df61ef 100644 --- a/typedapi/types/floatrangeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // FloatRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/range.ts#L38-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/range.ts#L38-L40 type FloatRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/flushstats.go b/typedapi/types/flushstats.go index afe2c53d3b..e12d2f6cf7 100644 --- a/typedapi/types/flushstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FlushStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L126-L131 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L126-L131 type FlushStats struct { Periodic int64 `json:"periodic"` Total int64 `json:"total"` diff --git a/typedapi/types/followerindex.go b/typedapi/types/followerindex.go index c855224fc5..1e48195330 100644 --- a/typedapi/types/followerindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // FollowerIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/follow_info/types.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/follow_info/types.ts#L24-L35 type FollowerIndex struct { // FollowerIndex The name of the follower index. FollowerIndex string `json:"follower_index"` diff --git a/typedapi/types/followerindexparameters.go b/typedapi/types/followerindexparameters.go index 078e7ca875..921bec53b6 100644 --- a/typedapi/types/followerindexparameters.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FollowerIndexParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/follow_info/types.ts#L42-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/follow_info/types.ts#L42-L88 type FollowerIndexParameters struct { // MaxOutstandingReadRequests The maximum number of outstanding reads requests from the remote cluster. MaxOutstandingReadRequests *int64 `json:"max_outstanding_read_requests,omitempty"` diff --git a/typedapi/types/followindexstats.go b/typedapi/types/followindexstats.go index edc76ad4d9..1db31028e0 100644 --- a/typedapi/types/followindexstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // FollowIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/_types/FollowIndexStats.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/_types/FollowIndexStats.ts#L30-L35 type FollowIndexStats struct { // Index The name of the follower index. Index string `json:"index"` diff --git a/typedapi/types/followstats.go b/typedapi/types/followstats.go index 86ae9454db..9eecef7e5f 100644 --- a/typedapi/types/followstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // FollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/stats/types.ts.ts#L49-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/stats/types.ts.ts#L49-L51 type FollowStats struct { Indices []FollowIndexStats `json:"indices"` } diff --git a/typedapi/types/forcemergeaction.go b/typedapi/types/forcemergeaction.go index 7e26b8e484..a6820ebe2d 100644 --- a/typedapi/types/forcemergeaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ForceMergeAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L123-L126 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L123-L126 type ForceMergeAction struct { IndexCodec *string `json:"index_codec,omitempty"` MaxNumSegments int `json:"max_num_segments"` diff --git a/typedapi/types/foreachprocessor.go b/typedapi/types/foreachprocessor.go index 10561a5117..aa9d34924b 100644 --- a/typedapi/types/foreachprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ForeachProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L934-L948 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L934-L948 type ForeachProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/foundstatus.go b/typedapi/types/foundstatus.go index 18027da7de..e094b1a225 100644 --- a/typedapi/types/foundstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FoundStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/delete_privileges/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/delete_privileges/types.ts#L20-L22 type FoundStatus struct { Found bool `json:"found"` } diff --git a/typedapi/types/frenchanalyzer.go b/typedapi/types/frenchanalyzer.go index c8da905277..3679449f0e 100644 --- a/typedapi/types/frenchanalyzer.go +++ b/typedapi/types/frenchanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FrenchAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L152-L157 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L152-L157 type FrenchAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/frequencyencodingpreprocessor.go b/typedapi/types/frequencyencodingpreprocessor.go index e1f3458191..b53c90161a 100644 --- a/typedapi/types/frequencyencodingpreprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FrequencyEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_trained_model/types.ts#L38-L42 type FrequencyEncodingPreprocessor struct { FeatureName string `json:"feature_name"` Field string `json:"field"` diff --git a/typedapi/types/frequentitemsetsaggregate.go b/typedapi/types/frequentitemsetsaggregate.go index d965f08aa6..1d2b759b20 100644 --- a/typedapi/types/frequentitemsetsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L722-L723 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L722-L723 type FrequentItemSetsAggregate struct { Buckets BucketsFrequentItemSetsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/frequentitemsetsaggregation.go b/typedapi/types/frequentitemsetsaggregation.go index ae7134d2ca..27f7b2b3cc 100644 --- a/typedapi/types/frequentitemsetsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FrequentItemSetsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1240-L1267 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1240-L1267 type FrequentItemSetsAggregation struct { // Fields Fields to analyze. Fields []FrequentItemSetsField `json:"fields"` diff --git a/typedapi/types/frequentitemsetsbucket.go b/typedapi/types/frequentitemsetsbucket.go index 0b6bb30965..3f33ff84c0 100644 --- a/typedapi/types/frequentitemsetsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // FrequentItemSetsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L725-L728 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L725-L728 type FrequentItemSetsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/frequentitemsetsfield.go b/typedapi/types/frequentitemsetsfield.go index 91c267fb44..4b5e0ec241 100644 --- a/typedapi/types/frequentitemsetsfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1226-L1238 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1226-L1238 type FrequentItemSetsField struct { // Exclude Values to exclude. // Can be regular expression strings or arrays of strings of exact terms. diff --git a/typedapi/types/frozenindices.go b/typedapi/types/frozenindices.go index d43baa7a04..1f320a8fea 100644 --- a/typedapi/types/frozenindices.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FrozenIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L370-L372 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L370-L372 type FrozenIndices struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/functionscore.go b/typedapi/types/functionscore.go index 468aa22656..427f1a469c 100644 --- a/typedapi/types/functionscore.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FunctionScore type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L226-L266 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L226-L266 type FunctionScore struct { AdditionalFunctionScoreProperty map[string]json.RawMessage `json:"-"` // Exp Function that scores a document with a exponential decay, depending on the diff --git a/typedapi/types/functionscorequery.go b/typedapi/types/functionscorequery.go index 18be3550fe..dffde24b99 100644 --- a/typedapi/types/functionscorequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // FunctionScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L105-L135 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L105-L135 type FunctionScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/fuzziness.go b/typedapi/types/fuzziness.go index 71691a7dd0..9f995926bb 100644 --- a/typedapi/types/fuzziness.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L137-L138 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L137-L138 type Fuzziness any type FuzzinessVariant interface { diff --git a/typedapi/types/fuzzyquery.go b/typedapi/types/fuzzyquery.go index f50e2733b5..7540b2957e 100644 --- a/typedapi/types/fuzzyquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // FuzzyQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L48-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L48-L86 type FuzzyQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/galiciananalyzer.go b/typedapi/types/galiciananalyzer.go index a03f61d032..75a84a2be0 100644 --- a/typedapi/types/galiciananalyzer.go +++ b/typedapi/types/galiciananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GalicianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L159-L164 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L159-L164 type GalicianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/garbagecollector.go b/typedapi/types/garbagecollector.go index b8dc0281fa..fc31f656a4 100644 --- a/typedapi/types/garbagecollector.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // GarbageCollector type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L994-L999 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L994-L999 type GarbageCollector struct { // Collectors Contains statistics about JVM garbage collectors for the node. Collectors map[string]GarbageCollectorTotal `json:"collectors,omitempty"` diff --git a/typedapi/types/garbagecollectortotal.go b/typedapi/types/garbagecollectortotal.go index 5728bf660c..72fb252cef 100644 --- a/typedapi/types/garbagecollectortotal.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GarbageCollectorTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1001-L1014 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1001-L1014 type GarbageCollectorTotal struct { // CollectionCount Total number of JVM garbage collectors that collect objects. CollectionCount *int64 `json:"collection_count,omitempty"` diff --git a/typedapi/types/gcsrepository.go b/typedapi/types/gcsrepository.go index bcfe06ed6e..2658625a50 100644 --- a/typedapi/types/gcsrepository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GcsRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L45-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L45-L48 type GcsRepository struct { Settings GcsRepositorySettings `json:"settings"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/gcsrepositorysettings.go b/typedapi/types/gcsrepositorysettings.go index 4dbbe90002..d6286c69c4 100644 --- a/typedapi/types/gcsrepositorysettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GcsRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L85-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/geoboundingboxquery.go b/typedapi/types/geoboundingboxquery.go index b0cb3bc7eb..505a768dc6 100644 --- a/typedapi/types/geoboundingboxquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // GeoBoundingBoxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L35-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L35-L57 type GeoBoundingBoxQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/geobounds.go b/typedapi/types/geobounds.go index 79f41b0ed8..d6c17b0259 100644 --- a/typedapi/types/geobounds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ package types // TopRightBottomLeftGeoBounds // WktGeoBounds // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L135-L148 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L135-L148 type GeoBounds any type GeoBoundsVariant interface { diff --git a/typedapi/types/geoboundsaggregate.go b/typedapi/types/geoboundsaggregate.go index b989d5041d..2caf64b05f 100644 --- a/typedapi/types/geoboundsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoBoundsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L327-L333 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L327-L333 type GeoBoundsAggregate struct { Bounds GeoBounds `json:"bounds,omitempty"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geoboundsaggregation.go b/typedapi/types/geoboundsaggregation.go index 35b302679a..e482a4421e 100644 --- a/typedapi/types/geoboundsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoBoundsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L108-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L108-L117 type GeoBoundsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/geocentroidaggregate.go b/typedapi/types/geocentroidaggregate.go index 1fd907ef84..d03bfe97f9 100644 --- a/typedapi/types/geocentroidaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L335-L342 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L335-L342 type GeoCentroidAggregate struct { Count int64 `json:"count"` Location GeoLocation `json:"location,omitempty"` diff --git a/typedapi/types/geocentroidaggregation.go b/typedapi/types/geocentroidaggregation.go index aee9fd4ded..c44e1fda3a 100644 --- a/typedapi/types/geocentroidaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L119-L122 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L119-L122 type GeoCentroidAggregation struct { Count *int64 `json:"count,omitempty"` // Field The field on which to run the aggregation. diff --git a/typedapi/types/geodecayfunction.go b/typedapi/types/geodecayfunction.go index 8f3f238129..1ddf301afb 100644 --- a/typedapi/types/geodecayfunction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ import ( // GeoDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L210-L213 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L210-L213 type GeoDecayFunction struct { DecayFunctionBaseGeoLocationDistance map[string]DecayPlacementGeoLocationDistance `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/typedapi/types/geodistanceaggregate.go b/typedapi/types/geodistanceaggregate.go index d668526c70..d78212aff1 100644 --- a/typedapi/types/geodistanceaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoDistanceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L617-L622 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L617-L622 type GeoDistanceAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geodistanceaggregation.go b/typedapi/types/geodistanceaggregation.go index 63dadcd3bf..f565e10b83 100644 --- a/typedapi/types/geodistanceaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // GeoDistanceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L396-L419 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L396-L419 type GeoDistanceAggregation struct { // DistanceType The distance calculation type. DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` diff --git a/typedapi/types/geodistancefeaturequery.go b/typedapi/types/geodistancefeaturequery.go index 7622d4afac..dd355a582c 100644 --- a/typedapi/types/geodistancefeaturequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L66-L69 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L66-L69 type GeoDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/geodistancequery.go b/typedapi/types/geodistancequery.go index 01b0ef124c..6b75cf6bfc 100644 --- a/typedapi/types/geodistancequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // GeoDistanceQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L64-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L64-L96 type GeoDistanceQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/geodistancesort.go b/typedapi/types/geodistancesort.go index a7f5764653..cd19c26e42 100644 --- a/typedapi/types/geodistancesort.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // GeoDistanceSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L58-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L58-L70 type GeoDistanceSort struct { DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` GeoDistanceSort map[string][]GeoLocation `json:"-"` diff --git a/typedapi/types/geogridprocessor.go b/typedapi/types/geogridprocessor.go index edfa27300b..3107deced4 100644 --- a/typedapi/types/geogridprocessor.go +++ b/typedapi/types/geogridprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // GeoGridProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L388-L429 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L388-L429 type GeoGridProcessor struct { // ChildrenField If specified and children tiles exist, save those tile addresses to this // field as an array of strings. diff --git a/typedapi/types/geogridquery.go b/typedapi/types/geogridquery.go index 4231bc4aa2..24cb6d03b6 100644 --- a/typedapi/types/geogridquery.go +++ b/typedapi/types/geogridquery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoGridQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L98-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L98-L103 type GeoGridQuery struct { AdditionalGeoGridQueryProperty map[string]json.RawMessage `json:"-"` // Boost Floating point number used to decrease or increase the relevance scores of diff --git a/typedapi/types/geohashgridaggregate.go b/typedapi/types/geohashgridaggregate.go index ba4bb3ce89..00e0f77607 100644 --- a/typedapi/types/geohashgridaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoHashGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L566-L568 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L566-L568 type GeoHashGridAggregate struct { Buckets BucketsGeoHashGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geohashgridaggregation.go b/typedapi/types/geohashgridaggregation.go index c4326e55a5..1d37d6b2b5 100644 --- a/typedapi/types/geohashgridaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoHashGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L421-L449 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L421-L449 type GeoHashGridAggregation struct { // Bounds The bounding box to filter the points in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` diff --git a/typedapi/types/geohashgridbucket.go b/typedapi/types/geohashgridbucket.go index de5f189899..259f340870 100644 --- a/typedapi/types/geohashgridbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // GeoHashGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L570-L572 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L570-L572 type GeoHashGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/geohashlocation.go b/typedapi/types/geohashlocation.go index de035ba212..83a1cda3be 100644 --- a/typedapi/types/geohashlocation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoHashLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L131-L133 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L131-L133 type GeoHashLocation struct { Geohash string `json:"geohash"` } diff --git a/typedapi/types/geohashprecision.go b/typedapi/types/geohashprecision.go index 87595f4ae4..b1a68e7892 100644 --- a/typedapi/types/geohashprecision.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L86-L90 type GeoHashPrecision any type GeoHashPrecisionVariant interface { diff --git a/typedapi/types/geohexgridaggregate.go b/typedapi/types/geohexgridaggregate.go index 2fbdcbc0d4..b34cc6b396 100644 --- a/typedapi/types/geohexgridaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoHexGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L585-L586 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L585-L586 type GeoHexGridAggregate struct { Buckets BucketsGeoHexGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geohexgridaggregation.go b/typedapi/types/geohexgridaggregation.go index c8919460db..234bf98bef 100644 --- a/typedapi/types/geohexgridaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeohexGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L479-L504 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L479-L504 type GeohexGridAggregation struct { // Bounds Bounding box used to filter the geo-points in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` diff --git a/typedapi/types/geohexgridbucket.go b/typedapi/types/geohexgridbucket.go index 8a7cd08e6f..4278f94a69 100644 --- a/typedapi/types/geohexgridbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // GeoHexGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L588-L590 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L588-L590 type GeoHexGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/geoipdatabaseconfigurationmetadata.go b/typedapi/types/geoipdatabaseconfigurationmetadata.go index 89e062b7f2..fc033f89b6 100644 --- a/typedapi/types/geoipdatabaseconfigurationmetadata.go +++ b/typedapi/types/geoipdatabaseconfigurationmetadata.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoipDatabaseConfigurationMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34 type GeoipDatabaseConfigurationMetadata struct { Database DatabaseConfiguration `json:"database"` Id string `json:"id"` diff --git a/typedapi/types/geoipdownloadstatistics.go b/typedapi/types/geoipdownloadstatistics.go index e779614b4a..2df7187dcb 100644 --- a/typedapi/types/geoipdownloadstatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoIpDownloadStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/geo_ip_stats/types.ts#L24-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/geo_ip_stats/types.ts#L24-L37 type GeoIpDownloadStatistics struct { // DatabasesCount Current number of databases available for use. DatabasesCount int `json:"databases_count"` diff --git a/typedapi/types/geoipnodedatabasename.go b/typedapi/types/geoipnodedatabasename.go index baea391d68..497a74fdc3 100644 --- a/typedapi/types/geoipnodedatabasename.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoIpNodeDatabaseName type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/geo_ip_stats/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/geo_ip_stats/types.ts#L47-L50 type GeoIpNodeDatabaseName struct { // Name Name of the database. Name string `json:"name"` diff --git a/typedapi/types/geoipnodedatabases.go b/typedapi/types/geoipnodedatabases.go index 569b43a18e..4f2409718e 100644 --- a/typedapi/types/geoipnodedatabases.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // GeoIpNodeDatabases type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/geo_ip_stats/types.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/geo_ip_stats/types.ts#L39-L45 type GeoIpNodeDatabases struct { // Databases Downloaded databases for the node. Databases []GeoIpNodeDatabaseName `json:"databases"` diff --git a/typedapi/types/geoipprocessor.go b/typedapi/types/geoipprocessor.go index 8c6c5048b0..c782d46fa3 100644 --- a/typedapi/types/geoipprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoIpProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L442-L476 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L442-L476 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/typedapi/types/geoline.go b/typedapi/types/geoline.go index 36be130a68..b69e58b682 100644 --- a/typedapi/types/geoline.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoLine type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L56-L62 type GeoLine struct { // Coordinates Array of `[lon, lat]` coordinates Coordinates [][]Float64 `json:"coordinates"` diff --git a/typedapi/types/geolineaggregate.go b/typedapi/types/geolineaggregate.go index 44b1c387e0..5bd1d01cb8 100644 --- a/typedapi/types/geolineaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoLineAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L902-L912 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L902-L912 type GeoLineAggregate struct { Geometry GeoLine `json:"geometry"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geolineaggregation.go b/typedapi/types/geolineaggregation.go index a60a99a2b8..8cdeea2ce2 100644 --- a/typedapi/types/geolineaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // GeoLineAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L124-L149 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L124-L149 type GeoLineAggregation struct { // IncludeSort When `true`, returns an additional array of the sort values in the feature // properties. diff --git a/typedapi/types/geolinepoint.go b/typedapi/types/geolinepoint.go index cdd75b371d..a8e5868833 100644 --- a/typedapi/types/geolinepoint.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoLinePoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L158-L163 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L158-L163 type GeoLinePoint struct { // Field The name of the geo_point field. Field string `json:"field"` diff --git a/typedapi/types/geolinesort.go b/typedapi/types/geolinesort.go index 065ac872a6..7a69703ef6 100644 --- a/typedapi/types/geolinesort.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoLineSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L151-L156 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L151-L156 type GeoLineSort struct { // Field The name of the numeric field to use as the sort key for ordering the points. Field string `json:"field"` diff --git a/typedapi/types/geolocation.go b/typedapi/types/geolocation.go index 95a4a5bd77..6c41114a33 100644 --- a/typedapi/types/geolocation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ package types // []Float64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L104-L118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L104-L118 type GeoLocation any type GeoLocationVariant interface { diff --git a/typedapi/types/geopointproperty.go b/typedapi/types/geopointproperty.go index 8ce445db6d..d70b5820c5 100644 --- a/typedapi/types/geopointproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // GeoPointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/geo.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/geo.ts#L24-L32 type GeoPointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/geopolygonpoints.go b/typedapi/types/geopolygonpoints.go index 8bdf27bbc7..8c87fc8953 100644 --- a/typedapi/types/geopolygonpoints.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // GeoPolygonPoints type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L105-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L105-L107 type GeoPolygonPoints struct { Points []GeoLocation `json:"points"` } diff --git a/typedapi/types/geopolygonquery.go b/typedapi/types/geopolygonquery.go index 7d084ac105..c3fcc6f7ff 100644 --- a/typedapi/types/geopolygonquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // GeoPolygonQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L109-L121 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L109-L121 type GeoPolygonQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/georesults.go b/typedapi/types/georesults.go index d0d6bfa1f4..3ca4471ba8 100644 --- a/typedapi/types/georesults.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Anomaly.ts#L146-L155 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Anomaly.ts#L146-L155 type GeoResults struct { // ActualPoint The actual value for the bucket formatted as a `geo_point`. ActualPoint *string `json:"actual_point,omitempty"` diff --git a/typedapi/types/geoshapefieldquery.go b/typedapi/types/geoshapefieldquery.go index 70fd60b16e..954b544f30 100644 --- a/typedapi/types/geoshapefieldquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // GeoShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L128-L139 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L128-L139 type GeoShapeFieldQuery struct { // IndexedShape Query using an indexed shape retrieved from the the specified document and // path. diff --git a/typedapi/types/geoshapeproperty.go b/typedapi/types/geoshapeproperty.go index 007d6ba57d..b6e1e2ad68 100644 --- a/typedapi/types/geoshapeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // GeoShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/geo.ts#L41-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/geo.ts#L41-L55 type GeoShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -46,6 +46,7 @@ type GeoShapeProperty struct { IgnoreAbove *int `json:"ignore_above,omitempty"` IgnoreMalformed *bool `json:"ignore_malformed,omitempty"` IgnoreZValue *bool `json:"ignore_z_value,omitempty"` + Index *bool `json:"index,omitempty"` // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Orientation *geoorientation.GeoOrientation `json:"orientation,omitempty"` @@ -495,6 +496,20 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error { s.IgnoreZValue = &v } + case "index": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Index", err) + } + s.Index = &value + case bool: + s.Index = &v + } + case "meta": if s.Meta == nil { s.Meta = make(map[string]string, 0) @@ -885,6 +900,7 @@ func (s GeoShapeProperty) MarshalJSON() ([]byte, error) { IgnoreAbove: s.IgnoreAbove, IgnoreMalformed: s.IgnoreMalformed, IgnoreZValue: s.IgnoreZValue, + Index: s.Index, Meta: s.Meta, Orientation: s.Orientation, Properties: s.Properties, diff --git a/typedapi/types/geoshapequery.go b/typedapi/types/geoshapequery.go index 95a54b2c51..f81a554a93 100644 --- a/typedapi/types/geoshapequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/geo.ts#L141-L157 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/geo.ts#L141-L157 type GeoShapeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/geotilegridaggregate.go b/typedapi/types/geotilegridaggregate.go index 8579570d6e..e8b6a4f4cd 100644 --- a/typedapi/types/geotilegridaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GeoTileGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L574-L579 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L574-L579 type GeoTileGridAggregate struct { Buckets BucketsGeoTileGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geotilegridaggregation.go b/typedapi/types/geotilegridaggregation.go index 2756f537d1..15163dd737 100644 --- a/typedapi/types/geotilegridaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L451-L477 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L451-L477 type GeoTileGridAggregation struct { // Bounds A bounding box to filter the geo-points or geo-shapes in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` diff --git a/typedapi/types/geotilegridbucket.go b/typedapi/types/geotilegridbucket.go index 43c984114a..1110ab5d35 100644 --- a/typedapi/types/geotilegridbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // GeoTileGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L581-L583 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L581-L583 type GeoTileGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/germananalyzer.go b/typedapi/types/germananalyzer.go index 35159f6698..31de7798e2 100644 --- a/typedapi/types/germananalyzer.go +++ b/typedapi/types/germananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GermanAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L166-L171 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L166-L171 type GermanAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/getmigrationfeature.go b/typedapi/types/getmigrationfeature.go index 141c7adaab..107301c20c 100644 --- a/typedapi/types/getmigrationfeature.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // GetMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/getresult.go b/typedapi/types/getresult.go index 49692670f9..f84d10cfd0 100644 --- a/typedapi/types/getresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GetResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get/types.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get/types.ts#L25-L67 type GetResult struct { // Fields If the `stored_fields` parameter is set to `true` and `found` is `true`, it // contains the document fields stored in the index. diff --git a/typedapi/types/getscriptcontext.go b/typedapi/types/getscriptcontext.go index 561d66f1d3..d15e209870 100644 --- a/typedapi/types/getscriptcontext.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GetScriptContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get_script_context/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get_script_context/types.ts#L22-L25 type GetScriptContext struct { Methods []ContextMethod `json:"methods"` Name string `json:"name"` diff --git a/typedapi/types/getstats.go b/typedapi/types/getstats.go index 5e4c70ef53..23a9f67c67 100644 --- a/typedapi/types/getstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GetStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L133-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L133-L144 type GetStats struct { Current int64 `json:"current"` ExistsTime Duration `json:"exists_time,omitempty"` diff --git a/typedapi/types/getuserprofileerrors.go b/typedapi/types/getuserprofileerrors.go index cf24ab3885..5397442a7b 100644 --- a/typedapi/types/getuserprofileerrors.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GetUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_user_profile/types.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/globalaggregate.go b/typedapi/types/globalaggregate.go index 4697482ae7..56c9bce174 100644 --- a/typedapi/types/globalaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // GlobalAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L546-L550 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L546-L550 type GlobalAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/globalaggregation.go b/typedapi/types/globalaggregation.go index 6ebd4e577b..b49ab72473 100644 --- a/typedapi/types/globalaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // GlobalAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L506-L506 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L506-L506 type GlobalAggregation struct { } diff --git a/typedapi/types/globalprivilege.go b/typedapi/types/globalprivilege.go index cd8a224b8a..14a723984e 100644 --- a/typedapi/types/globalprivilege.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // GlobalPrivilege type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L430-L432 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L430-L432 type GlobalPrivilege struct { Application ApplicationGlobalUserPrivileges `json:"application"` } diff --git a/typedapi/types/googleaistudioservicesettings.go b/typedapi/types/googleaistudioservicesettings.go new file mode 100644 index 0000000000..368e5f419c --- /dev/null +++ b/typedapi/types/googleaistudioservicesettings.go @@ -0,0 +1,112 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GoogleAiStudioServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L794-L810 +type GoogleAiStudioServiceSettings struct { + // ApiKey A valid API key of your Google Gemini account. + ApiKey string `json:"api_key"` + // ModelId The name of the model to use for the inference task. + // Refer to the Google documentation for the list of supported models. + ModelId string `json:"model_id"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Google AI Studio. + // By default, the `googleaistudio` service sets the number of requests allowed + // per minute to 360. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` +} + +func (s *GoogleAiStudioServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + } + } + return nil +} + +// NewGoogleAiStudioServiceSettings returns a GoogleAiStudioServiceSettings. +func NewGoogleAiStudioServiceSettings() *GoogleAiStudioServiceSettings { + r := &GoogleAiStudioServiceSettings{} + + return r +} + +// true + +type GoogleAiStudioServiceSettingsVariant interface { + GoogleAiStudioServiceSettingsCaster() *GoogleAiStudioServiceSettings +} + +func (s *GoogleAiStudioServiceSettings) GoogleAiStudioServiceSettingsCaster() *GoogleAiStudioServiceSettings { + return s +} diff --git a/typedapi/types/googlenormalizeddistanceheuristic.go b/typedapi/types/googlenormalizeddistanceheuristic.go index 7366fee9a0..08df80d4f6 100644 --- a/typedapi/types/googlenormalizeddistanceheuristic.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GoogleNormalizedDistanceHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L793-L798 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L793-L798 type GoogleNormalizedDistanceHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. diff --git a/typedapi/types/googlevertexaiservicesettings.go b/typedapi/types/googlevertexaiservicesettings.go new file mode 100644 index 0000000000..ee0c87dfa2 --- /dev/null +++ b/typedapi/types/googlevertexaiservicesettings.go @@ -0,0 +1,141 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GoogleVertexAIServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L821-L847 +type GoogleVertexAIServiceSettings struct { + // Location The name of the location to use for the inference task. + // Refer to the Google documentation for the list of supported locations. + Location string `json:"location"` + // ModelId The name of the model to use for the inference task. + // Refer to the Google documentation for the list of supported models. + ModelId string `json:"model_id"` + // ProjectId The name of the project to use for the inference task. + ProjectId string `json:"project_id"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Google Vertex AI. + // By default, the `googlevertexai` service sets the number of requests allowed + // per minute to 30.000. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // ServiceAccountJson A valid service account in JSON format for the Google Vertex AI API. + ServiceAccountJson string `json:"service_account_json"` +} + +func (s *GoogleVertexAIServiceSettings) 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 "location": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Location", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Location = o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "project_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ProjectId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ProjectId = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "service_account_json": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceAccountJson", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceAccountJson = o + + } + } + return nil +} + +// NewGoogleVertexAIServiceSettings returns a GoogleVertexAIServiceSettings. +func NewGoogleVertexAIServiceSettings() *GoogleVertexAIServiceSettings { + r := &GoogleVertexAIServiceSettings{} + + return r +} + +// true + +type GoogleVertexAIServiceSettingsVariant interface { + GoogleVertexAIServiceSettingsCaster() *GoogleVertexAIServiceSettings +} + +func (s *GoogleVertexAIServiceSettings) GoogleVertexAIServiceSettingsCaster() *GoogleVertexAIServiceSettings { + return s +} diff --git a/typedapi/types/googlevertexaitasksettings.go b/typedapi/types/googlevertexaitasksettings.go new file mode 100644 index 0000000000..df1bed2993 --- /dev/null +++ b/typedapi/types/googlevertexaitasksettings.go @@ -0,0 +1,109 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GoogleVertexAITaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L849-L858 +type GoogleVertexAITaskSettings struct { + // AutoTruncate For a `text_embedding` task, truncate inputs longer than the maximum token + // length automatically. + AutoTruncate *bool `json:"auto_truncate,omitempty"` + // TopN For a `rerank` task, the number of the top N documents that should be + // returned. + TopN *int `json:"top_n,omitempty"` +} + +func (s *GoogleVertexAITaskSettings) 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 "auto_truncate": + 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", "AutoTruncate", err) + } + s.AutoTruncate = &value + case bool: + s.AutoTruncate = &v + } + + case "top_n": + + 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", "TopN", err) + } + s.TopN = &value + case float64: + f := int(v) + s.TopN = &f + } + + } + } + return nil +} + +// NewGoogleVertexAITaskSettings returns a GoogleVertexAITaskSettings. +func NewGoogleVertexAITaskSettings() *GoogleVertexAITaskSettings { + r := &GoogleVertexAITaskSettings{} + + return r +} + +// true + +type GoogleVertexAITaskSettingsVariant interface { + GoogleVertexAITaskSettingsCaster() *GoogleVertexAITaskSettings +} + +func (s *GoogleVertexAITaskSettings) GoogleVertexAITaskSettingsCaster() *GoogleVertexAITaskSettings { + return s +} diff --git a/typedapi/types/grantapikey.go b/typedapi/types/grantapikey.go index d0fef47063..9a94240690 100644 --- a/typedapi/types/grantapikey.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // GrantApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/grant_api_key/types.ts#L25-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/grant_api_key/types.ts#L25-L45 type GrantApiKey struct { // Expiration Expiration time for the API key. By default, API keys never expire. Expiration *string `json:"expiration,omitempty"` diff --git a/typedapi/types/greaterthanvalidation.go b/typedapi/types/greaterthanvalidation.go index e76302466f..55f7e951db 100644 --- a/typedapi/types/greaterthanvalidation.go +++ b/typedapi/types/greaterthanvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GreaterThanValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L63-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L63-L66 type GreaterThanValidation struct { Constraint Float64 `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/greekanalyzer.go b/typedapi/types/greekanalyzer.go index 5c14894a62..3c7b09e014 100644 --- a/typedapi/types/greekanalyzer.go +++ b/typedapi/types/greekanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GreekAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L173-L177 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L173-L177 type GreekAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/grokprocessor.go b/typedapi/types/grokprocessor.go index 559ac34e0e..38c705d134 100644 --- a/typedapi/types/grokprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GrokProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L950-L981 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L950-L981 type GrokProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/groupings.go b/typedapi/types/groupings.go index 88a647af32..5aa5ff2621 100644 --- a/typedapi/types/groupings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Groupings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/_types/Groupings.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/gsubprocessor.go b/typedapi/types/gsubprocessor.go index 85bfe9132a..fd63f218b4 100644 --- a/typedapi/types/gsubprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // GsubProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L983-L1007 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L983-L1007 type GsubProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/halffloatnumberproperty.go b/typedapi/types/halffloatnumberproperty.go index 7da185d4b6..9f7d61d6a7 100644 --- a/typedapi/types/halffloatnumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // HalfFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L151-L154 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L161-L164 type HalfFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/haschildquery.go b/typedapi/types/haschildquery.go index acde1bb062..5dbd2fc511 100644 --- a/typedapi/types/haschildquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // HasChildQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/joining.ts#L41-L79 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/joining.ts#L41-L79 type HasChildQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/hasparentquery.go b/typedapi/types/hasparentquery.go index 0946b68f21..1d5dbbc40f 100644 --- a/typedapi/types/hasparentquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HasParentQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/joining.ts#L81-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/joining.ts#L81-L110 type HasParentQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/hasprivilegesuserprofileerrors.go b/typedapi/types/hasprivilegesuserprofileerrors.go index 6ee30ff704..8c9574a9c2 100644 --- a/typedapi/types/hasprivilegesuserprofileerrors.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HasPrivilegesUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges_user_profile/types.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/hdrmethod.go b/typedapi/types/hdrmethod.go index 497f7ba5c1..70dcae0e72 100644 --- a/typedapi/types/hdrmethod.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HdrMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L225-L230 type HdrMethod struct { // NumberOfSignificantValueDigits Specifies the resolution of values for the histogram in number of significant // digits. diff --git a/typedapi/types/hdrpercentileranksaggregate.go b/typedapi/types/hdrpercentileranksaggregate.go index a8ec3372ba..852ef29be6 100644 --- a/typedapi/types/hdrpercentileranksaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // HdrPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L171-L172 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L171-L172 type HdrPercentileRanksAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -64,7 +64,7 @@ func (s *HdrPercentileRanksAggregate) UnmarshalJSON(data []byte) error { localDec := json.NewDecoder(source) switch rawMsg[0] { case '{': - o := make(map[string]string, 0) + o := make(map[string]any, 0) if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "Values", err) } diff --git a/typedapi/types/hdrpercentilesaggregate.go b/typedapi/types/hdrpercentilesaggregate.go index e370b2bb41..7ea677b6de 100644 --- a/typedapi/types/hdrpercentilesaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // HdrPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L168-L169 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L168-L169 type HdrPercentilesAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -64,7 +64,7 @@ func (s *HdrPercentilesAggregate) UnmarshalJSON(data []byte) error { localDec := json.NewDecoder(source) switch rawMsg[0] { case '{': - o := make(map[string]string, 0) + o := make(map[string]any, 0) if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "Values", err) } diff --git a/typedapi/types/healthrecord.go b/typedapi/types/healthrecord.go index 9a289b04aa..4d79e6512a 100644 --- a/typedapi/types/healthrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HealthRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/health/types.ts#L23-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/health/types.ts#L23-L99 type HealthRecord struct { // ActiveShardsPercent active number of shards in percent ActiveShardsPercent *string `json:"active_shards_percent,omitempty"` diff --git a/typedapi/types/healthstatistics.go b/typedapi/types/healthstatistics.go index 00dd77ac1c..d6356604ae 100644 --- a/typedapi/types/healthstatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HealthStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L150-L152 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L150-L152 type HealthStatistics struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/highlight.go b/typedapi/types/highlight.go index 58ac45b27a..0bae5584fd 100644 --- a/typedapi/types/highlight.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -38,7 +38,7 @@ import ( // Highlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/highlighting.ts#L152-L155 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/highlighting.ts#L152-L155 type Highlight struct { // BoundaryChars A string that contains each boundary character. BoundaryChars *string `json:"boundary_chars,omitempty"` diff --git a/typedapi/types/highlightfield.go b/typedapi/types/highlightfield.go index 883a1a0c03..499efa19a4 100644 --- a/typedapi/types/highlightfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -37,7 +37,7 @@ import ( // HighlightField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/highlighting.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/highlighting.ts#L192-L195 type HighlightField struct { // BoundaryChars A string that contains each boundary character. BoundaryChars *string `json:"boundary_chars,omitempty"` diff --git a/typedapi/types/hindianalyzer.go b/typedapi/types/hindianalyzer.go index edaa3dfe2f..88729560c0 100644 --- a/typedapi/types/hindianalyzer.go +++ b/typedapi/types/hindianalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HindiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L179-L184 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L179-L184 type HindiAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/hint.go b/typedapi/types/hint.go index 6f7622263e..27832a7dff 100644 --- a/typedapi/types/hint.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Hint type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/suggest_user_profiles/types.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/histogramaggregate.go b/typedapi/types/histogramaggregate.go index a39f589d2d..2439061f48 100644 --- a/typedapi/types/histogramaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // HistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L372-L376 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L372-L376 type HistogramAggregate struct { Buckets BucketsHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/histogramaggregation.go b/typedapi/types/histogramaggregation.go index 75622c5fdb..e9f727b0dc 100644 --- a/typedapi/types/histogramaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // HistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L519-L565 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L519-L565 type HistogramAggregation struct { // ExtendedBounds Enables extending the bounds of the histogram beyond the data itself. ExtendedBounds *ExtendedBoundsdouble `json:"extended_bounds,omitempty"` diff --git a/typedapi/types/histogrambucket.go b/typedapi/types/histogrambucket.go index 519095975b..3f2a1efd70 100644 --- a/typedapi/types/histogrambucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // HistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L378-L381 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L378-L381 type HistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/histogramgrouping.go b/typedapi/types/histogramgrouping.go index ca737fa026..7a1d58de52 100644 --- a/typedapi/types/histogramgrouping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/_types/Groupings.ts#L84-L97 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/histogramproperty.go b/typedapi/types/histogramproperty.go index 395beaf720..e057897b4e 100644 --- a/typedapi/types/histogramproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // HistogramProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L69-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L69-L72 type HistogramProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/hit.go b/typedapi/types/hit.go index 07926d48a6..964631e960 100644 --- a/typedapi/types/hit.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Hit type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/hits.ts#L41-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/hits.ts#L41-L66 type Hit struct { Explanation_ *Explanation `json:"_explanation,omitempty"` Fields map[string]json.RawMessage `json:"fields,omitempty"` diff --git a/typedapi/types/hitsevent.go b/typedapi/types/hitsevent.go index 19322ed0d5..35f143d297 100644 --- a/typedapi/types/hitsevent.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HitsEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/_types/EqlHits.ts#L41-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/eql/_types/EqlHits.ts#L41-L54 type HitsEvent struct { Fields map[string][]json.RawMessage `json:"fields,omitempty"` // Id_ Unique identifier for the event. This ID is only unique within the index. diff --git a/typedapi/types/hitsmetadata.go b/typedapi/types/hitsmetadata.go index 878bb424d4..187d777f9c 100644 --- a/typedapi/types/hitsmetadata.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // HitsMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/hits.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/hits.ts#L68-L74 type HitsMetadata struct { Hits []Hit `json:"hits"` MaxScore *Float64 `json:"max_score,omitempty"` diff --git a/typedapi/types/hitssequence.go b/typedapi/types/hitssequence.go index 005f86ac76..d51479605d 100644 --- a/typedapi/types/hitssequence.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // HitsSequence type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/eql/_types/EqlHits.ts#L56-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/eql/_types/EqlHits.ts#L56-L64 type HitsSequence struct { // Events Contains events matching the query. Each object represents a matching event. Events []HitsEvent `json:"events"` diff --git a/typedapi/types/holtlinearmodelsettings.go b/typedapi/types/holtlinearmodelsettings.go index 4d267f5121..1cbb3f6c21 100644 --- a/typedapi/types/holtlinearmodelsettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HoltLinearModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L297-L300 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L297-L300 type HoltLinearModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` Beta *float32 `json:"beta,omitempty"` diff --git a/typedapi/types/holtmovingaverageaggregation.go b/typedapi/types/holtmovingaverageaggregation.go index cef22bec27..afdcba71ae 100644 --- a/typedapi/types/holtmovingaverageaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // HoltMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L283-L286 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L283-L286 type HoltMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/holtwintersmodelsettings.go b/typedapi/types/holtwintersmodelsettings.go index 5651e545d7..724e9dd235 100644 --- a/typedapi/types/holtwintersmodelsettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // HoltWintersModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L301-L308 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L301-L308 type HoltWintersModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` Beta *float32 `json:"beta,omitempty"` diff --git a/typedapi/types/holtwintersmovingaverageaggregation.go b/typedapi/types/holtwintersmovingaverageaggregation.go index ada80aa57e..450f154c5a 100644 --- a/typedapi/types/holtwintersmovingaverageaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // HoltWintersMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L288-L291 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L288-L291 type HoltWintersMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/hop.go b/typedapi/types/hop.go index 47e5f730f3..842d3005fe 100644 --- a/typedapi/types/hop.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Hop type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/_types/Hop.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/hourandminute.go b/typedapi/types/hourandminute.go index 875be6ced6..10ec7b0af0 100644 --- a/typedapi/types/hourandminute.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // HourAndMinute type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L106-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L106-L109 type HourAndMinute struct { Hour []int `json:"hour"` Minute []int `json:"minute"` diff --git a/typedapi/types/hourlyschedule.go b/typedapi/types/hourlyschedule.go index dbfa0e530a..c24a05e54c 100644 --- a/typedapi/types/hourlyschedule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // HourlySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L47-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L47-L49 type HourlySchedule struct { Minute []int `json:"minute"` } diff --git a/typedapi/types/htmlstripcharfilter.go b/typedapi/types/htmlstripcharfilter.go index 97a01e40dd..b3c4c1320d 100644 --- a/typedapi/types/htmlstripcharfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // HtmlStripCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/char_filters.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/char_filters.ts#L46-L49 type HtmlStripCharFilter struct { EscapedTags []string `json:"escaped_tags,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/htmlstripprocessor.go b/typedapi/types/htmlstripprocessor.go index 8b501618f2..6022999ef4 100644 --- a/typedapi/types/htmlstripprocessor.go +++ b/typedapi/types/htmlstripprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HtmlStripProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1009-L1025 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1009-L1025 type HtmlStripProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/http.go b/typedapi/types/http.go index 9a0bb8d9c1..5946823f2d 100644 --- a/typedapi/types/http.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Http type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L669-L688 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L669-L688 type Http struct { // Clients Information on current and recently-closed HTTP client connections. // Clients that have been closed longer than the diff --git a/typedapi/types/httpemailattachment.go b/typedapi/types/httpemailattachment.go index 914a0c0f28..82879d47f8 100644 --- a/typedapi/types/httpemailattachment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HttpEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L218-L222 type HttpEmailAttachment struct { ContentType *string `json:"content_type,omitempty"` Inline *bool `json:"inline,omitempty"` diff --git a/typedapi/types/httpheaders.go b/typedapi/types/httpheaders.go index 4a598aee45..e88c0381c0 100644 --- a/typedapi/types/httpheaders.go +++ b/typedapi/types/httpheaders.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // HttpHeaders type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L162-L162 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L162-L162 type HttpHeaders map[string][]string type HttpHeadersVariant interface { diff --git a/typedapi/types/httpinput.go b/typedapi/types/httpinput.go index 6ed1e74bcf..435cd3b66a 100644 --- a/typedapi/types/httpinput.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // HttpInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L44-L48 type HttpInput struct { Extract []string `json:"extract,omitempty"` Request *HttpInputRequestDefinition `json:"request,omitempty"` diff --git a/typedapi/types/httpinputauthentication.go b/typedapi/types/httpinputauthentication.go index 7d7bf33e0c..12c48860b2 100644 --- a/typedapi/types/httpinputauthentication.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // HttpInputAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L50-L52 type HttpInputAuthentication struct { Basic HttpInputBasicAuthentication `json:"basic"` } diff --git a/typedapi/types/httpinputbasicauthentication.go b/typedapi/types/httpinputbasicauthentication.go index 3e861cd3db..9a9afae616 100644 --- a/typedapi/types/httpinputbasicauthentication.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // HttpInputBasicAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L54-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L54-L57 type HttpInputBasicAuthentication struct { Password string `json:"password"` Username string `json:"username"` diff --git a/typedapi/types/httpinputproxy.go b/typedapi/types/httpinputproxy.go index 4ce9b28246..6c00e49fdc 100644 --- a/typedapi/types/httpinputproxy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // HttpInputProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L67-L70 type HttpInputProxy struct { Host string `json:"host"` Port uint `json:"port"` diff --git a/typedapi/types/httpinputrequestdefinition.go b/typedapi/types/httpinputrequestdefinition.go index 7087d73a6c..f3f366bc6a 100644 --- a/typedapi/types/httpinputrequestdefinition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // HttpInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L72-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L72-L86 type HttpInputRequestDefinition struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` diff --git a/typedapi/types/httpinputrequestresult.go b/typedapi/types/httpinputrequestresult.go index bdd34039e0..be9de89cc9 100644 --- a/typedapi/types/httpinputrequestresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // HttpInputRequestResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L300-L300 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L300-L300 type HttpInputRequestResult struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` diff --git a/typedapi/types/httpinputresponseresult.go b/typedapi/types/httpinputresponseresult.go index 57fc2de065..6ee8428a01 100644 --- a/typedapi/types/httpinputresponseresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HttpInputResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L302-L306 type HttpInputResponseResult struct { Body string `json:"body"` Headers HttpHeaders `json:"headers"` diff --git a/typedapi/types/httproute.go b/typedapi/types/httproute.go index 509d8a68b4..7a0b1ae396 100644 --- a/typedapi/types/httproute.go +++ b/typedapi/types/httproute.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // HttpRoute type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L690-L693 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L690-L693 type HttpRoute struct { Requests HttpRouteRequests `json:"requests"` Responses HttpRouteResponses `json:"responses"` diff --git a/typedapi/types/httprouterequests.go b/typedapi/types/httprouterequests.go index 80bcf48c06..08fe9ffa31 100644 --- a/typedapi/types/httprouterequests.go +++ b/typedapi/types/httprouterequests.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HttpRouteRequests type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L695-L699 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L695-L699 type HttpRouteRequests struct { Count int64 `json:"count"` SizeHistogram []SizeHttpHistogram `json:"size_histogram"` diff --git a/typedapi/types/httprouteresponses.go b/typedapi/types/httprouteresponses.go index 81db6845d4..5594db1f3b 100644 --- a/typedapi/types/httprouteresponses.go +++ b/typedapi/types/httprouteresponses.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HttpRouteResponses type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L701-L706 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L701-L706 type HttpRouteResponses struct { Count int64 `json:"count"` HandlingTimeHistogram []TimeHttpHistogram `json:"handling_time_histogram"` diff --git a/typedapi/types/huggingfaceservicesettings.go b/typedapi/types/huggingfaceservicesettings.go new file mode 100644 index 0000000000..d2523e114d --- /dev/null +++ b/typedapi/types/huggingfaceservicesettings.go @@ -0,0 +1,119 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// HuggingFaceServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L869-L890 +type HuggingFaceServiceSettings struct { + // ApiKey A valid access token for your HuggingFace account. + // You can create or find your access tokens on the HuggingFace settings page. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Hugging Face. + // By default, the `hugging_face` service sets the number of requests allowed + // per minute to 3000. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Url The URL endpoint to use for the requests. + Url string `json:"url"` +} + +func (s *HuggingFaceServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "url": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Url", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Url = o + + } + } + return nil +} + +// NewHuggingFaceServiceSettings returns a HuggingFaceServiceSettings. +func NewHuggingFaceServiceSettings() *HuggingFaceServiceSettings { + r := &HuggingFaceServiceSettings{} + + return r +} + +// true + +type HuggingFaceServiceSettingsVariant interface { + HuggingFaceServiceSettingsCaster() *HuggingFaceServiceSettings +} + +func (s *HuggingFaceServiceSettings) HuggingFaceServiceSettingsCaster() *HuggingFaceServiceSettings { + return s +} diff --git a/typedapi/types/hungariananalyzer.go b/typedapi/types/hungariananalyzer.go index 9d2c9cd54d..5fbca6fe33 100644 --- a/typedapi/types/hungariananalyzer.go +++ b/typedapi/types/hungariananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HungarianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L186-L191 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L186-L191 type HungarianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/hunspelltokenfilter.go b/typedapi/types/hunspelltokenfilter.go index 5e0035bb6d..f2236b2782 100644 --- a/typedapi/types/hunspelltokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HunspellTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L201-L207 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L201-L207 type HunspellTokenFilter struct { Dedup *bool `json:"dedup,omitempty"` Dictionary *string `json:"dictionary,omitempty"` diff --git a/typedapi/types/hyperparameter.go b/typedapi/types/hyperparameter.go index 74c4e4ff79..45a46b3087 100644 --- a/typedapi/types/hyperparameter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Hyperparameter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L273-L287 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L274-L288 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/typedapi/types/hyperparameters.go b/typedapi/types/hyperparameters.go index 4b931013b6..58bffaeb56 100644 --- a/typedapi/types/hyperparameters.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Hyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L420-L526 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L420-L526 type Hyperparameters struct { // Alpha Advanced configuration option. // Machine learning uses loss guided tree growing, which means that the decision diff --git a/typedapi/types/hyphenationdecompoundertokenfilter.go b/typedapi/types/hyphenationdecompoundertokenfilter.go index f1287ec924..7c224c0f78 100644 --- a/typedapi/types/hyphenationdecompoundertokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // HyphenationDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L57-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L57-L59 type HyphenationDecompounderTokenFilter struct { HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` MaxSubwordSize *int `json:"max_subword_size,omitempty"` diff --git a/typedapi/types/icuanalyzer.go b/typedapi/types/icuanalyzer.go index 9bbb614c6d..8f55580ef7 100644 --- a/typedapi/types/icuanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ import ( // IcuAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L67-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L67-L71 type IcuAnalyzer struct { Method icunormalizationtype.IcuNormalizationType `json:"method"` Mode icunormalizationmode.IcuNormalizationMode `json:"mode"` diff --git a/typedapi/types/icucollationproperty.go b/typedapi/types/icucollationproperty.go index 42e55d25ab..9884dc2d1d 100644 --- a/typedapi/types/icucollationproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -39,7 +39,7 @@ import ( // IcuCollationProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L103-L127 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L103-L127 type IcuCollationProperty struct { Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"` CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"` diff --git a/typedapi/types/icucollationtokenfilter.go b/typedapi/types/icucollationtokenfilter.go index fda4197728..0f3d41a27a 100644 --- a/typedapi/types/icucollationtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // IcuCollationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L51-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/icufoldingtokenfilter.go b/typedapi/types/icufoldingtokenfilter.go index e77e70445a..219a1cb6a7 100644 --- a/typedapi/types/icufoldingtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IcuFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/icunormalizationcharfilter.go b/typedapi/types/icunormalizationcharfilter.go index 410a03ee5d..d901c31b34 100644 --- a/typedapi/types/icunormalizationcharfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IcuNormalizationCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/icunormalizationtokenfilter.go b/typedapi/types/icunormalizationtokenfilter.go index 45ddc70471..e58daa9671 100644 --- a/typedapi/types/icunormalizationtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // IcuNormalizationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L35-L38 type IcuNormalizationTokenFilter struct { Name icunormalizationtype.IcuNormalizationType `json:"name"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/icutokenizer.go b/typedapi/types/icutokenizer.go index 57a3bdc239..0f6a615f9e 100644 --- a/typedapi/types/icutokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IcuTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L30-L33 type IcuTokenizer struct { RuleFiles string `json:"rule_files"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/icutransformtokenfilter.go b/typedapi/types/icutransformtokenfilter.go index 5b54cc07cf..dc2ab1ec2f 100644 --- a/typedapi/types/icutransformtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IcuTransformTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/icu-plugin.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/icu-plugin.ts#L24-L28 type IcuTransformTokenFilter struct { Dir *icutransformdirection.IcuTransformDirection `json:"dir,omitempty"` Id string `json:"id"` diff --git a/typedapi/types/ids.go b/typedapi/types/ids.go index 1800358289..d003d8ba2b 100644 --- a/typedapi/types/ids.go +++ b/typedapi/types/ids.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Ids type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L62-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L62-L62 type Ids []string type IdsVariant interface { diff --git a/typedapi/types/idsquery.go b/typedapi/types/idsquery.go index 08ab1a2e05..47e59bbbb6 100644 --- a/typedapi/types/idsquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IdsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L88-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L88-L96 type IdsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/ilm.go b/typedapi/types/ilm.go index 3af0c43fa8..c30a6d9ece 100644 --- a/typedapi/types/ilm.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Ilm type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L172-L175 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L172-L175 type Ilm struct { PolicyCount int `json:"policy_count"` PolicyStats []IlmPolicyStatistics `json:"policy_stats"` diff --git a/typedapi/types/ilmactions.go b/typedapi/types/ilmactions.go index 07ae365de4..1c8eae312e 100644 --- a/typedapi/types/ilmactions.go +++ b/typedapi/types/ilmactions.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IlmActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L39-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L39-L93 type IlmActions struct { // Allocate Phases allowed: warm, cold. Allocate *AllocateAction `json:"allocate,omitempty"` diff --git a/typedapi/types/ilmindicator.go b/typedapi/types/ilmindicator.go index b947a20acb..be180a09fa 100644 --- a/typedapi/types/ilmindicator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L163-L167 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L163-L167 type IlmIndicator struct { Details *IlmIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/ilmindicatordetails.go b/typedapi/types/ilmindicatordetails.go index e8c9d6b772..636a526c06 100644 --- a/typedapi/types/ilmindicatordetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L168-L172 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L168-L172 type IlmIndicatorDetails struct { IlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"` Policies int64 `json:"policies"` diff --git a/typedapi/types/ilmpolicy.go b/typedapi/types/ilmpolicy.go index 86602af655..4a3e7650c8 100644 --- a/typedapi/types/ilmpolicy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IlmPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Policy.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Policy.ts#L23-L29 type IlmPolicy struct { // Meta_ Arbitrary metadata that is not automatically generated or used by // Elasticsearch. diff --git a/typedapi/types/ilmpolicystatistics.go b/typedapi/types/ilmpolicystatistics.go index 81649b31c0..1a5db3a4ed 100644 --- a/typedapi/types/ilmpolicystatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IlmPolicyStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L167-L170 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L167-L170 type IlmPolicyStatistics struct { IndicesManaged int `json:"indices_managed"` Phases UsagePhases `json:"phases"` diff --git a/typedapi/types/impact.go b/typedapi/types/impact.go index d5652b27fd..171cbcb533 100644 --- a/typedapi/types/impact.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // Impact type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L66-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L66-L71 type Impact struct { Description string `json:"description"` Id string `json:"id"` diff --git a/typedapi/types/includedinvalidation.go b/typedapi/types/includedinvalidation.go index b8f98a3f1c..b52dbfb054 100644 --- a/typedapi/types/includedinvalidation.go +++ b/typedapi/types/includedinvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // IncludedInValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L73-L76 type IncludedInValidation struct { Constraint []ScalarValue `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/indexaction.go b/typedapi/types/indexaction.go index 57d842923b..e7c6d314fe 100644 --- a/typedapi/types/indexaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L256-L265 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indexaliases.go b/typedapi/types/indexaliases.go index e1663b1185..8d02f771de 100644 --- a/typedapi/types/indexaliases.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexAliases type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_alias/IndicesGetAliasResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_alias/IndicesGetAliasResponse.ts#L37-L39 type IndexAliases struct { Aliases map[string]AliasDefinition `json:"aliases"` } diff --git a/typedapi/types/indexanddatastreamaction.go b/typedapi/types/indexanddatastreamaction.go index 4ca6ac9dea..eb7be9cb12 100644 --- a/typedapi/types/indexanddatastreamaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IndexAndDataStreamAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/modify_data_stream/types.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indexcapabilities.go b/typedapi/types/indexcapabilities.go index cf51719a60..1c67cbade8 100644 --- a/typedapi/types/indexcapabilities.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_rollup_index_caps/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_rollup_index_caps/types.ts#L24-L26 type IndexCapabilities struct { RollupJobs []RollupJobSummary `json:"rollup_jobs"` } diff --git a/typedapi/types/indexdetails.go b/typedapi/types/indexdetails.go index dc1f64c7e4..b33f63966a 100644 --- a/typedapi/types/indexdetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indexfield.go b/typedapi/types/indexfield.go index d5a7634411..c3c1d479b5 100644 --- a/typedapi/types/indexfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/meta-fields.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/meta-fields.ts#L46-L48 type IndexField struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/indexhealthstats.go b/typedapi/types/indexhealthstats.go index b47e48426b..1c8f6ac68c 100644 --- a/typedapi/types/indexhealthstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndexHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/health/types.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/health/types.ts#L24-L35 type IndexHealthStats struct { ActivePrimaryShards int `json:"active_primary_shards"` ActiveShards int `json:"active_shards"` diff --git a/typedapi/types/indexingpressurememorysummary.go b/typedapi/types/indexingpressurememorysummary.go index faa3561de2..ea7474c72c 100644 --- a/typedapi/types/indexingpressurememorysummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexingPressureMemorySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L580-L589 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indexingslowlogsettings.go b/typedapi/types/indexingslowlogsettings.go index c12e9cf755..9ddf5c6e75 100644 --- a/typedapi/types/indexingslowlogsettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexingSlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L588-L593 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L588-L593 type IndexingSlowlogSettings struct { Level *string `json:"level,omitempty"` Reformat *bool `json:"reformat,omitempty"` diff --git a/typedapi/types/indexingslowlogtresholds.go b/typedapi/types/indexingslowlogtresholds.go index 931f36a238..9daf0cae5f 100644 --- a/typedapi/types/indexingslowlogtresholds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexingSlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L595-L602 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L595-L602 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/typedapi/types/indexingstats.go b/typedapi/types/indexingstats.go index 52596776dc..d6705bc57a 100644 --- a/typedapi/types/indexingstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L146-L162 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L146-L162 type IndexingStats struct { DeleteCurrent int64 `json:"delete_current"` DeleteTime Duration `json:"delete_time,omitempty"` diff --git a/typedapi/types/indexmappingrecord.go b/typedapi/types/indexmappingrecord.go index 9765d3e222..ef30c11ecb 100644 --- a/typedapi/types/indexmappingrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexMappingRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32 type IndexMappingRecord struct { Item *TypeMapping `json:"item,omitempty"` Mappings TypeMapping `json:"mappings"` diff --git a/typedapi/types/indexoperation.go b/typedapi/types/indexoperation.go index 2e309feb98..a76fb8d409 100644 --- a/typedapi/types/indexoperation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndexOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L142-L142 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L142-L142 type IndexOperation struct { // DynamicTemplates A map from the full name of fields to the name of dynamic templates. // It defaults to an empty map. diff --git a/typedapi/types/indexprivilegescheck.go b/typedapi/types/indexprivilegescheck.go index 0e400d66e6..ca74ea601b 100644 --- a/typedapi/types/indexprivilegescheck.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndexPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges/types.ts#L34-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/has_privileges/types.ts#L34-L45 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/typedapi/types/indexresult.go b/typedapi/types/indexresult.go index 33726576d0..233f57a4d4 100644 --- a/typedapi/types/indexresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L267-L269 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L267-L269 type IndexResult struct { Response IndexResultSummary `json:"response"` } diff --git a/typedapi/types/indexresultsummary.go b/typedapi/types/indexresultsummary.go index ef728d9731..241633f3dc 100644 --- a/typedapi/types/indexresultsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndexResultSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L271-L277 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L271-L277 type IndexResultSummary struct { Created bool `json:"created"` Id string `json:"id"` diff --git a/typedapi/types/indexrouting.go b/typedapi/types/indexrouting.go index 394e939fdb..2765970394 100644 --- a/typedapi/types/indexrouting.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexRouting.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexRouting.ts#L22-L25 type IndexRouting struct { Allocation *IndexRoutingAllocation `json:"allocation,omitempty"` Rebalance *IndexRoutingRebalance `json:"rebalance,omitempty"` diff --git a/typedapi/types/indexroutingallocation.go b/typedapi/types/indexroutingallocation.go index 61f9ba27ba..82185d9227 100644 --- a/typedapi/types/indexroutingallocation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // IndexRoutingAllocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexRouting.ts#L27-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexRouting.ts#L27-L32 type IndexRoutingAllocation struct { Disk *IndexRoutingAllocationDisk `json:"disk,omitempty"` Enable *indexroutingallocationoptions.IndexRoutingAllocationOptions `json:"enable,omitempty"` diff --git a/typedapi/types/indexroutingallocationdisk.go b/typedapi/types/indexroutingallocationdisk.go index 3595d61d0a..c32f3e267c 100644 --- a/typedapi/types/indexroutingallocationdisk.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationDisk type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexRouting.ts#L62-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexRouting.ts#L62-L64 type IndexRoutingAllocationDisk struct { ThresholdEnabled string `json:"threshold_enabled,omitempty"` } diff --git a/typedapi/types/indexroutingallocationinclude.go b/typedapi/types/indexroutingallocationinclude.go index a11fe7c400..5663106ef2 100644 --- a/typedapi/types/indexroutingallocationinclude.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexRouting.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexRouting.ts#L52-L55 type IndexRoutingAllocationInclude struct { Id_ *string `json:"_id,omitempty"` TierPreference_ *string `json:"_tier_preference,omitempty"` diff --git a/typedapi/types/indexroutingallocationinitialrecovery.go b/typedapi/types/indexroutingallocationinitialrecovery.go index 158cdefa54..7f9c5459fc 100644 --- a/typedapi/types/indexroutingallocationinitialrecovery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IndexRoutingAllocationInitialRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexRouting.ts#L57-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexRouting.ts#L57-L59 type IndexRoutingAllocationInitialRecovery struct { Id_ *string `json:"_id,omitempty"` } diff --git a/typedapi/types/indexroutingrebalance.go b/typedapi/types/indexroutingrebalance.go index 06cb0dfaab..293f4e168d 100644 --- a/typedapi/types/indexroutingrebalance.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // IndexRoutingRebalance type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexRouting.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexRouting.ts#L34-L36 type IndexRoutingRebalance struct { Enable indexroutingrebalanceoptions.IndexRoutingRebalanceOptions `json:"enable"` } diff --git a/typedapi/types/indexsegment.go b/typedapi/types/indexsegment.go index 3e9a8e243a..a66a8aa621 100644 --- a/typedapi/types/indexsegment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/segments/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/segments/types.ts#L24-L26 type IndexSegment struct { Shards map[string][]ShardsSegment `json:"shards"` } diff --git a/typedapi/types/indexsegmentsort.go b/typedapi/types/indexsegmentsort.go index 7ad062fc2a..12805f5242 100644 --- a/typedapi/types/indexsegmentsort.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // IndexSegmentSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSegmentSort.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSegmentSort.ts#L22-L27 type IndexSegmentSort struct { Field []string `json:"field,omitempty"` Missing []segmentsortmissing.SegmentSortMissing `json:"missing,omitempty"` diff --git a/typedapi/types/indexsettingblocks.go b/typedapi/types/indexsettingblocks.go index 3d540e6288..5c499537bc 100644 --- a/typedapi/types/indexsettingblocks.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IndexSettingBlocks type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L262-L268 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L262-L268 type IndexSettingBlocks struct { Metadata Stringifiedboolean `json:"metadata,omitempty"` Read Stringifiedboolean `json:"read,omitempty"` diff --git a/typedapi/types/indexsettings.go b/typedapi/types/indexsettings.go index 8d6c7c9fde..85773d2418 100644 --- a/typedapi/types/indexsettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndexSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L70-L176 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L70-L176 type IndexSettings struct { Analysis *IndexSettingsAnalysis `json:"analysis,omitempty"` // Analyze Settings to define analyzers, tokenizers, token filters and character diff --git a/typedapi/types/indexsettingsanalysis.go b/typedapi/types/indexsettingsanalysis.go index 8d55964600..3c3767c7d4 100644 --- a/typedapi/types/indexsettingsanalysis.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L333-L339 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L333-L339 type IndexSettingsAnalysis struct { Analyzer map[string]Analyzer `json:"analyzer,omitempty"` CharFilter map[string]CharFilter `json:"char_filter,omitempty"` diff --git a/typedapi/types/indexsettingslifecycle.go b/typedapi/types/indexsettingslifecycle.go index a2f24cad01..ae54fb8685 100644 --- a/typedapi/types/indexsettingslifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexSettingsLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L284-L323 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L284-L323 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/typedapi/types/indexsettingslifecyclestep.go b/typedapi/types/indexsettingslifecyclestep.go index b3defc5393..f8e4a06041 100644 --- a/typedapi/types/indexsettingslifecyclestep.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsLifecycleStep type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L325-L331 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L325-L331 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/typedapi/types/indexsettingstimeseries.go b/typedapi/types/indexsettingstimeseries.go index cce7d34ca8..1f56417e13 100644 --- a/typedapi/types/indexsettingstimeseries.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsTimeSeries type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L341-L344 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L341-L344 type IndexSettingsTimeSeries struct { EndTime DateTime `json:"end_time,omitempty"` StartTime DateTime `json:"start_time,omitempty"` diff --git a/typedapi/types/indexstate.go b/typedapi/types/indexstate.go index d2b3bbb7db..ecfeff0304 100644 --- a/typedapi/types/indexstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IndexState type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexState.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indexstats.go b/typedapi/types/indexstats.go index d52561223f..c8e5c6a344 100644 --- a/typedapi/types/indexstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L52-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indextemplate.go b/typedapi/types/indextemplate.go index b5754b7406..4a7d60e80e 100644 --- a/typedapi/types/indextemplate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexTemplate.ts#L28-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexTemplate.ts#L28-L81 type IndexTemplate struct { AllowAutoCreate *bool `json:"allow_auto_create,omitempty"` // ComposedOf An ordered list of component template names. diff --git a/typedapi/types/indextemplatedatastreamconfiguration.go b/typedapi/types/indextemplatedatastreamconfiguration.go index b966556dc1..9fd71384f7 100644 --- a/typedapi/types/indextemplatedatastreamconfiguration.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexTemplateDataStreamConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexTemplate.ts#L83-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexTemplate.ts#L83-L94 type IndexTemplateDataStreamConfiguration struct { // AllowCustomRouting If true, the data stream supports custom routing. AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` diff --git a/typedapi/types/indextemplateitem.go b/typedapi/types/indextemplateitem.go index a9879c73fc..69dae73741 100644 --- a/typedapi/types/indextemplateitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IndexTemplateItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32 type IndexTemplateItem struct { IndexTemplate IndexTemplate `json:"index_template"` Name string `json:"name"` diff --git a/typedapi/types/indextemplatemapping.go b/typedapi/types/indextemplatemapping.go index b5f30f55a2..ecbc2f062b 100644 --- a/typedapi/types/indextemplatemapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexTemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L159-L181 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L159-L181 type IndexTemplateMapping struct { // Aliases Aliases to add. // If the index template includes a `data_stream` object, these are data stream diff --git a/typedapi/types/indextemplatesummary.go b/typedapi/types/indextemplatesummary.go index 2c834b004f..a670c7c29c 100644 --- a/typedapi/types/indextemplatesummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndexTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexTemplate.ts#L96-L118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexTemplate.ts#L96-L118 type IndexTemplateSummary struct { // Aliases Aliases to add. // If the index template includes a `data_stream` object, these are data stream diff --git a/typedapi/types/indexversioning.go b/typedapi/types/indexversioning.go index a69f47bda9..49805c2c3a 100644 --- a/typedapi/types/indexversioning.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndexVersioning type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L279-L282 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L279-L282 type IndexVersioning struct { Created *string `json:"created,omitempty"` CreatedString *string `json:"created_string,omitempty"` diff --git a/typedapi/types/indicatornode.go b/typedapi/types/indicatornode.go index cc7e6a4e77..b0a487d8b0 100644 --- a/typedapi/types/indicatornode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndicatorNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L91-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L91-L94 type IndicatorNode struct { Name *string `json:"name,omitempty"` NodeId *string `json:"node_id,omitempty"` diff --git a/typedapi/types/indicators.go b/typedapi/types/indicators.go index db65ce3552..e72b449598 100644 --- a/typedapi/types/indicators.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Indicators type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L32-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L32-L41 type Indicators struct { DataStreamLifecycle *DataStreamLifecycleIndicator `json:"data_stream_lifecycle,omitempty"` Disk *DiskIndicator `json:"disk,omitempty"` diff --git a/typedapi/types/indices.go b/typedapi/types/indices.go index e0879bcb2e..5724bb5c05 100644 --- a/typedapi/types/indices.go +++ b/typedapi/types/indices.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Indices type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L67-L67 type Indices []string type IndicesVariant interface { diff --git a/typedapi/types/indicesaction.go b/typedapi/types/indicesaction.go index 97b5298346..292cb9be56 100644 --- a/typedapi/types/indicesaction.go +++ b/typedapi/types/indicesaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // IndicesAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/update_aliases/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indicesblockstatus.go b/typedapi/types/indicesblockstatus.go index 7c69b07d34..6db023fb34 100644 --- a/typedapi/types/indicesblockstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndicesBlockStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 type IndicesBlockStatus struct { Blocked bool `json:"blocked"` Name string `json:"name"` diff --git a/typedapi/types/indicesindexingpressure.go b/typedapi/types/indicesindexingpressure.go index 112b555e83..4b84db6100 100644 --- a/typedapi/types/indicesindexingpressure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndicesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L575-L577 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L575-L577 type IndicesIndexingPressure struct { Memory IndicesIndexingPressureMemory `json:"memory"` } diff --git a/typedapi/types/indicesindexingpressurememory.go b/typedapi/types/indicesindexingpressurememory.go index 1f35c8df11..2797e42a76 100644 --- a/typedapi/types/indicesindexingpressurememory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndicesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L579-L586 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L579-L586 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/typedapi/types/indicesmodifyaction.go b/typedapi/types/indicesmodifyaction.go index ca87f7a221..5f1eb84f22 100644 --- a/typedapi/types/indicesmodifyaction.go +++ b/typedapi/types/indicesmodifyaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // IndicesModifyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/modify_data_stream/types.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indicesoptions.go b/typedapi/types/indicesoptions.go index 0d31f26c8f..01e32479cd 100644 --- a/typedapi/types/indicesoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndicesOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L339-L366 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L339-L366 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/typedapi/types/indicesprivileges.go b/typedapi/types/indicesprivileges.go index 912a587c77..59cf635f5d 100644 --- a/typedapi/types/indicesprivileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L216-L242 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L216-L242 type IndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/indicesprivilegesquery.go b/typedapi/types/indicesprivilegesquery.go index 9d584bd372..3bb7e95edd 100644 --- a/typedapi/types/indicesprivilegesquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ package types // Query // RoleTemplateQuery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L341-L349 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L341-L349 type IndicesPrivilegesQuery any type IndicesPrivilegesQueryVariant interface { diff --git a/typedapi/types/indicesrecord.go b/typedapi/types/indicesrecord.go index 36816a7916..08f4202f13 100644 --- a/typedapi/types/indicesrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndicesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/indices/types.ts#L20-L808 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/indices/types.ts#L20-L808 type IndicesRecord struct { // BulkAvgSizeInBytes average size in bytes of shard bulk BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"` diff --git a/typedapi/types/indicesshardsstats.go b/typedapi/types/indicesshardsstats.go index eb022cc88b..3de7204e75 100644 --- a/typedapi/types/indicesshardsstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndicesShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/indicesshardstats.go b/typedapi/types/indicesshardstats.go index e307da645d..53eddd6fff 100644 --- a/typedapi/types/indicesshardstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // IndicesShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L192-L223 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L192-L223 type IndicesShardStats struct { Bulk *BulkStats `json:"bulk,omitempty"` Commit *ShardCommit `json:"commit,omitempty"` diff --git a/typedapi/types/indicesshardstores.go b/typedapi/types/indicesshardstores.go index 8b3d177913..8535916225 100644 --- a/typedapi/types/indicesshardstores.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IndicesShardStores type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shard_stores/types.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shard_stores/types.ts#L25-L27 type IndicesShardStores struct { Shards map[string]ShardStoreWrapper `json:"shards"` } diff --git a/typedapi/types/indicesstats.go b/typedapi/types/indicesstats.go index 72637c5d76..92ba4f5a42 100644 --- a/typedapi/types/indicesstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // IndicesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L95-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L95-L110 type IndicesStats struct { Health *healthstatus.HealthStatus `json:"health,omitempty"` Primaries *IndexStats `json:"primaries,omitempty"` diff --git a/typedapi/types/indicesvalidationexplanation.go b/typedapi/types/indicesvalidationexplanation.go index 5a192bdbf2..ebe9ec3720 100644 --- a/typedapi/types/indicesvalidationexplanation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndicesValidationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 type IndicesValidationExplanation struct { Error *string `json:"error,omitempty"` Explanation *string `json:"explanation,omitempty"` diff --git a/typedapi/types/indicesversions.go b/typedapi/types/indicesversions.go index f77c54d4f2..a6d5c3d111 100644 --- a/typedapi/types/indicesversions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndicesVersions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L263-L268 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/stats/types.ts#L263-L268 type IndicesVersions struct { IndexCount int `json:"index_count"` PrimaryShardCount int `json:"primary_shard_count"` diff --git a/typedapi/types/indonesiananalyzer.go b/typedapi/types/indonesiananalyzer.go index 5f32374c2c..2b217630a1 100644 --- a/typedapi/types/indonesiananalyzer.go +++ b/typedapi/types/indonesiananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IndonesianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L193-L198 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L193-L198 type IndonesianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/inferenceaggregate.go b/typedapi/types/inferenceaggregate.go index a20498eab3..9cb248b87a 100644 --- a/typedapi/types/inferenceaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L755-L770 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L755-L770 type InferenceAggregate struct { Data map[string]json.RawMessage `json:"-"` FeatureImportance []InferenceFeatureImportance `json:"feature_importance,omitempty"` diff --git a/typedapi/types/inferenceaggregation.go b/typedapi/types/inferenceaggregation.go index 2e648f6aad..5d7d1a11ec 100644 --- a/typedapi/types/inferenceaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // InferenceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L225-L234 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L225-L234 type InferenceAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/inferencechunkingsettings.go b/typedapi/types/inferencechunkingsettings.go index ff61cef1fa..567085de8c 100644 --- a/typedapi/types/inferencechunkingsettings.go +++ b/typedapi/types/inferencechunkingsettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,10 +31,8 @@ import ( // InferenceChunkingSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Services.ts#L60-L89 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Services.ts#L60-L89 type InferenceChunkingSettings struct { - // ChunkingSettings Chunking configuration object - ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"` // MaxChunkSize The maximum size of a chunk in words. // This value cannot be higher than `300` or lower than `20` (for `sentence` // strategy) or `10` (for `word` strategy). @@ -47,14 +45,8 @@ type InferenceChunkingSettings struct { // It is applicable only for a `sentence` chunking strategy. // It can be either `1` or `0`. SentenceOverlap *int `json:"sentence_overlap,omitempty"` - // Service The service type - Service string `json:"service"` - // ServiceSettings Settings specific to the service - ServiceSettings json.RawMessage `json:"service_settings"` // Strategy The chunking strategy: `sentence` or `word`. Strategy *string `json:"strategy,omitempty"` - // TaskSettings Task settings specific to the service and task type - TaskSettings json.RawMessage `json:"task_settings,omitempty"` } func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error { @@ -72,11 +64,6 @@ func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error { switch t { - case "chunking_settings": - if err := dec.Decode(&s.ChunkingSettings); err != nil { - return fmt.Errorf("%s | %w", "ChunkingSettings", err) - } - case "max_chunk_size": var tmp any @@ -125,23 +112,6 @@ func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error { s.SentenceOverlap = &f } - case "service": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "Service", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Service = o - - case "service_settings": - if err := dec.Decode(&s.ServiceSettings); err != nil { - return fmt.Errorf("%s | %w", "ServiceSettings", err) - } - case "strategy": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { @@ -154,11 +124,6 @@ func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error { } s.Strategy = &o - case "task_settings": - if err := dec.Decode(&s.TaskSettings); err != nil { - return fmt.Errorf("%s | %w", "TaskSettings", err) - } - } } return nil diff --git a/typedapi/types/inferenceclassimportance.go b/typedapi/types/inferenceclassimportance.go index 7e308b8732..9adac924d3 100644 --- a/typedapi/types/inferenceclassimportance.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L784-L787 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L784-L787 type InferenceClassImportance struct { ClassName string `json:"class_name"` Importance Float64 `json:"importance"` diff --git a/typedapi/types/inferenceconfig.go b/typedapi/types/inferenceconfig.go index de47c15c87..617b9615f9 100644 --- a/typedapi/types/inferenceconfig.go +++ b/typedapi/types/inferenceconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // InferenceConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1048-L1060 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1066-L1078 type InferenceConfig struct { AdditionalInferenceConfigProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. diff --git a/typedapi/types/inferenceconfigclassification.go b/typedapi/types/inferenceconfigclassification.go index d66705ffd7..8fec476bcb 100644 --- a/typedapi/types/inferenceconfigclassification.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1075-L1101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1093-L1119 type InferenceConfigClassification struct { // NumTopClasses Specifies the number of top class predictions to return. NumTopClasses *int `json:"num_top_classes,omitempty"` diff --git a/typedapi/types/inferenceconfigcontainer.go b/typedapi/types/inferenceconfigcontainer.go index 60f17dbf25..bd54ac8c04 100644 --- a/typedapi/types/inferenceconfigcontainer.go +++ b/typedapi/types/inferenceconfigcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // InferenceConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L236-L242 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L236-L242 type InferenceConfigContainer struct { AdditionalInferenceConfigContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. diff --git a/typedapi/types/inferenceconfigcreatecontainer.go b/typedapi/types/inferenceconfigcreatecontainer.go index 5034dffa6e..ffcbe9bbe1 100644 --- a/typedapi/types/inferenceconfigcreatecontainer.go +++ b/typedapi/types/inferenceconfigcreatecontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,13 +27,14 @@ import ( // InferenceConfigCreateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L23-L80 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L26-L85 type InferenceConfigCreateContainer struct { AdditionalInferenceConfigCreateContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. Classification *ClassificationInferenceOptions `json:"classification,omitempty"` // FillMask Fill mask configuration for inference. - FillMask *FillMaskInferenceOptions `json:"fill_mask,omitempty"` + FillMask *FillMaskInferenceOptions `json:"fill_mask,omitempty"` + LearningToRank *LearningToRankConfig `json:"learning_to_rank,omitempty"` // Ner Named entity recognition configuration for inference. Ner *NerInferenceOptions `json:"ner,omitempty"` // PassThrough Pass through configuration for inference. diff --git a/typedapi/types/inferenceconfigregression.go b/typedapi/types/inferenceconfigregression.go index 55373e1588..5a13b49591 100644 --- a/typedapi/types/inferenceconfigregression.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1062-L1073 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1080-L1091 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/typedapi/types/inferenceconfigupdatecontainer.go b/typedapi/types/inferenceconfigupdatecontainer.go index ace5cce4cb..040253fd66 100644 --- a/typedapi/types/inferenceconfigupdatecontainer.go +++ b/typedapi/types/inferenceconfigupdatecontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // InferenceConfigUpdateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L284-L306 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L315-L337 type InferenceConfigUpdateContainer struct { AdditionalInferenceConfigUpdateContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. diff --git a/typedapi/types/inferenceendpoint.go b/typedapi/types/inferenceendpoint.go index 8bb1cc2fca..e32aa1d68b 100644 --- a/typedapi/types/inferenceendpoint.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceEndpoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Services.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Services.ts#L24-L44 type InferenceEndpoint struct { // ChunkingSettings Chunking configuration object ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"` diff --git a/typedapi/types/inferenceendpointinfo.go b/typedapi/types/inferenceendpointinfo.go index a7bf4903f9..e4e2c28f2e 100644 --- a/typedapi/types/inferenceendpointinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // InferenceEndpointInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Services.ts#L46-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Services.ts#L46-L58 type InferenceEndpointInfo struct { // ChunkingSettings Chunking configuration object ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"` diff --git a/typedapi/types/inferencefeatureimportance.go b/typedapi/types/inferencefeatureimportance.go index 66dbd12396..a6a9df7897 100644 --- a/typedapi/types/inferencefeatureimportance.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L778-L782 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L778-L782 type InferenceFeatureImportance struct { Classes []InferenceClassImportance `json:"classes,omitempty"` FeatureName string `json:"feature_name"` diff --git a/typedapi/types/inferenceprocessor.go b/typedapi/types/inferenceprocessor.go index 7bb498ebfe..c20da57b2c 100644 --- a/typedapi/types/inferenceprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1027-L1046 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1027-L1059 type InferenceProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -44,8 +44,18 @@ type InferenceProcessor struct { If *string `json:"if,omitempty"` // IgnoreFailure Ignore failures for the processor. IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // IgnoreMissing If true and any of the input fields defined in input_ouput are missing + // then those missing fields are quietly ignored, otherwise a missing field + // causes a failure. + // Only applies when using input_output configurations to explicitly list the + // input fields. + IgnoreMissing *bool `json:"ignore_missing,omitempty"` // InferenceConfig Contains the inference type and its options. InferenceConfig *InferenceConfig `json:"inference_config,omitempty"` + // InputOutput Input fields for inference and output (destination) fields for the inference + // results. + // This option is incompatible with the target_field and field_map options. + InputOutput []InputConfig `json:"input_output,omitempty"` // ModelId The ID or alias for the trained model, or the ID of the deployment. ModelId string `json:"model_id"` // OnFailure Handle failures for the processor. @@ -118,11 +128,41 @@ func (s *InferenceProcessor) UnmarshalJSON(data []byte) error { s.IgnoreFailure = &v } + case "ignore_missing": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + case "inference_config": if err := dec.Decode(&s.InferenceConfig); err != nil { return fmt.Errorf("%s | %w", "InferenceConfig", err) } + case "input_output": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := NewInputConfig() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "InputOutput", err) + } + + s.InputOutput = append(s.InputOutput, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.InputOutput); err != nil { + return fmt.Errorf("%s | %w", "InputOutput", err) + } + } + case "model_id": if err := dec.Decode(&s.ModelId); err != nil { return fmt.Errorf("%s | %w", "ModelId", err) diff --git a/typedapi/types/inferenceresponseresult.go b/typedapi/types/inferenceresponseresult.go index c3b3abf7d6..79c62274e8 100644 --- a/typedapi/types/inferenceresponseresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L447-L495 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L478-L526 type InferenceResponseResult struct { // Entities If the model is trained for named entity recognition (NER) tasks, the // response contains the recognized entities. diff --git a/typedapi/types/inferencetopclassentry.go b/typedapi/types/inferencetopclassentry.go index 9b6f49ff87..f9df043c6d 100644 --- a/typedapi/types/inferencetopclassentry.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InferenceTopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L772-L776 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L772-L776 type InferenceTopClassEntry struct { ClassName FieldValue `json:"class_name"` ClassProbability Float64 `json:"class_probability"` diff --git a/typedapi/types/influence.go b/typedapi/types/influence.go index d218878725..c0b31e4e22 100644 --- a/typedapi/types/influence.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Influence type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Anomaly.ts#L141-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Anomaly.ts#L141-L144 type Influence struct { InfluencerFieldName string `json:"influencer_field_name"` InfluencerFieldValues []string `json:"influencer_field_values"` diff --git a/typedapi/types/influencer.go b/typedapi/types/influencer.go index 33d3d8b2a8..d76e9cef0c 100644 --- a/typedapi/types/influencer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Influencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Influencer.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Influencer.ts#L24-L76 type Influencer struct { // BucketSpan The length of the bucket in seconds. This value matches the bucket span that // is specified in the job. diff --git a/typedapi/types/infofeaturestate.go b/typedapi/types/infofeaturestate.go index 9b5a58449f..8c5f53623d 100644 --- a/typedapi/types/infofeaturestate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InfoFeatureState type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25 type InfoFeatureState struct { FeatureName string `json:"feature_name"` Indices []string `json:"indices"` diff --git a/typedapi/types/ingest.go b/typedapi/types/ingest.go index f5c7de2b8c..774881c26e 100644 --- a/typedapi/types/ingest.go +++ b/typedapi/types/ingest.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Ingest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Simulation.ts#L29-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Simulation.ts#L29-L37 type Ingest struct { Pipeline *string `json:"pipeline,omitempty"` Redact_ *Redact `json:"_redact,omitempty"` diff --git a/typedapi/types/ingestdocumentsimulation.go b/typedapi/types/ingestdocumentsimulation.go index ff2b2802c5..718fb7e6f6 100644 --- a/typedapi/types/ingestdocumentsimulation.go +++ b/typedapi/types/ingestdocumentsimulation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IngestDocumentSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/simulate/ingest/SimulateIngestResponse.ts#L35-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/simulate/ingest/SimulateIngestResponse.ts#L35-L78 type IngestDocumentSimulation struct { // Error Any error resulting from simulatng ingest on this doc. This can be an error // generated by diff --git a/typedapi/types/ingestpipeline.go b/typedapi/types/ingestpipeline.go index df4ddb3ba9..b74173485c 100644 --- a/typedapi/types/ingestpipeline.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IngestPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Pipeline.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Pipeline.ts#L23-L51 type IngestPipeline struct { // Deprecated Marks this ingest pipeline as deprecated. // When a deprecated ingest pipeline is referenced as the default or final diff --git a/typedapi/types/ingestpipelineparams.go b/typedapi/types/ingestpipelineparams.go index 5b947a093a..8c57fdcf13 100644 --- a/typedapi/types/ingestpipelineparams.go +++ b/typedapi/types/ingestpipelineparams.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IngestPipelineParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L148-L153 type IngestPipelineParams struct { ExtractBinaryContent bool `json:"extract_binary_content"` Name string `json:"name"` diff --git a/typedapi/types/ingeststats.go b/typedapi/types/ingeststats.go index 14b6309bc4..b2cf3faafc 100644 --- a/typedapi/types/ingeststats.go +++ b/typedapi/types/ingeststats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IngestStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L356-L394 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L356-L394 type IngestStats struct { // Count Total number of documents ingested during the lifetime of this node. Count int64 `json:"count"` diff --git a/typedapi/types/ingesttotal.go b/typedapi/types/ingesttotal.go index 3d63b5c83f..60d405a2ed 100644 --- a/typedapi/types/ingesttotal.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IngestTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L396-L413 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L396-L413 type IngestTotal struct { // Count Total number of documents ingested during the lifetime of this node. Count int64 `json:"count"` diff --git a/typedapi/types/inlineget.go b/typedapi/types/inlineget.go index 5bbf37792f..168cce4f0a 100644 --- a/typedapi/types/inlineget.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InlineGet type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L324-L337 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L324-L337 type InlineGet struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` diff --git a/typedapi/types/inlinegetdictuserdefined.go b/typedapi/types/inlinegetdictuserdefined.go index 99adbc0253..9a09dadd32 100644 --- a/typedapi/types/inlinegetdictuserdefined.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InlineGetDictUserDefined type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L324-L337 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L324-L337 type InlineGetDictUserDefined struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` diff --git a/typedapi/types/innerhits.go b/typedapi/types/innerhits.go index 8db67f273e..726452a9e0 100644 --- a/typedapi/types/innerhits.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InnerHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/hits.ts#L108-L142 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/hits.ts#L108-L142 type InnerHits struct { Collapse *FieldCollapse `json:"collapse,omitempty"` DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` diff --git a/typedapi/types/innerhitsresult.go b/typedapi/types/innerhitsresult.go index 00c504fab0..609f6bf0a9 100644 --- a/typedapi/types/innerhitsresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // InnerHitsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/hits.ts#L86-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/hits.ts#L86-L88 type InnerHitsResult struct { Hits HitsMetadata `json:"hits"` } diff --git a/typedapi/types/inprogress.go b/typedapi/types/inprogress.go index 2b5ff9e6b1..4c348048ee 100644 --- a/typedapi/types/inprogress.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // InProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/_types/SnapshotLifecycle.ts#L141-L146 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/_types/SnapshotLifecycle.ts#L141-L146 type InProgress struct { Name string `json:"name"` StartTimeMillis int64 `json:"start_time_millis"` diff --git a/typedapi/types/input.go b/typedapi/types/input.go index f844b332f4..e1bf04cebe 100644 --- a/typedapi/types/input.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Input type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_trained_model/types.ts#L56-L58 type Input struct { FieldNames []string `json:"field_names"` } diff --git a/typedapi/types/inputconfig.go b/typedapi/types/inputconfig.go new file mode 100644 index 0000000000..87497a5ad1 --- /dev/null +++ b/typedapi/types/inputconfig.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// InputConfig type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1061-L1064 +type InputConfig struct { + InputField string `json:"input_field"` + OutputField string `json:"output_field"` +} + +func (s *InputConfig) 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 "input_field": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "InputField", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.InputField = o + + case "output_field": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "OutputField", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.OutputField = o + + } + } + return nil +} + +// NewInputConfig returns a InputConfig. +func NewInputConfig() *InputConfig { + r := &InputConfig{} + + return r +} + +// true + +type InputConfigVariant interface { + InputConfigCaster() *InputConfig +} + +func (s *InputConfig) InputConfigCaster() *InputConfig { + return s +} diff --git a/typedapi/types/integernumberproperty.go b/typedapi/types/integernumberproperty.go index 00c0508a28..0ac5ff93bc 100644 --- a/typedapi/types/integernumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // IntegerNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L161-L164 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L171-L174 type IntegerNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/integerrangeproperty.go b/typedapi/types/integerrangeproperty.go index ac0589b101..0248275a24 100644 --- a/typedapi/types/integerrangeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // IntegerRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/range.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/range.ts#L42-L44 type IntegerRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/intervals.go b/typedapi/types/intervals.go index 26353ffd85..74a28ab644 100644 --- a/typedapi/types/intervals.go +++ b/typedapi/types/intervals.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // Intervals type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L83-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L83-L110 type Intervals struct { AdditionalIntervalsProperty map[string]json.RawMessage `json:"-"` // AllOf Returns matches that span a combination of other rules. diff --git a/typedapi/types/intervalsallof.go b/typedapi/types/intervalsallof.go index aaeeb18e45..4f3a04822f 100644 --- a/typedapi/types/intervalsallof.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IntervalsAllOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L50-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/intervalsanyof.go b/typedapi/types/intervalsanyof.go index 4a24cba15f..56e4d7c155 100644 --- a/typedapi/types/intervalsanyof.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IntervalsAnyOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L72-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/intervalsfilter.go b/typedapi/types/intervalsfilter.go index 7cb3de7ea9..b1a18e3db9 100644 --- a/typedapi/types/intervalsfilter.go +++ b/typedapi/types/intervalsfilter.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // IntervalsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L112-L152 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L112-L152 type IntervalsFilter struct { AdditionalIntervalsFilterProperty map[string]json.RawMessage `json:"-"` // After Query used to return intervals that follow an interval from the `filter` diff --git a/typedapi/types/intervalsfuzzy.go b/typedapi/types/intervalsfuzzy.go index 2169a5ffbb..601f128710 100644 --- a/typedapi/types/intervalsfuzzy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IntervalsFuzzy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L154-L184 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/intervalsmatch.go b/typedapi/types/intervalsmatch.go index 22bfaf15e4..c743af7c6e 100644 --- a/typedapi/types/intervalsmatch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IntervalsMatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L186-L216 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/intervalsprefix.go b/typedapi/types/intervalsprefix.go index 083ff8743e..2744c295ef 100644 --- a/typedapi/types/intervalsprefix.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IntervalsPrefix type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L218-L233 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/intervalsquery.go b/typedapi/types/intervalsquery.go index bc1ef69e49..1b73c8cfd1 100644 --- a/typedapi/types/intervalsquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IntervalsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L235-L266 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L235-L266 type IntervalsQuery struct { AdditionalIntervalsQueryProperty map[string]json.RawMessage `json:"-"` // AllOf Returns matches that span a combination of other rules. diff --git a/typedapi/types/intervalswildcard.go b/typedapi/types/intervalswildcard.go index 0e90f06de4..4a4c42ad3f 100644 --- a/typedapi/types/intervalswildcard.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IntervalsWildcard type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L268-L283 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L268-L283 type IntervalsWildcard struct { // Analyzer Analyzer used to analyze the `pattern`. // Defaults to the top-level field's analyzer. diff --git a/typedapi/types/invertedindex.go b/typedapi/types/invertedindex.go index 0acc3937c1..51dbee4157 100644 --- a/typedapi/types/invertedindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // InvertedIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L68-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L68-L76 type InvertedIndex struct { Offsets uint `json:"offsets"` Payloads uint `json:"payloads"` diff --git a/typedapi/types/invocation.go b/typedapi/types/invocation.go index fb9b886e67..e021ade487 100644 --- a/typedapi/types/invocation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Invocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/_types/SnapshotLifecycle.ts#L148-L151 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/_types/SnapshotLifecycle.ts#L148-L151 type Invocation struct { SnapshotName string `json:"snapshot_name"` Time DateTime `json:"time"` diff --git a/typedapi/types/invocations.go b/typedapi/types/invocations.go index cff0fde186..6b7eed425a 100644 --- a/typedapi/types/invocations.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Invocations type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L41-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L41-L43 type Invocations struct { Total int64 `json:"total"` } diff --git a/typedapi/types/iostatdevice.go b/typedapi/types/iostatdevice.go index eced5e511b..5ebfe02b19 100644 --- a/typedapi/types/iostatdevice.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IoStatDevice type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L801-L826 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L801-L826 type IoStatDevice struct { // DeviceName The Linux device name. DeviceName *string `json:"device_name,omitempty"` diff --git a/typedapi/types/iostats.go b/typedapi/types/iostats.go index 3f7c342e9a..d92ac599de 100644 --- a/typedapi/types/iostats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // IoStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L789-L799 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L789-L799 type IoStats struct { // Devices Array of disk metrics for each device that is backing an Elasticsearch data // path. diff --git a/typedapi/types/ipfilter.go b/typedapi/types/ipfilter.go index b33c87475f..6c65adc42a 100644 --- a/typedapi/types/ipfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IpFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L177-L180 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L177-L180 type IpFilter struct { Http bool `json:"http"` Transport bool `json:"transport"` diff --git a/typedapi/types/ipinfo.go b/typedapi/types/ipinfo.go index 342de91ce8..0e8f3c45d8 100644 --- a/typedapi/types/ipinfo.go +++ b/typedapi/types/ipinfo.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Ipinfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Database.ts#L59-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Database.ts#L59-L59 type Ipinfo struct { } diff --git a/typedapi/types/iplocationdatabaseconfigurationmetadata.go b/typedapi/types/iplocationdatabaseconfigurationmetadata.go index 0103214e94..fda4c1685f 100644 --- a/typedapi/types/iplocationdatabaseconfigurationmetadata.go +++ b/typedapi/types/iplocationdatabaseconfigurationmetadata.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IpLocationDatabaseConfigurationMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34 type IpLocationDatabaseConfigurationMetadata struct { Database DatabaseConfigurationFull `json:"database"` Id string `json:"id"` diff --git a/typedapi/types/iplocationprocessor.go b/typedapi/types/iplocationprocessor.go index 8ca4a71a16..5d2dee467a 100644 --- a/typedapi/types/iplocationprocessor.go +++ b/typedapi/types/iplocationprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IpLocationProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L478-L512 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L478-L512 type IpLocationProcessor 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/typedapi/types/ipprefixaggregate.go b/typedapi/types/ipprefixaggregate.go index c4a592a8e8..6f2a298590 100644 --- a/typedapi/types/ipprefixaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IpPrefixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L709-L713 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L709-L713 type IpPrefixAggregate struct { Buckets BucketsIpPrefixBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/ipprefixaggregation.go b/typedapi/types/ipprefixaggregation.go index f9f51ea719..068f27315f 100644 --- a/typedapi/types/ipprefixaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IpPrefixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1195-L1224 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1195-L1224 type IpPrefixAggregation struct { // AppendPrefixLength Defines whether the prefix length is appended to IP address keys in the // response. diff --git a/typedapi/types/ipprefixbucket.go b/typedapi/types/ipprefixbucket.go index ade44e2119..62fce47d34 100644 --- a/typedapi/types/ipprefixbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // IpPrefixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L715-L720 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L715-L720 type IpPrefixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/ipproperty.go b/typedapi/types/ipproperty.go index 26cd016f39..20b962850b 100644 --- a/typedapi/types/ipproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // IpProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L74-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L74-L88 type IpProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/iprangeaggregate.go b/typedapi/types/iprangeaggregate.go index c1fbb93f55..ca439604fd 100644 --- a/typedapi/types/iprangeaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L624-L629 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L624-L629 type IpRangeAggregate struct { Buckets BucketsIpRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/iprangeaggregation.go b/typedapi/types/iprangeaggregation.go index 43bc33f5ff..793a08b638 100644 --- a/typedapi/types/iprangeaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L567-L576 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L567-L576 type IpRangeAggregation struct { // Field The date field whose values are used to build ranges. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/iprangeaggregationrange.go b/typedapi/types/iprangeaggregationrange.go index 59be345e5a..d50c9215c7 100644 --- a/typedapi/types/iprangeaggregationrange.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IpRangeAggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L578-L591 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L578-L591 type IpRangeAggregationRange struct { // From Start of the range. From *string `json:"from,omitempty"` diff --git a/typedapi/types/iprangebucket.go b/typedapi/types/iprangebucket.go index 8d83b63a22..8eb0a6efb4 100644 --- a/typedapi/types/iprangebucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // IpRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L631-L635 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L631-L635 type IpRangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/iprangeproperty.go b/typedapi/types/iprangeproperty.go index 3dc929c0ba..494ae5830b 100644 --- a/typedapi/types/iprangeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // IpRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/range.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/range.ts#L46-L48 type IpRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/irishanalyzer.go b/typedapi/types/irishanalyzer.go index 18712f72ff..57522ffee2 100644 --- a/typedapi/types/irishanalyzer.go +++ b/typedapi/types/irishanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // IrishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L200-L205 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L200-L205 type IrishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/italiananalyzer.go b/typedapi/types/italiananalyzer.go index 14500b9905..e356667d05 100644 --- a/typedapi/types/italiananalyzer.go +++ b/typedapi/types/italiananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ItalianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L207-L212 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L207-L212 type ItalianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/jinaaiservicesettings.go b/typedapi/types/jinaaiservicesettings.go new file mode 100644 index 0000000000..7c92b8f47d --- /dev/null +++ b/typedapi/types/jinaaiservicesettings.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jinaaisimilaritytype" +) + +// JinaAIServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L900-L929 +type JinaAIServiceSettings struct { + // ApiKey A valid API key of your JinaAI account. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // ModelId The name of the model to use for the inference task. + // For a `rerank` task, it is required. + // For a `text_embedding` task, it is optional. + ModelId *string `json:"model_id,omitempty"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // JinaAI. + // By default, the `jinaai` service sets the number of requests allowed per + // minute to 2000 for all task types. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Similarity For a `text_embedding` task, the similarity measure. One of cosine, + // dot_product, l2_norm. + // The default values varies with the embedding type. + // For example, a float embedding type uses a `dot_product` similarity measure + // by default. + Similarity *jinaaisimilaritytype.JinaAISimilarityType `json:"similarity,omitempty"` +} + +func (s *JinaAIServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = &o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "similarity": + if err := dec.Decode(&s.Similarity); err != nil { + return fmt.Errorf("%s | %w", "Similarity", err) + } + + } + } + return nil +} + +// NewJinaAIServiceSettings returns a JinaAIServiceSettings. +func NewJinaAIServiceSettings() *JinaAIServiceSettings { + r := &JinaAIServiceSettings{} + + return r +} + +// true + +type JinaAIServiceSettingsVariant interface { + JinaAIServiceSettingsCaster() *JinaAIServiceSettings +} + +func (s *JinaAIServiceSettings) JinaAIServiceSettingsCaster() *JinaAIServiceSettings { + return s +} diff --git a/typedapi/types/jinaaitasksettings.go b/typedapi/types/jinaaitasksettings.go new file mode 100644 index 0000000000..9eba98e330 --- /dev/null +++ b/typedapi/types/jinaaitasksettings.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/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jinaaitextembeddingtask" +) + +// JinaAITaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L931-L952 +type JinaAITaskSettings struct { + // ReturnDocuments For a `rerank` task, return the doc text within the results. + ReturnDocuments *bool `json:"return_documents,omitempty"` + // Task For a `text_embedding` task, the task passed to the model. + // Valid values are: + // + // * `classification`: Use it for embeddings passed through a text classifier. + // * `clustering`: Use it for the embeddings run through a clustering algorithm. + // * `ingest`: Use it for storing document embeddings in a vector database. + // * `search`: Use it for storing embeddings of search queries run against a + // vector database to find relevant documents. + Task *jinaaitextembeddingtask.JinaAITextEmbeddingTask `json:"task,omitempty"` + // TopN For a `rerank` task, the number of most relevant documents to return. + // It defaults to the number of the documents. + // If this inference endpoint is used in a `text_similarity_reranker` retriever + // query and `top_n` is set, it must be greater than or equal to + // `rank_window_size` in the query. + TopN *int `json:"top_n,omitempty"` +} + +func (s *JinaAITaskSettings) 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 "return_documents": + 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", "ReturnDocuments", err) + } + s.ReturnDocuments = &value + case bool: + s.ReturnDocuments = &v + } + + case "task": + if err := dec.Decode(&s.Task); err != nil { + return fmt.Errorf("%s | %w", "Task", err) + } + + case "top_n": + + 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", "TopN", err) + } + s.TopN = &value + case float64: + f := int(v) + s.TopN = &f + } + + } + } + return nil +} + +// NewJinaAITaskSettings returns a JinaAITaskSettings. +func NewJinaAITaskSettings() *JinaAITaskSettings { + r := &JinaAITaskSettings{} + + return r +} + +// true + +type JinaAITaskSettingsVariant interface { + JinaAITaskSettingsCaster() *JinaAITaskSettings +} + +func (s *JinaAITaskSettings) JinaAITaskSettingsCaster() *JinaAITaskSettings { + return s +} diff --git a/typedapi/types/job.go b/typedapi/types/job.go index cb48f60254..b556f6b21d 100644 --- a/typedapi/types/job.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Job type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L61-L180 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/jobblocked.go b/typedapi/types/jobblocked.go index ff73353939..645a862854 100644 --- a/typedapi/types/jobblocked.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // JobBlocked type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L392-L395 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Job.ts#L392-L395 type JobBlocked struct { Reason jobblockedreason.JobBlockedReason `json:"reason"` TaskId TaskId `json:"task_id,omitempty"` diff --git a/typedapi/types/jobconfig.go b/typedapi/types/jobconfig.go index 0bb684ea86..f591e3485d 100644 --- a/typedapi/types/jobconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JobConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L182-L283 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/jobforecaststatistics.go b/typedapi/types/jobforecaststatistics.go index 82beb7a3e2..b3e9f597be 100644 --- a/typedapi/types/jobforecaststatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JobForecastStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L343-L350 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Job.ts#L343-L350 type JobForecastStatistics struct { ForecastedJobs int `json:"forecasted_jobs"` MemoryBytes *JobStatistics `json:"memory_bytes,omitempty"` diff --git a/typedapi/types/jobsrecord.go b/typedapi/types/jobsrecord.go index 539f5ac051..a6ecc3f0e1 100644 --- a/typedapi/types/jobsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // JobsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/ml_jobs/types.ts#L24-L347 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/jobstatistics.go b/typedapi/types/jobstatistics.go index 3282709468..35ff197286 100644 --- a/typedapi/types/jobstatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JobStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L54-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Job.ts#L54-L59 type JobStatistics struct { Avg Float64 `json:"avg"` Max Float64 `json:"max"` diff --git a/typedapi/types/jobstats.go b/typedapi/types/jobstats.go index d47c2761d7..54380f9056 100644 --- a/typedapi/types/jobstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // JobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L284-L330 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/jobtimingstats.go b/typedapi/types/jobtimingstats.go index c2f2ce84b5..5aa9ad59ab 100644 --- a/typedapi/types/jobtimingstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JobTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Job.ts#L332-L341 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/jobusage.go b/typedapi/types/jobusage.go index 7efffbf993..c363e26bb8 100644 --- a/typedapi/types/jobusage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JobUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L374-L380 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L374-L380 type JobUsage struct { Count int `json:"count"` CreatedBy map[string]int64 `json:"created_by"` diff --git a/typedapi/types/joinprocessor.go b/typedapi/types/joinprocessor.go index f1f9d7c2f4..77d0de30e8 100644 --- a/typedapi/types/joinprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JoinProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1103-L1118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1121-L1136 type JoinProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/joinproperty.go b/typedapi/types/joinproperty.go index 7b492e92b3..d434dd7b0b 100644 --- a/typedapi/types/joinproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // JoinProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L92-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L102-L106 type JoinProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"` diff --git a/typedapi/types/jsonprocessor.go b/typedapi/types/jsonprocessor.go index 6c26487766..97da587fb8 100644 --- a/typedapi/types/jsonprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // JsonProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1120-L1149 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1138-L1167 type JsonProcessor struct { // AddToRoot Flag that forces the parsed JSON to be added at the top level of the // document. diff --git a/typedapi/types/jvm.go b/typedapi/types/jvm.go index fa572208c2..7ebb15d089 100644 --- a/typedapi/types/jvm.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Jvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L882-L916 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L882-L916 type Jvm struct { // BufferPools Contains statistics about JVM buffer pools for the node. BufferPools map[string]NodeBufferPool `json:"buffer_pools,omitempty"` diff --git a/typedapi/types/jvmclasses.go b/typedapi/types/jvmclasses.go index 2b2e4dd729..e9136a510c 100644 --- a/typedapi/types/jvmclasses.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JvmClasses type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L979-L992 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L979-L992 type JvmClasses struct { // CurrentLoadedCount Number of classes currently loaded by JVM. CurrentLoadedCount *int64 `json:"current_loaded_count,omitempty"` diff --git a/typedapi/types/jvmmemorystats.go b/typedapi/types/jvmmemorystats.go index 0bf0e3f205..00b919bd5b 100644 --- a/typedapi/types/jvmmemorystats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JvmMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L918-L947 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L918-L947 type JvmMemoryStats struct { // HeapCommittedInBytes Amount of memory, in bytes, available for use by the heap. HeapCommittedInBytes *int64 `json:"heap_committed_in_bytes,omitempty"` diff --git a/typedapi/types/jvmstats.go b/typedapi/types/jvmstats.go index 052b33ec4a..b5fefe0365 100644 --- a/typedapi/types/jvmstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JvmStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_memory_stats/types.ts#L50-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/jvmthreads.go b/typedapi/types/jvmthreads.go index a854ea673f..86565c9e00 100644 --- a/typedapi/types/jvmthreads.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // JvmThreads type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L968-L977 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L968-L977 type JvmThreads struct { // Count Number of active threads in use by JVM. Count *int64 `json:"count,omitempty"` diff --git a/typedapi/types/keeptypestokenfilter.go b/typedapi/types/keeptypestokenfilter.go index 37a52e8cba..e45aa78522 100644 --- a/typedapi/types/keeptypestokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // KeepTypesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L219-L223 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L219-L223 type KeepTypesTokenFilter struct { Mode *keeptypesmode.KeepTypesMode `json:"mode,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/keepwordstokenfilter.go b/typedapi/types/keepwordstokenfilter.go index 1c2c957714..b32fcdb9b8 100644 --- a/typedapi/types/keepwordstokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KeepWordsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L225-L230 type KeepWordsTokenFilter struct { KeepWords []string `json:"keep_words,omitempty"` KeepWordsCase *bool `json:"keep_words_case,omitempty"` diff --git a/typedapi/types/keyedpercentiles.go b/typedapi/types/keyedpercentiles.go index 034314b84b..60a444bd4f 100644 --- a/typedapi/types/keyedpercentiles.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // KeyedPercentiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L160-L160 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L160-L160 type KeyedPercentiles map[string]string func (s KeyedPercentiles) UnmarshalJSON(data []byte) error { diff --git a/typedapi/types/keyedprocessor.go b/typedapi/types/keyedprocessor.go index 82821b361a..625490d12c 100644 --- a/typedapi/types/keyedprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KeyedProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L415-L418 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L415-L418 type KeyedProcessor struct { Stats *Processor `json:"stats,omitempty"` Type *string `json:"type,omitempty"` diff --git a/typedapi/types/keyvalueprocessor.go b/typedapi/types/keyvalueprocessor.go index d0a20eea7c..5e5c419b62 100644 --- a/typedapi/types/keyvalueprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KeyValueProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1158-L1210 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1176-L1228 type KeyValueProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/keywordanalyzer.go b/typedapi/types/keywordanalyzer.go index 8502332812..6a822c333d 100644 --- a/typedapi/types/keywordanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // KeywordAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L47-L50 type KeywordAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/keywordmarkertokenfilter.go b/typedapi/types/keywordmarkertokenfilter.go index 539a838890..291aab1dd8 100644 --- a/typedapi/types/keywordmarkertokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KeywordMarkerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L232-L238 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L232-L238 type KeywordMarkerTokenFilter struct { IgnoreCase *bool `json:"ignore_case,omitempty"` Keywords []string `json:"keywords,omitempty"` diff --git a/typedapi/types/keywordproperty.go b/typedapi/types/keywordproperty.go index f2c15675b3..9270127952 100644 --- a/typedapi/types/keywordproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // KeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L98-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L108-L127 type KeywordProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/keywordtokenizer.go b/typedapi/types/keywordtokenizer.go index b5582f97a4..be09019152 100644 --- a/typedapi/types/keywordtokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KeywordTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L68-L74 type KeywordTokenizer struct { BufferSize *int `json:"buffer_size,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/kibanatoken.go b/typedapi/types/kibanatoken.go index 7efa159709..f59e30dede 100644 --- a/typedapi/types/kibanatoken.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KibanaToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/enroll_kibana/Response.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/enroll_kibana/Response.ts#L31-L41 type KibanaToken struct { // Name The name of the bearer token for the `elastic/kibana` service account. Name string `json:"name"` diff --git a/typedapi/types/knncollectorresult.go b/typedapi/types/knncollectorresult.go index e156e2543b..2616f5e9ef 100644 --- a/typedapi/types/knncollectorresult.go +++ b/typedapi/types/knncollectorresult.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KnnCollectorResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L222-L228 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L222-L228 type KnnCollectorResult struct { Children []KnnCollectorResult `json:"children,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/knnquery.go b/typedapi/types/knnquery.go index e4cd5116f4..0d377dceec 100644 --- a/typedapi/types/knnquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Knn.ts#L64-L87 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Knn.ts#L64-L87 type KnnQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/knnqueryprofilebreakdown.go b/typedapi/types/knnqueryprofilebreakdown.go index 0e8473e607..071f75b6b0 100644 --- a/typedapi/types/knnqueryprofilebreakdown.go +++ b/typedapi/types/knnqueryprofilebreakdown.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KnnQueryProfileBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L199-L220 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L199-L220 type KnnQueryProfileBreakdown struct { Advance int64 `json:"advance"` AdvanceCount int64 `json:"advance_count"` diff --git a/typedapi/types/knnqueryprofileresult.go b/typedapi/types/knnqueryprofileresult.go index 2ad10a3e9d..3e77b68aaa 100644 --- a/typedapi/types/knnqueryprofileresult.go +++ b/typedapi/types/knnqueryprofileresult.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KnnQueryProfileResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L188-L196 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L188-L196 type KnnQueryProfileResult struct { Breakdown KnnQueryProfileBreakdown `json:"breakdown"` Children []KnnQueryProfileResult `json:"children,omitempty"` diff --git a/typedapi/types/knnretriever.go b/typedapi/types/knnretriever.go index 0ea88e7b1c..d9745fbab2 100644 --- a/typedapi/types/knnretriever.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KnnRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Retriever.ts#L64-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Retriever.ts#L64-L82 type KnnRetriever struct { // Field The name of the vector field to search against. Field string `json:"field"` diff --git a/typedapi/types/knnsearch.go b/typedapi/types/knnsearch.go index cfdfac3ee1..b5607465d0 100644 --- a/typedapi/types/knnsearch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KnnSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Knn.ts#L35-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Knn.ts#L35-L62 type KnnSearch struct { // Boost Boost value to apply to kNN scores Boost *float32 `json:"boost,omitempty"` diff --git a/typedapi/types/kstemtokenfilter.go b/typedapi/types/kstemtokenfilter.go index 85471e12d1..74b9a2a9d8 100644 --- a/typedapi/types/kstemtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // KStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L240-L242 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L240-L242 type KStemTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/kuromojianalyzer.go b/typedapi/types/kuromojianalyzer.go index d0ac58278f..67f0147c23 100644 --- a/typedapi/types/kuromojianalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // KuromojiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/kuromoji-plugin.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/kuromoji-plugin.ts#L25-L29 type KuromojiAnalyzer struct { Mode kuromojitokenizationmode.KuromojiTokenizationMode `json:"mode"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/kuromojiiterationmarkcharfilter.go b/typedapi/types/kuromojiiterationmarkcharfilter.go index 211b99e5f9..b6f3f6c4e9 100644 --- a/typedapi/types/kuromojiiterationmarkcharfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KuromojiIterationMarkCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/kuromoji-plugin.ts#L31-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/kuromoji-plugin.ts#L31-L35 type KuromojiIterationMarkCharFilter struct { NormalizeKana bool `json:"normalize_kana"` NormalizeKanji bool `json:"normalize_kanji"` diff --git a/typedapi/types/kuromojipartofspeechtokenfilter.go b/typedapi/types/kuromojipartofspeechtokenfilter.go index 748863d280..b238c93206 100644 --- a/typedapi/types/kuromojipartofspeechtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // KuromojiPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/kuromoji-plugin.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/kuromoji-plugin.ts#L37-L40 type KuromojiPartOfSpeechTokenFilter struct { Stoptags []string `json:"stoptags"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/kuromojireadingformtokenfilter.go b/typedapi/types/kuromojireadingformtokenfilter.go index 7ef57f3533..66e2f26fee 100644 --- a/typedapi/types/kuromojireadingformtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KuromojiReadingFormTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/kuromoji-plugin.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/kuromoji-plugin.ts#L42-L45 type KuromojiReadingFormTokenFilter struct { Type string `json:"type,omitempty"` UseRomaji bool `json:"use_romaji"` diff --git a/typedapi/types/kuromojistemmertokenfilter.go b/typedapi/types/kuromojistemmertokenfilter.go index df3d5a4f27..e3940dd970 100644 --- a/typedapi/types/kuromojistemmertokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // KuromojiStemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/kuromoji-plugin.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/kuromoji-plugin.ts#L47-L50 type KuromojiStemmerTokenFilter struct { MinimumLength int `json:"minimum_length"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/kuromojitokenizer.go b/typedapi/types/kuromojitokenizer.go index b39d8a19e0..5ed4487715 100644 --- a/typedapi/types/kuromojitokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // KuromojiTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/kuromoji-plugin.ts#L58-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/languagecontext.go b/typedapi/types/languagecontext.go index 71ffe5569c..177363b8e0 100644 --- a/typedapi/types/languagecontext.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // LanguageContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/get_script_languages/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/get_script_languages/types.ts#L22-L25 type LanguageContext struct { Contexts []string `json:"contexts"` Language scriptlanguage.ScriptLanguage `json:"language"` diff --git a/typedapi/types/laplacesmoothingmodel.go b/typedapi/types/laplacesmoothingmodel.go index bac834c258..378bbd75b7 100644 --- a/typedapi/types/laplacesmoothingmodel.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LaplaceSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L430-L435 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/latest.go b/typedapi/types/latest.go index afbb11d61a..2ad2ee87bb 100644 --- a/typedapi/types/latest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Latest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L47-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/latlongeolocation.go b/typedapi/types/latlongeolocation.go index e5017aaac6..b68bd15b2d 100644 --- a/typedapi/types/latlongeolocation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LatLonGeoLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L120-L129 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L120-L129 type LatLonGeoLocation struct { // Lat Latitude Lat Float64 `json:"lat"` diff --git a/typedapi/types/latviananalyzer.go b/typedapi/types/latviananalyzer.go index 9428c591d8..61d3610ab6 100644 --- a/typedapi/types/latviananalyzer.go +++ b/typedapi/types/latviananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LatvianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L214-L219 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L214-L219 type LatvianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/learningtorank.go b/typedapi/types/learningtorank.go index 6ff15a75be..52c007dded 100644 --- a/typedapi/types/learningtorank.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LearningToRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/rescoring.ts#L88-L97 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/learningtorankconfig.go b/typedapi/types/learningtorankconfig.go new file mode 100644 index 0000000000..6e1f0aef8c --- /dev/null +++ b/typedapi/types/learningtorankconfig.go @@ -0,0 +1,107 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// LearningToRankConfig type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L87-L91 +type LearningToRankConfig struct { + DefaultParams map[string]json.RawMessage `json:"default_params,omitempty"` + FeatureExtractors []map[string]QueryFeatureExtractor `json:"feature_extractors,omitempty"` + NumTopFeatureImportanceValues int `json:"num_top_feature_importance_values"` +} + +func (s *LearningToRankConfig) 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 "default_params": + if s.DefaultParams == nil { + s.DefaultParams = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.DefaultParams); err != nil { + return fmt.Errorf("%s | %w", "DefaultParams", err) + } + + case "feature_extractors": + if err := dec.Decode(&s.FeatureExtractors); err != nil { + return fmt.Errorf("%s | %w", "FeatureExtractors", err) + } + + case "num_top_feature_importance_values": + + 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", "NumTopFeatureImportanceValues", err) + } + s.NumTopFeatureImportanceValues = value + case float64: + f := int(v) + s.NumTopFeatureImportanceValues = f + } + + } + } + return nil +} + +// NewLearningToRankConfig returns a LearningToRankConfig. +func NewLearningToRankConfig() *LearningToRankConfig { + r := &LearningToRankConfig{ + DefaultParams: make(map[string]json.RawMessage), + } + + return r +} + +// true + +type LearningToRankConfigVariant interface { + LearningToRankConfigCaster() *LearningToRankConfig +} + +func (s *LearningToRankConfig) LearningToRankConfigCaster() *LearningToRankConfig { + return s +} diff --git a/typedapi/types/lengthtokenfilter.go b/typedapi/types/lengthtokenfilter.go index 8409ee691c..32c0b30d9a 100644 --- a/typedapi/types/lengthtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LengthTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L244-L248 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L244-L248 type LengthTokenFilter struct { Max *int `json:"max,omitempty"` Min *int `json:"min,omitempty"` diff --git a/typedapi/types/lessthanvalidation.go b/typedapi/types/lessthanvalidation.go index c48912d65f..c2234e4122 100644 --- a/typedapi/types/lessthanvalidation.go +++ b/typedapi/types/lessthanvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LessThanValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L58-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L58-L61 type LessThanValidation struct { Constraint Float64 `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/lettertokenizer.go b/typedapi/types/lettertokenizer.go index b5c1ec38e3..1c6a155588 100644 --- a/typedapi/types/lettertokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // LetterTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L76-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L76-L78 type LetterTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/license.go b/typedapi/types/license.go index 666019696e..7646d39892 100644 --- a/typedapi/types/license.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // License type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/_types/License.ts#L42-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/_types/License.ts#L42-L53 type License struct { ExpiryDateInMillis int64 `json:"expiry_date_in_millis"` IssueDateInMillis int64 `json:"issue_date_in_millis"` diff --git a/typedapi/types/licenseinformation.go b/typedapi/types/licenseinformation.go index faa981d3c4..bb7a8fd9d1 100644 --- a/typedapi/types/licenseinformation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // LicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/license/get/types.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/license/get/types.ts#L25-L38 type LicenseInformation struct { ExpiryDate DateTime `json:"expiry_date,omitempty"` ExpiryDateInMillis *int64 `json:"expiry_date_in_millis,omitempty"` diff --git a/typedapi/types/lifecycle.go b/typedapi/types/lifecycle.go index 64e7477eba..b1bf9c0dfe 100644 --- a/typedapi/types/lifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Lifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/get_lifecycle/types.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/get_lifecycle/types.ts#L24-L28 type Lifecycle struct { ModifiedDate DateTime `json:"modified_date"` Policy IlmPolicy `json:"policy"` diff --git a/typedapi/types/lifecycleexplain.go b/typedapi/types/lifecycleexplain.go index d2104de34c..d69477dbe6 100644 --- a/typedapi/types/lifecycleexplain.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // LifecycleExplainManaged // LifecycleExplainUnmanaged // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/explain_lifecycle/types.ts#L64-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/explain_lifecycle/types.ts#L64-L67 type LifecycleExplain any diff --git a/typedapi/types/lifecycleexplainmanaged.go b/typedapi/types/lifecycleexplainmanaged.go index 38eac72a26..7d3d4b949b 100644 --- a/typedapi/types/lifecycleexplainmanaged.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LifecycleExplainManaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/explain_lifecycle/types.ts#L27-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/explain_lifecycle/types.ts#L27-L57 type LifecycleExplainManaged struct { Action *string `json:"action,omitempty"` ActionTime DateTime `json:"action_time,omitempty"` diff --git a/typedapi/types/lifecycleexplainphaseexecution.go b/typedapi/types/lifecycleexplainphaseexecution.go index 023f6ca699..6b86016753 100644 --- a/typedapi/types/lifecycleexplainphaseexecution.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainPhaseExecution type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/explain_lifecycle/types.ts#L69-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/explain_lifecycle/types.ts#L69-L74 type LifecycleExplainPhaseExecution struct { ModifiedDateInMillis int64 `json:"modified_date_in_millis"` PhaseDefinition *Phase `json:"phase_definition,omitempty"` diff --git a/typedapi/types/lifecycleexplainunmanaged.go b/typedapi/types/lifecycleexplainunmanaged.go index 9eb0b09576..0586b15462 100644 --- a/typedapi/types/lifecycleexplainunmanaged.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainUnmanaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/explain_lifecycle/types.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/explain_lifecycle/types.ts#L59-L62 type LifecycleExplainUnmanaged struct { Index string `json:"index"` Managed bool `json:"managed,omitempty"` diff --git a/typedapi/types/like.go b/typedapi/types/like.go index 8f349434e6..679239b166 100644 --- a/typedapi/types/like.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // LikeDocument // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L198-L203 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L198-L203 type Like any type LikeVariant interface { diff --git a/typedapi/types/likedocument.go b/typedapi/types/likedocument.go index 79792bae9f..cf73f6d99b 100644 --- a/typedapi/types/likedocument.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // LikeDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L174-L196 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L174-L196 type LikeDocument struct { // Doc A document not present in the index. Doc json.RawMessage `json:"doc,omitempty"` diff --git a/typedapi/types/limits.go b/typedapi/types/limits.go index 95188e2331..0498304968 100644 --- a/typedapi/types/limits.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Limits type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/info/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/info/types.ts#L34-L40 type Limits struct { EffectiveMaxModelMemoryLimit ByteSize `json:"effective_max_model_memory_limit,omitempty"` MaxModelMemoryLimit ByteSize `json:"max_model_memory_limit,omitempty"` diff --git a/typedapi/types/limittokencounttokenfilter.go b/typedapi/types/limittokencounttokenfilter.go index ffeb82a09a..64d030961c 100644 --- a/typedapi/types/limittokencounttokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LimitTokenCountTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L250-L254 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L250-L254 type LimitTokenCountTokenFilter struct { ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"` MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` diff --git a/typedapi/types/linearinterpolationsmoothingmodel.go b/typedapi/types/linearinterpolationsmoothingmodel.go index e11cbeda56..1abf165489 100644 --- a/typedapi/types/linearinterpolationsmoothingmodel.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LinearInterpolationSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L437-L441 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L437-L441 type LinearInterpolationSmoothingModel struct { BigramLambda Float64 `json:"bigram_lambda"` TrigramLambda Float64 `json:"trigram_lambda"` diff --git a/typedapi/types/linearmovingaverageaggregation.go b/typedapi/types/linearmovingaverageaggregation.go index 75d65140ee..83eefd5c5c 100644 --- a/typedapi/types/linearmovingaverageaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // LinearMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L268-L271 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L268-L271 type LinearMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/listtypevalidation.go b/typedapi/types/listtypevalidation.go index b9e2f573c5..ad53449029 100644 --- a/typedapi/types/listtypevalidation.go +++ b/typedapi/types/listtypevalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ListTypeValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L68-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L68-L71 type ListTypeValidation struct { Constraint string `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/lithuaniananalyzer.go b/typedapi/types/lithuaniananalyzer.go index 53f3583d49..3fd16842b7 100644 --- a/typedapi/types/lithuaniananalyzer.go +++ b/typedapi/types/lithuaniananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LithuanianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L221-L226 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L221-L226 type LithuanianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/local.go b/typedapi/types/local.go index dbcf1dc113..d3da780952 100644 --- a/typedapi/types/local.go +++ b/typedapi/types/local.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Local type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Database.ts#L63-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Database.ts#L63-L65 type Local struct { Type string `json:"type"` } diff --git a/typedapi/types/loggingaction.go b/typedapi/types/loggingaction.go index 9935bd834f..d7c4e9a662 100644 --- a/typedapi/types/loggingaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LoggingAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L281-L285 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L281-L285 type LoggingAction struct { Category *string `json:"category,omitempty"` Level *string `json:"level,omitempty"` diff --git a/typedapi/types/loggingresult.go b/typedapi/types/loggingresult.go index 7187b701f6..8e38766f97 100644 --- a/typedapi/types/loggingresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LoggingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L287-L289 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L287-L289 type LoggingResult struct { LoggedText string `json:"logged_text"` } diff --git a/typedapi/types/logstashpipeline.go b/typedapi/types/logstashpipeline.go index 31457db744..edef3d9eb7 100644 --- a/typedapi/types/logstashpipeline.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LogstashPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/logstash/_types/Pipeline.ts#L60-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/logstash/_types/Pipeline.ts#L56-L87 type LogstashPipeline struct { // Description A description of the pipeline. // This description is not used by Elasticsearch or Logstash. diff --git a/typedapi/types/longnumberproperty.go b/typedapi/types/longnumberproperty.go index c46dc6efd6..ee13d4ff97 100644 --- a/typedapi/types/longnumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // LongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L176-L179 type LongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/longrangeproperty.go b/typedapi/types/longrangeproperty.go index 030d649b14..bbe0613a3f 100644 --- a/typedapi/types/longrangeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // LongRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/range.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/range.ts#L50-L52 type LongRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/longraretermsaggregate.go b/typedapi/types/longraretermsaggregate.go index 292ab57f8d..ae18a1c624 100644 --- a/typedapi/types/longraretermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // LongRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L471-L476 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L471-L476 type LongRareTermsAggregate struct { Buckets BucketsLongRareTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/longraretermsbucket.go b/typedapi/types/longraretermsbucket.go index 5568519f46..d8c6760940 100644 --- a/typedapi/types/longraretermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // LongRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L478-L481 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L478-L481 type LongRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/longtermsaggregate.go b/typedapi/types/longtermsaggregate.go index 64d9e917ed..63a0f85d51 100644 --- a/typedapi/types/longtermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L439-L444 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L439-L444 type LongTermsAggregate struct { Buckets BucketsLongTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/longtermsbucket.go b/typedapi/types/longtermsbucket.go index 252641796e..e377965224 100644 --- a/typedapi/types/longtermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // LongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L446-L449 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L446-L449 type LongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/lowercasenormalizer.go b/typedapi/types/lowercasenormalizer.go index 866817a7b7..b7a95093ee 100644 --- a/typedapi/types/lowercasenormalizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // LowercaseNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/normalizers.ts#L26-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/normalizers.ts#L26-L28 type LowercaseNormalizer struct { Type string `json:"type,omitempty"` } diff --git a/typedapi/types/lowercaseprocessor.go b/typedapi/types/lowercaseprocessor.go index dabddbd748..744cd979bc 100644 --- a/typedapi/types/lowercaseprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LowercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1212-L1228 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1230-L1246 type LowercaseProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/lowercasetokenfilter.go b/typedapi/types/lowercasetokenfilter.go index 5a0e2ce733..0d794dcaf3 100644 --- a/typedapi/types/lowercasetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // LowercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L256-L259 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L256-L259 type LowercaseTokenFilter struct { Language *string `json:"language,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/lowercasetokenizer.go b/typedapi/types/lowercasetokenizer.go index f0d1fab65b..f1204d7033 100644 --- a/typedapi/types/lowercasetokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // LowercaseTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L80-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L80-L82 type LowercaseTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/machinelearning.go b/typedapi/types/machinelearning.go index 99baf80519..76b80a2505 100644 --- a/typedapi/types/machinelearning.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MachineLearning type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L382-L389 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L382-L389 type MachineLearning struct { Available bool `json:"available"` DataFrameAnalyticsJobs MlDataFrameAnalyticsJobs `json:"data_frame_analytics_jobs"` diff --git a/typedapi/types/manageuserprivileges.go b/typedapi/types/manageuserprivileges.go index 91617a3326..492923cf5c 100644 --- a/typedapi/types/manageuserprivileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ManageUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L438-L440 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L438-L440 type ManageUserPrivileges struct { Applications []string `json:"applications"` } diff --git a/typedapi/types/mapboxvectortiles.go b/typedapi/types/mapboxvectortiles.go index cfda71e378..56fd3c31f2 100644 --- a/typedapi/types/mapboxvectortiles.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // MapboxVectorTiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Binary.ts#L21-L21 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Binary.ts#L21-L21 type MapboxVectorTiles []byte diff --git a/typedapi/types/mappingcharfilter.go b/typedapi/types/mappingcharfilter.go index a7f7a5d3a1..a32c86500d 100644 --- a/typedapi/types/mappingcharfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/char_filters.ts#L51-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/char_filters.ts#L51-L55 type MappingCharFilter struct { Mappings []string `json:"mappings,omitempty"` MappingsPath *string `json:"mappings_path,omitempty"` diff --git a/typedapi/types/mappinglimitsettings.go b/typedapi/types/mappinglimitsettings.go index 76c2fc6dbc..670bd57913 100644 --- a/typedapi/types/mappinglimitsettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L425-L439 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L425-L439 type MappingLimitSettings struct { Coerce *bool `json:"coerce,omitempty"` Depth *MappingLimitSettingsDepth `json:"depth,omitempty"` diff --git a/typedapi/types/mappinglimitsettingsdepth.go b/typedapi/types/mappinglimitsettingsdepth.go index d8681797c5..6ed3e95cf8 100644 --- a/typedapi/types/mappinglimitsettingsdepth.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDepth type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L460-L467 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L460-L467 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/typedapi/types/mappinglimitsettingsdimensionfields.go b/typedapi/types/mappinglimitsettingsdimensionfields.go index 524d188fb1..6d2b0b7670 100644 --- a/typedapi/types/mappinglimitsettingsdimensionfields.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDimensionFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L497-L503 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L497-L503 type MappingLimitSettingsDimensionFields struct { // Limit [preview] This functionality is in technical preview and may be changed or // removed in a future release. diff --git a/typedapi/types/mappinglimitsettingsfieldnamelength.go b/typedapi/types/mappinglimitsettingsfieldnamelength.go index 1acd258c0d..40f932ebbc 100644 --- a/typedapi/types/mappinglimitsettingsfieldnamelength.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsFieldNameLength type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L488-L495 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L488-L495 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/typedapi/types/mappinglimitsettingsnestedfields.go b/typedapi/types/mappinglimitsettingsnestedfields.go index eba0de9c6c..1a612ce6c1 100644 --- a/typedapi/types/mappinglimitsettingsnestedfields.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L469-L477 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L469-L477 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/typedapi/types/mappinglimitsettingsnestedobjects.go b/typedapi/types/mappinglimitsettingsnestedobjects.go index ef3480de2e..fb08153c26 100644 --- a/typedapi/types/mappinglimitsettingsnestedobjects.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedObjects type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L479-L486 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L479-L486 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/typedapi/types/mappinglimitsettingssourcefields.go b/typedapi/types/mappinglimitsettingssourcefields.go index 0b40ce42f4..9e9c424c8b 100644 --- a/typedapi/types/mappinglimitsettingssourcefields.go +++ b/typedapi/types/mappinglimitsettingssourcefields.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // MappingLimitSettingsSourceFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L505-L507 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L505-L507 type MappingLimitSettingsSourceFields struct { Mode sourcemode.SourceMode `json:"mode"` } diff --git a/typedapi/types/mappinglimitsettingstotalfields.go b/typedapi/types/mappinglimitsettingstotalfields.go index 3d569b9a4d..657fb33ff3 100644 --- a/typedapi/types/mappinglimitsettingstotalfields.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsTotalFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L441-L458 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L441-L458 type MappingLimitSettingsTotalFields struct { // IgnoreDynamicBeyondLimit This setting determines what happens when a dynamically mapped field would // exceed the total fields limit. When set diff --git a/typedapi/types/mappingstats.go b/typedapi/types/mappingstats.go index ac307bc55b..149cf9f7db 100644 --- a/typedapi/types/mappingstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MappingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/masterisstableindicator.go b/typedapi/types/masterisstableindicator.go index 952bbf4e2d..779ef61b2d 100644 --- a/typedapi/types/masterisstableindicator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MasterIsStableIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L80-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L80-L84 type MasterIsStableIndicator struct { Details *MasterIsStableIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/masterisstableindicatorclusterformationnode.go b/typedapi/types/masterisstableindicatorclusterformationnode.go index 5d0923b086..a519c643eb 100644 --- a/typedapi/types/masterisstableindicatorclusterformationnode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorClusterFormationNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L99-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L99-L103 type MasterIsStableIndicatorClusterFormationNode struct { ClusterFormationMessage string `json:"cluster_formation_message"` Name *string `json:"name,omitempty"` diff --git a/typedapi/types/masterisstableindicatordetails.go b/typedapi/types/masterisstableindicatordetails.go index 60a1525a58..63edd83dc9 100644 --- a/typedapi/types/masterisstableindicatordetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // MasterIsStableIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L85-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L85-L90 type MasterIsStableIndicatorDetails struct { ClusterFormation []MasterIsStableIndicatorClusterFormationNode `json:"cluster_formation,omitempty"` CurrentMaster IndicatorNode `json:"current_master"` diff --git a/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go b/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go index a2b0ee9988..504813aa1d 100644 --- a/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorExceptionFetchingHistory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L95-L98 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L95-L98 type MasterIsStableIndicatorExceptionFetchingHistory struct { Message string `json:"message"` StackTrace string `json:"stack_trace"` diff --git a/typedapi/types/masterrecord.go b/typedapi/types/masterrecord.go index 50cfb85c94..a63104c9c8 100644 --- a/typedapi/types/masterrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MasterRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/master/types.ts#L20-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/master/types.ts#L20-L39 type MasterRecord struct { // Host host name Host *string `json:"host,omitempty"` diff --git a/typedapi/types/matchallquery.go b/typedapi/types/matchallquery.go index f4ced65377..ba24b48666 100644 --- a/typedapi/types/matchallquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MatchAllQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/MatchAllQuery.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/MatchAllQuery.ts#L22-L25 type MatchAllQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/matchboolprefixquery.go b/typedapi/types/matchboolprefixquery.go index 0461229d5d..282a26d4be 100644 --- a/typedapi/types/matchboolprefixquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MatchBoolPrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L355-L412 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L355-L412 type MatchBoolPrefixQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/matchedfield.go b/typedapi/types/matchedfield.go index e45df70ee7..d2f4b8d040 100644 --- a/typedapi/types/matchedfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MatchedField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/test_grok_pattern/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/test_grok_pattern/types.ts#L23-L27 type MatchedField struct { Length int `json:"length"` Match string `json:"match"` diff --git a/typedapi/types/matchedtext.go b/typedapi/types/matchedtext.go index cfbfdbef60..bb39e0ab54 100644 --- a/typedapi/types/matchedtext.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MatchedText type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/test_grok_pattern/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/matchnonequery.go b/typedapi/types/matchnonequery.go index 8be3bdd108..a7e7dcc055 100644 --- a/typedapi/types/matchnonequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MatchNoneQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L25 type MatchNoneQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/matchonlytextproperty.go b/typedapi/types/matchonlytextproperty.go index 6409f2e92c..e8c4d25f5a 100644 --- a/typedapi/types/matchonlytextproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // MatchOnlyTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L247-L272 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L264-L289 type MatchOnlyTextProperty struct { // CopyTo Allows you to copy the values of multiple fields into a group // field, which can then be queried as a single field. diff --git a/typedapi/types/matchphraseprefixquery.go b/typedapi/types/matchphraseprefixquery.go index 54f6d81ce9..07e9670b55 100644 --- a/typedapi/types/matchphraseprefixquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MatchPhrasePrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L440-L469 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L440-L469 type MatchPhrasePrefixQuery struct { // Analyzer Analyzer used to convert text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/matchphrasequery.go b/typedapi/types/matchphrasequery.go index f512683171..1a75c29c44 100644 --- a/typedapi/types/matchphrasequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MatchPhraseQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L414-L438 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L414-L438 type MatchPhraseQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/matchquery.go b/typedapi/types/matchquery.go index a14e611595..a3b6bd5fcd 100644 --- a/typedapi/types/matchquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // MatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L285-L353 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L285-L353 type MatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/matrixstatsaggregate.go b/typedapi/types/matrixstatsaggregate.go index c2675af565..6d1b172f5d 100644 --- a/typedapi/types/matrixstatsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L866-L873 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L866-L873 type MatrixStatsAggregate struct { DocCount int64 `json:"doc_count"` Fields []MatrixStatsFields `json:"fields,omitempty"` diff --git a/typedapi/types/matrixstatsaggregation.go b/typedapi/types/matrixstatsaggregation.go index aa7ca32e77..abe1f04ac6 100644 --- a/typedapi/types/matrixstatsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // MatrixStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/matrix.ts#L38-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/matrixstatsfields.go b/typedapi/types/matrixstatsfields.go index 7c1bde8a2f..b49a66af51 100644 --- a/typedapi/types/matrixstatsfields.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L875-L884 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L875-L884 type MatrixStatsFields struct { Correlation map[string]Float64 `json:"correlation"` Count int64 `json:"count"` diff --git a/typedapi/types/maxaggregate.go b/typedapi/types/maxaggregate.go index 81d8356d1b..2bbce2c782 100644 --- a/typedapi/types/maxaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MaxAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L205-L209 type MaxAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/maxaggregation.go b/typedapi/types/maxaggregation.go index e852b4ce12..2cfd517858 100644 --- a/typedapi/types/maxaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MaxAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L165-L165 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L165-L165 type MaxAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/maxbucketaggregation.go b/typedapi/types/maxbucketaggregation.go index 6a2f99d3ff..30ac7bc8de 100644 --- a/typedapi/types/maxbucketaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MaxBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L244-L247 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L244-L247 type MaxBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/maxmind.go b/typedapi/types/maxmind.go index 98cb7070d8..5968c44645 100644 --- a/typedapi/types/maxmind.go +++ b/typedapi/types/maxmind.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Maxmind type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Database.ts#L55-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Database.ts#L55-L57 type Maxmind struct { AccountId string `json:"account_id"` } diff --git a/typedapi/types/medianabsolutedeviationaggregate.go b/typedapi/types/medianabsolutedeviationaggregate.go index d41dbdbe17..28a658e626 100644 --- a/typedapi/types/medianabsolutedeviationaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L196-L197 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L196-L197 type MedianAbsoluteDeviationAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/medianabsolutedeviationaggregation.go b/typedapi/types/medianabsolutedeviationaggregation.go index 95cb3aae65..8658093caa 100644 --- a/typedapi/types/medianabsolutedeviationaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L167-L176 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L167-L176 type MedianAbsoluteDeviationAggregation struct { // Compression Limits the maximum number of nodes used by the underlying TDigest algorithm // to `20 * compression`, enabling control of memory usage and approximation diff --git a/typedapi/types/memmlstats.go b/typedapi/types/memmlstats.go index 1405b34ac6..996e1a63a0 100644 --- a/typedapi/types/memmlstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MemMlStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_memory_stats/types.ts#L90-L111 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/memory.go b/typedapi/types/memory.go index 8d30746ef4..6ca355832a 100644 --- a/typedapi/types/memory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Memory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_memory_stats/types.ts#L25-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/memorystats.go b/typedapi/types/memorystats.go index df1f0c728d..986438b28b 100644 --- a/typedapi/types/memorystats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L632-L656 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L632-L656 type MemoryStats struct { // AdjustedTotalInBytes If the amount of physical memory has been overridden using the // `es`.`total_memory_bytes` system property then this reports the overridden diff --git a/typedapi/types/memstats.go b/typedapi/types/memstats.go index ecf6a2bbf6..9061362483 100644 --- a/typedapi/types/memstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MemStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/get_memory_stats/types.ts#L65-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/merge.go b/typedapi/types/merge.go index e4b0c92f33..a389e6ba75 100644 --- a/typedapi/types/merge.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Merge type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L346-L348 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L346-L348 type Merge struct { Scheduler *MergeScheduler `json:"scheduler,omitempty"` } diff --git a/typedapi/types/mergescheduler.go b/typedapi/types/mergescheduler.go index 8700788224..007997744b 100644 --- a/typedapi/types/mergescheduler.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // MergeScheduler type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L350-L353 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L350-L353 type MergeScheduler struct { MaxMergeCount Stringifiedinteger `json:"max_merge_count,omitempty"` MaxThreadCount Stringifiedinteger `json:"max_thread_count,omitempty"` diff --git a/typedapi/types/mergesstats.go b/typedapi/types/mergesstats.go index 5450fa1b1c..63f1ebe206 100644 --- a/typedapi/types/mergesstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MergesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L164-L181 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L164-L181 type MergesStats struct { Current int64 `json:"current"` CurrentDocs int64 `json:"current_docs"` diff --git a/typedapi/types/message.go b/typedapi/types/message.go index 39ab289532..afbce35b02 100644 --- a/typedapi/types/message.go +++ b/typedapi/types/message.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Message type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L145-L165 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L135-L155 type Message struct { // Content The content of the message. Content MessageContent `json:"content,omitempty"` diff --git a/typedapi/types/messagecontent.go b/typedapi/types/messagecontent.go index 797a6ef4a2..1f305681c3 100644 --- a/typedapi/types/messagecontent.go +++ b/typedapi/types/messagecontent.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // []ContentObject // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L140-L143 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L130-L133 type MessageContent any type MessageContentVariant interface { diff --git a/typedapi/types/metadata.go b/typedapi/types/metadata.go index bb802ad5e1..919586fa7e 100644 --- a/typedapi/types/metadata.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // Metadata type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L100-L100 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L100-L100 type Metadata map[string]json.RawMessage type MetadataVariant interface { diff --git a/typedapi/types/metrics.go b/typedapi/types/metrics.go index 005d57c163..e6a07016ab 100644 --- a/typedapi/types/metrics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Metrics type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L76-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L76-L76 type Metrics []string diff --git a/typedapi/types/mgetoperation.go b/typedapi/types/mgetoperation.go index 55c29979dd..3686eb6d8f 100644 --- a/typedapi/types/mgetoperation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // MgetOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mget/types.ts#L32-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/mget/types.ts#L32-L55 type MgetOperation struct { // Id_ The unique document ID. Id_ string `json:"_id"` diff --git a/typedapi/types/mgetresponseitem.go b/typedapi/types/mgetresponseitem.go index c48484c25c..0d6cebb246 100644 --- a/typedapi/types/mgetresponseitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // GetResult // MultiGetError // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mget/types.ts#L57-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/mget/types.ts#L57-L60 type MgetResponseItem any diff --git a/typedapi/types/migrateaction.go b/typedapi/types/migrateaction.go index e36cf09abd..4eb0708dd9 100644 --- a/typedapi/types/migrateaction.go +++ b/typedapi/types/migrateaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MigrateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L141-L143 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L141-L143 type MigrateAction struct { Enabled *bool `json:"enabled,omitempty"` } diff --git a/typedapi/types/migratereindex.go b/typedapi/types/migratereindex.go index 62d4903650..5a4e0a37d6 100644 --- a/typedapi/types/migratereindex.go +++ b/typedapi/types/migratereindex.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // MigrateReindex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48 type MigrateReindex struct { // Mode Reindex mode. Currently only 'upgrade' is supported. Mode modeenum.ModeEnum `json:"mode"` diff --git a/typedapi/types/migrationfeatureindexinfo.go b/typedapi/types/migrationfeatureindexinfo.go index 3a1657a1c2..7bfa302b6b 100644 --- a/typedapi/types/migrationfeatureindexinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // MigrationFeatureIndexInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/minaggregate.go b/typedapi/types/minaggregate.go index e126b644ce..4b0e709188 100644 --- a/typedapi/types/minaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MinAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L199-L203 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L199-L203 type MinAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/minaggregation.go b/typedapi/types/minaggregation.go index b9276d10f8..11d58ddb04 100644 --- a/typedapi/types/minaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MinAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L178-L178 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L178-L178 type MinAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/minbucketaggregation.go b/typedapi/types/minbucketaggregation.go index 699097f152..47c602a490 100644 --- a/typedapi/types/minbucketaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MinBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L249-L252 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L249-L252 type MinBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/minimallicenseinformation.go b/typedapi/types/minimallicenseinformation.go index 66914303a0..1b042e3f7e 100644 --- a/typedapi/types/minimallicenseinformation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // MinimalLicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/info/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/minimumshouldmatch.go b/typedapi/types/minimumshouldmatch.go index 3a26ef9e24..2c42fe6e34 100644 --- a/typedapi/types/minimumshouldmatch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L167-L171 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L167-L171 type MinimumShouldMatch any type MinimumShouldMatchVariant interface { diff --git a/typedapi/types/missing.go b/typedapi/types/missing.go index f527fd2a70..b96ea00111 100644 --- a/typedapi/types/missing.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ package types // Float64 // bool // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/AggregationContainer.ts#L535-L535 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/AggregationContainer.ts#L535-L535 type Missing any type MissingVariant interface { diff --git a/typedapi/types/missingaggregate.go b/typedapi/types/missingaggregate.go index 5e6835697d..702dd0324c 100644 --- a/typedapi/types/missingaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // MissingAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L528-L532 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L528-L532 type MissingAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/missingaggregation.go b/typedapi/types/missingaggregation.go index 1aa045005d..d52f3105a9 100644 --- a/typedapi/types/missingaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // MissingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L593-L599 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L593-L599 type MissingAggregation struct { // Field The name of the field. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/mistralservicesettings.go b/typedapi/types/mistralservicesettings.go new file mode 100644 index 0000000000..6e27dece44 --- /dev/null +++ b/typedapi/types/mistralservicesettings.go @@ -0,0 +1,140 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// MistralServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L976-L1003 +type MistralServiceSettings struct { + // ApiKey A valid API key of your Mistral account. + // You can find your Mistral API keys or you can create a new one on the API + // Keys page. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // MaxInputTokens The maximum number of tokens per input before chunking occurs. + MaxInputTokens *int `json:"max_input_tokens,omitempty"` + // Model The name of the model to use for the inference task. + // Refer to the Mistral models documentation for the list of available text + // embedding models. + Model string `json:"model"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // the Mistral API. + // By default, the `mistral` service sets the number of requests allowed per + // minute to 240. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` +} + +func (s *MistralServiceSettings) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "max_input_tokens": + + 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", "MaxInputTokens", err) + } + s.MaxInputTokens = &value + case float64: + f := int(v) + s.MaxInputTokens = &f + } + + case "model": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Model", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Model = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + } + } + return nil +} + +// NewMistralServiceSettings returns a MistralServiceSettings. +func NewMistralServiceSettings() *MistralServiceSettings { + r := &MistralServiceSettings{} + + return r +} + +// true + +type MistralServiceSettingsVariant interface { + MistralServiceSettingsCaster() *MistralServiceSettings +} + +func (s *MistralServiceSettings) MistralServiceSettingsCaster() *MistralServiceSettings { + return s +} diff --git a/typedapi/types/mlcounter.go b/typedapi/types/mlcounter.go index c4d2cb77c4..f09738049c 100644 --- a/typedapi/types/mlcounter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MlCounter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L265-L267 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L265-L267 type MlCounter struct { Count int64 `json:"count"` } diff --git a/typedapi/types/mldatafeed.go b/typedapi/types/mldatafeed.go index 459fa9585d..310ca5f28b 100644 --- a/typedapi/types/mldatafeed.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MLDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L37-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L37-L61 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/typedapi/types/mldataframeanalyticsjobs.go b/typedapi/types/mldataframeanalyticsjobs.go index 2f0ca939b2..3a446d8856 100644 --- a/typedapi/types/mldataframeanalyticsjobs.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // MlDataFrameAnalyticsJobs type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L187-L192 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L187-L192 type MlDataFrameAnalyticsJobs struct { All_ MlDataFrameAnalyticsJobsCount `json:"_all"` AnalysisCounts *MlDataFrameAnalyticsJobsAnalysis `json:"analysis_counts,omitempty"` diff --git a/typedapi/types/mldataframeanalyticsjobsanalysis.go b/typedapi/types/mldataframeanalyticsjobsanalysis.go index 6b17ffa8fa..b8fda328f3 100644 --- a/typedapi/types/mldataframeanalyticsjobsanalysis.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L194-L198 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L194-L198 type MlDataFrameAnalyticsJobsAnalysis struct { Classification *int `json:"classification,omitempty"` OutlierDetection *int `json:"outlier_detection,omitempty"` diff --git a/typedapi/types/mldataframeanalyticsjobscount.go b/typedapi/types/mldataframeanalyticsjobscount.go index c673e4c866..47eea08c0d 100644 --- a/typedapi/types/mldataframeanalyticsjobscount.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L204-L206 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L204-L206 type MlDataFrameAnalyticsJobsCount struct { Count int64 `json:"count"` } diff --git a/typedapi/types/mldataframeanalyticsjobsmemory.go b/typedapi/types/mldataframeanalyticsjobsmemory.go index aa6afb0b3b..6428e4335c 100644 --- a/typedapi/types/mldataframeanalyticsjobsmemory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // MlDataFrameAnalyticsJobsMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L200-L202 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L200-L202 type MlDataFrameAnalyticsJobsMemory struct { PeakUsageBytes JobStatistics `json:"peak_usage_bytes"` } diff --git a/typedapi/types/mlfilter.go b/typedapi/types/mlfilter.go index 743f5bf5f5..e5f6047dbf 100644 --- a/typedapi/types/mlfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MLFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Filter.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Filter.ts#L22-L29 type MLFilter struct { // Description A description of the filter. Description *string `json:"description,omitempty"` diff --git a/typedapi/types/mlinference.go b/typedapi/types/mlinference.go index 02b079fbd5..618ea3bfdf 100644 --- a/typedapi/types/mlinference.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // MlInference type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L208-L216 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L208-L216 type MlInference struct { Deployments *MlInferenceDeployments `json:"deployments,omitempty"` IngestProcessors map[string]MlInferenceIngestProcessor `json:"ingest_processors"` diff --git a/typedapi/types/mlinferencedeployments.go b/typedapi/types/mlinferencedeployments.go index 5e0c25cf5b..2e5d63207c 100644 --- a/typedapi/types/mlinferencedeployments.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeployments type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L237-L242 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L237-L242 type MlInferenceDeployments struct { Count int `json:"count"` InferenceCounts JobStatistics `json:"inference_counts"` diff --git a/typedapi/types/mlinferencedeploymentstimems.go b/typedapi/types/mlinferencedeploymentstimems.go index 61001ddbe6..6baeb0cb78 100644 --- a/typedapi/types/mlinferencedeploymentstimems.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeploymentsTimeMs type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L244-L246 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L244-L246 type MlInferenceDeploymentsTimeMs struct { Avg Float64 `json:"avg"` } diff --git a/typedapi/types/mlinferenceingestprocessor.go b/typedapi/types/mlinferenceingestprocessor.go index c76710a176..7056060a30 100644 --- a/typedapi/types/mlinferenceingestprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // MlInferenceIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L218-L223 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L218-L223 type MlInferenceIngestProcessor struct { NumDocsProcessed MlInferenceIngestProcessorCount `json:"num_docs_processed"` NumFailures MlInferenceIngestProcessorCount `json:"num_failures"` diff --git a/typedapi/types/mlinferenceingestprocessorcount.go b/typedapi/types/mlinferenceingestprocessorcount.go index 720cbc6b2b..9e3d3417ff 100644 --- a/typedapi/types/mlinferenceingestprocessorcount.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MlInferenceIngestProcessorCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L248-L252 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L248-L252 type MlInferenceIngestProcessorCount struct { Max int64 `json:"max"` Min int64 `json:"min"` diff --git a/typedapi/types/mlinferencetrainedmodels.go b/typedapi/types/mlinferencetrainedmodels.go index 9c58f16792..125d59d1bb 100644 --- a/typedapi/types/mlinferencetrainedmodels.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // MlInferenceTrainedModels type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L225-L235 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L225-L235 type MlInferenceTrainedModels struct { All_ MlCounter `json:"_all"` Count *MlInferenceTrainedModelsCount `json:"count,omitempty"` diff --git a/typedapi/types/mlinferencetrainedmodelscount.go b/typedapi/types/mlinferencetrainedmodelscount.go index fde15d2b8a..b430267fb8 100644 --- a/typedapi/types/mlinferencetrainedmodelscount.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MlInferenceTrainedModelsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L254-L263 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L254-L263 type MlInferenceTrainedModelsCount struct { Classification *int64 `json:"classification,omitempty"` Ner *int64 `json:"ner,omitempty"` diff --git a/typedapi/types/mljobforecasts.go b/typedapi/types/mljobforecasts.go index 72a0c24caf..f8d2b10334 100644 --- a/typedapi/types/mljobforecasts.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MlJobForecasts type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L182-L185 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L182-L185 type MlJobForecasts struct { ForecastedJobs int64 `json:"forecasted_jobs"` Total int64 `json:"total"` diff --git a/typedapi/types/modelpackageconfig.go b/typedapi/types/modelpackageconfig.go index a878f86e93..a164ae2654 100644 --- a/typedapi/types/modelpackageconfig.go +++ b/typedapi/types/modelpackageconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ModelPackageConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L256-L271 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L257-L272 type ModelPackageConfig struct { CreateTime *int64 `json:"create_time,omitempty"` Description *string `json:"description,omitempty"` diff --git a/typedapi/types/modelplotconfig.go b/typedapi/types/modelplotconfig.go index 31a616ab0f..081e14474d 100644 --- a/typedapi/types/modelplotconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ModelPlotConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/ModelPlot.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/modelsizestats.go b/typedapi/types/modelsizestats.go index 1db41c0e77..6c9ef64786 100644 --- a/typedapi/types/modelsizestats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // ModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Model.ts#L59-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Model.ts#L59-L82 type ModelSizeStats struct { AssignmentMemoryBasis *string `json:"assignment_memory_basis,omitempty"` BucketAllocationFailuresCount int64 `json:"bucket_allocation_failures_count"` diff --git a/typedapi/types/modelsnapshot.go b/typedapi/types/modelsnapshot.go index 8531e991cb..7c3af36e52 100644 --- a/typedapi/types/modelsnapshot.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ModelSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Model.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/modelsnapshotupgrade.go b/typedapi/types/modelsnapshotupgrade.go index 458585c041..7291f3aa28 100644 --- a/typedapi/types/modelsnapshotupgrade.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ModelSnapshotUpgrade type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Model.ts#L48-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Model.ts#L48-L57 type ModelSnapshotUpgrade struct { AssignmentExplanation string `json:"assignment_explanation"` JobId string `json:"job_id"` diff --git a/typedapi/types/monitoring.go b/typedapi/types/monitoring.go index 9aa8775351..811662f8a8 100644 --- a/typedapi/types/monitoring.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Monitoring type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L391-L394 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L391-L394 type Monitoring struct { Available bool `json:"available"` CollectionEnabled bool `json:"collection_enabled"` diff --git a/typedapi/types/morelikethisquery.go b/typedapi/types/morelikethisquery.go index 7515933e3e..e59aa90ac7 100644 --- a/typedapi/types/morelikethisquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MoreLikeThisQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L87-L172 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L87-L172 type MoreLikeThisQuery struct { // Analyzer The analyzer that is used to analyze the free form text. // Defaults to the analyzer associated with the first field in fields. diff --git a/typedapi/types/mountedsnapshot.go b/typedapi/types/mountedsnapshot.go index c9ef56d827..c17257d854 100644 --- a/typedapi/types/mountedsnapshot.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // MountedSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/mount/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/searchable_snapshots/mount/types.ts#L23-L27 type MountedSnapshot struct { Indices []string `json:"indices"` Shards ShardStatistics `json:"shards"` diff --git a/typedapi/types/movingaverageaggregation.go b/typedapi/types/movingaverageaggregation.go index 8038a51931..6f6c320e5e 100644 --- a/typedapi/types/movingaverageaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -28,7 +28,7 @@ package types // HoltMovingAverageAggregation // HoltWintersMovingAverageAggregation // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L254-L260 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L254-L260 type MovingAverageAggregation any type MovingAverageAggregationVariant interface { diff --git a/typedapi/types/movingfunctionaggregation.go b/typedapi/types/movingfunctionaggregation.go index 2f8984f9c7..56a0c93389 100644 --- a/typedapi/types/movingfunctionaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MovingFunctionAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L314-L332 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L314-L332 type MovingFunctionAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/movingpercentilesaggregation.go b/typedapi/types/movingpercentilesaggregation.go index 6d3a456469..38c754ba8e 100644 --- a/typedapi/types/movingpercentilesaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MovingPercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L334-L349 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L334-L349 type MovingPercentilesAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/msearchrequestitem.go b/typedapi/types/msearchrequestitem.go index 8469e97758..a795cab167 100644 --- a/typedapi/types/msearchrequestitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // MultisearchHeader // MultisearchBody // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch/types.ts#L47-L50 type MsearchRequestItem any type MsearchRequestItemVariant interface { diff --git a/typedapi/types/msearchresponseitem.go b/typedapi/types/msearchresponseitem.go index d6532e41c2..7bbc9afb92 100644 --- a/typedapi/types/msearchresponseitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // MultiSearchItem // ErrorResponseBase // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch/types.ts#L211-L214 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch/types.ts#L211-L214 type MsearchResponseItem any diff --git a/typedapi/types/mtermvectorsoperation.go b/typedapi/types/mtermvectorsoperation.go index a3d94fc581..ef49e1218a 100644 --- a/typedapi/types/mtermvectorsoperation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // MTermVectorsOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mtermvectors/types.ts#L35-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/multigeterror.go b/typedapi/types/multigeterror.go index 02f6685b09..dace3104dc 100644 --- a/typedapi/types/multigeterror.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // MultiGetError type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mget/types.ts#L62-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/mget/types.ts#L62-L66 type MultiGetError struct { Error ErrorCause `json:"error"` Id_ string `json:"_id"` diff --git a/typedapi/types/multimatchquery.go b/typedapi/types/multimatchquery.go index d14ced9bd6..2a50b64300 100644 --- a/typedapi/types/multimatchquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // MultiMatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L471-L557 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L471-L557 type MultiMatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/multiplexertokenfilter.go b/typedapi/types/multiplexertokenfilter.go index 72b0c74f79..f59e8bfc20 100644 --- a/typedapi/types/multiplexertokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // MultiplexerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L261-L265 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L261-L265 type MultiplexerTokenFilter struct { Filters []string `json:"filters"` PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` diff --git a/typedapi/types/multisearchbody.go b/typedapi/types/multisearchbody.go index c74f749e93..04c5c0774a 100644 --- a/typedapi/types/multisearchbody.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MultisearchBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch/types.ts#L70-L204 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch/types.ts#L70-L204 type MultisearchBody struct { Aggregations map[string]Aggregations `json:"aggregations,omitempty"` Collapse *FieldCollapse `json:"collapse,omitempty"` @@ -56,8 +56,9 @@ type MultisearchBody struct { IndicesBoost []map[string]Float64 `json:"indices_boost,omitempty"` // Knn Defines the approximate kNN search to run. Knn []KnnSearch `json:"knn,omitempty"` - // MinScore Minimum _score for matching documents. Documents with a lower _score are - // not included in the search results. + // MinScore The minimum `_score` for matching documents. + // Documents with a lower `_score` are not included in search results and + // results collected by aggregations. MinScore *Float64 `json:"min_score,omitempty"` // Pit Limits the search to a point in time (PIT). If you provide a PIT, you // cannot specify an in the request path. diff --git a/typedapi/types/multisearchheader.go b/typedapi/types/multisearchheader.go index 2a036dd0ce..59cb133a71 100644 --- a/typedapi/types/multisearchheader.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // MultisearchHeader type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch/types.ts#L52-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/multisearchitem.go b/typedapi/types/multisearchitem.go index 3d0d390685..91e3851888 100644 --- a/typedapi/types/multisearchitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // MultiSearchItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch/types.ts#L216-L219 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch/types.ts#L216-L219 type MultiSearchItem struct { Aggregations map[string]Aggregate `json:"aggregations,omitempty"` Clusters_ *ClusterStatistics `json:"_clusters,omitempty"` diff --git a/typedapi/types/multitermlookup.go b/typedapi/types/multitermlookup.go index 7cd99b9c57..7d10ca9ec8 100644 --- a/typedapi/types/multitermlookup.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // MultiTermLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L643-L653 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L643-L653 type MultiTermLookup struct { // Field A fields from which to retrieve terms. Field string `json:"field"` diff --git a/typedapi/types/multitermsaggregate.go b/typedapi/types/multitermsaggregate.go index 2f28cad047..8c2d2e013a 100644 --- a/typedapi/types/multitermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MultiTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L501-L506 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L501-L506 type MultiTermsAggregate struct { Buckets BucketsMultiTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/multitermsaggregation.go b/typedapi/types/multitermsaggregation.go index 0490026ea5..287b2ea9e2 100644 --- a/typedapi/types/multitermsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // MultiTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L601-L641 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L601-L641 type MultiTermsAggregation struct { // CollectMode Specifies the strategy for data collection. CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"` diff --git a/typedapi/types/multitermsbucket.go b/typedapi/types/multitermsbucket.go index bd2082a5db..485258633d 100644 --- a/typedapi/types/multitermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // MultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L508-L512 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L508-L512 type MultiTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/murmur3hashproperty.go b/typedapi/types/murmur3hashproperty.go index 0452be8db0..4c2f9bb641 100644 --- a/typedapi/types/murmur3hashproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // Murmur3HashProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L90-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L90-L92 type Murmur3HashProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/mutualinformationheuristic.go b/typedapi/types/mutualinformationheuristic.go index cb9fd2983a..22d05de346 100644 --- a/typedapi/types/mutualinformationheuristic.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // MutualInformationHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L800-L809 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L800-L809 type MutualInformationHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. diff --git a/typedapi/types/names.go b/typedapi/types/names.go index c1eab2d996..2a3e9a1dc2 100644 --- a/typedapi/types/names.go +++ b/typedapi/types/names.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Names type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L81-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L81-L81 type Names []string type NamesVariant interface { diff --git a/typedapi/types/nativecode.go b/typedapi/types/nativecode.go index 1c0297ae04..a44c7d9f5d 100644 --- a/typedapi/types/nativecode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NativeCode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/info/types.ts#L29-L32 type NativeCode struct { BuildHash string `json:"build_hash"` Version string `json:"version"` diff --git a/typedapi/types/nativecodeinformation.go b/typedapi/types/nativecodeinformation.go index 6104f0922b..1ffc2819fd 100644 --- a/typedapi/types/nativecodeinformation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NativeCodeInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/info/types.ts#L29-L32 type NativeCodeInformation struct { BuildHash string `json:"build_hash"` Version string `json:"version"` diff --git a/typedapi/types/nerinferenceoptions.go b/typedapi/types/nerinferenceoptions.go index 45cd75be74..64b05837e4 100644 --- a/typedapi/types/nerinferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NerInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L242-L251 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L273-L282 type NerInferenceOptions struct { // ClassificationLabels The token classification labels. Must be IOB formatted tags ClassificationLabels []string `json:"classification_labels,omitempty"` diff --git a/typedapi/types/nerinferenceupdateoptions.go b/typedapi/types/nerinferenceupdateoptions.go index 948851457a..5271b9bb1e 100644 --- a/typedapi/types/nerinferenceupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NerInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L392-L397 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L423-L428 type NerInferenceUpdateOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/nestedaggregate.go b/typedapi/types/nestedaggregate.go index b72ac6edb2..31a3d51dcd 100644 --- a/typedapi/types/nestedaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // NestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L534-L538 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L534-L538 type NestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/nestedaggregation.go b/typedapi/types/nestedaggregation.go index 69269143d4..bd2baac1af 100644 --- a/typedapi/types/nestedaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L655-L660 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L655-L660 type NestedAggregation struct { // Path The path to the field of type `nested`. Path *string `json:"path,omitempty"` diff --git a/typedapi/types/nestedidentity.go b/typedapi/types/nestedidentity.go index e4dc5eb270..5f1e97881f 100644 --- a/typedapi/types/nestedidentity.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NestedIdentity type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/hits.ts#L90-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/hits.ts#L90-L94 type NestedIdentity struct { Field string `json:"field"` Nested_ *NestedIdentity `json:"_nested,omitempty"` diff --git a/typedapi/types/nestedproperty.go b/typedapi/types/nestedproperty.go index e0221dac0f..83df952314 100644 --- a/typedapi/types/nestedproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // NestedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/complex.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/complex.ts#L39-L44 type NestedProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/typedapi/types/nestedquery.go b/typedapi/types/nestedquery.go index d53317b4ad..3591f4ea47 100644 --- a/typedapi/types/nestedquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NestedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/joining.ts#L112-L139 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/joining.ts#L112-L139 type NestedQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/nestedsortvalue.go b/typedapi/types/nestedsortvalue.go index f306fb1269..da754ea5b6 100644 --- a/typedapi/types/nestedsortvalue.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NestedSortValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L29-L34 type NestedSortValue struct { Filter *Query `json:"filter,omitempty"` MaxChildren *int `json:"max_children,omitempty"` diff --git a/typedapi/types/networkdirectionprocessor.go b/typedapi/types/networkdirectionprocessor.go index bb7a1d1dbb..3d15e95d1a 100644 --- a/typedapi/types/networkdirectionprocessor.go +++ b/typedapi/types/networkdirectionprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NetworkDirectionProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1230-L1264 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1248-L1282 type NetworkDirectionProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/nevercondition.go b/typedapi/types/nevercondition.go index 0f9f290894..9f81448f03 100644 --- a/typedapi/types/nevercondition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NeverCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L72-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L72-L72 type NeverCondition struct { } diff --git a/typedapi/types/ngramtokenfilter.go b/typedapi/types/ngramtokenfilter.go index e08c0de093..ac24f4b65d 100644 --- a/typedapi/types/ngramtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L267-L272 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L267-L272 type NGramTokenFilter struct { MaxGram *int `json:"max_gram,omitempty"` MinGram *int `json:"min_gram,omitempty"` diff --git a/typedapi/types/ngramtokenizer.go b/typedapi/types/ngramtokenizer.go index 89459f5d77..cf57744699 100644 --- a/typedapi/types/ngramtokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L84-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L84-L93 type NGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` MaxGram *int `json:"max_gram,omitempty"` diff --git a/typedapi/types/nlpberttokenizationconfig.go b/typedapi/types/nlpberttokenizationconfig.go index 611e56266a..40e5f203fd 100644 --- a/typedapi/types/nlpberttokenizationconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NlpBertTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L161-L162 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L188-L189 type NlpBertTokenizationConfig struct { // DoLowerCase Should the tokenizer lower case the text DoLowerCase *bool `json:"do_lower_case,omitempty"` diff --git a/typedapi/types/nlprobertatokenizationconfig.go b/typedapi/types/nlprobertatokenizationconfig.go index 8cbd615b01..f86ab876a2 100644 --- a/typedapi/types/nlprobertatokenizationconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NlpRobertaTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L164-L171 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L191-L198 type NlpRobertaTokenizationConfig struct { // AddPrefixSpace Should the tokenizer prefix input with a space character AddPrefixSpace *bool `json:"add_prefix_space,omitempty"` diff --git a/typedapi/types/nlptokenizationupdateoptions.go b/typedapi/types/nlptokenizationupdateoptions.go index bfdf39bb07..24537f7c54 100644 --- a/typedapi/types/nlptokenizationupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NlpTokenizationUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L344-L349 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L375-L380 type NlpTokenizationUpdateOptions struct { // Span Span options to apply Span *int `json:"span,omitempty"` diff --git a/typedapi/types/node.go b/typedapi/types/node.go index b31e23194f..8a0fe931fd 100644 --- a/typedapi/types/node.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Node type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32 type Node struct { SharedCache Shared `json:"shared_cache"` } diff --git a/typedapi/types/nodeallocationexplanation.go b/typedapi/types/nodeallocationexplanation.go index eb41b92c83..84913e84b6 100644 --- a/typedapi/types/nodeallocationexplanation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // NodeAllocationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L103-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L103-L117 type NodeAllocationExplanation struct { Deciders []AllocationDecision `json:"deciders"` NodeAttributes map[string]string `json:"node_attributes"` diff --git a/typedapi/types/nodeattributes.go b/typedapi/types/nodeattributes.go index 0195f86196..c9016ba853 100644 --- a/typedapi/types/nodeattributes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NodeAttributes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Node.ts#L41-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Node.ts#L41-L52 type NodeAttributes struct { // Attributes Lists node attributes. Attributes map[string]string `json:"attributes"` diff --git a/typedapi/types/nodeattributesrecord.go b/typedapi/types/nodeattributesrecord.go index 630a3089d3..713e1be319 100644 --- a/typedapi/types/nodeattributesrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeAttributesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/nodeattrs/types.ts#L20-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/nodeattrs/types.ts#L20-L55 type NodeAttributesRecord struct { // Attr The attribute name. Attr *string `json:"attr,omitempty"` diff --git a/typedapi/types/nodebufferpool.go b/typedapi/types/nodebufferpool.go index 17081a1e8b..5922bbc74e 100644 --- a/typedapi/types/nodebufferpool.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeBufferPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L859-L880 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L859-L880 type NodeBufferPool struct { // Count Number of buffer pools. Count *int64 `json:"count,omitempty"` diff --git a/typedapi/types/nodediskusage.go b/typedapi/types/nodediskusage.go index f47c1649b9..5b8e3c33a7 100644 --- a/typedapi/types/nodediskusage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NodeDiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L57-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L57-L61 type NodeDiskUsage struct { LeastAvailable DiskUsage `json:"least_available"` MostAvailable DiskUsage `json:"most_available"` diff --git a/typedapi/types/nodeids.go b/typedapi/types/nodeids.go index 9d3d22688e..7d07927e19 100644 --- a/typedapi/types/nodeids.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L64-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L64-L64 type NodeIds []string diff --git a/typedapi/types/nodeinfo.go b/typedapi/types/nodeinfo.go index c03cf1fdc0..989e163302 100644 --- a/typedapi/types/nodeinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L31-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodeinfoaction.go b/typedapi/types/nodeinfoaction.go index 300a2eba20..6869eb3fbb 100644 --- a/typedapi/types/nodeinfoaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L184-L186 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L184-L186 type NodeInfoAction struct { DestructiveRequiresName string `json:"destructive_requires_name"` } diff --git a/typedapi/types/nodeinfoaggregation.go b/typedapi/types/nodeinfoaggregation.go index f5df3d3c7e..70aa3214d4 100644 --- a/typedapi/types/nodeinfoaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L235-L237 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L235-L237 type NodeInfoAggregation struct { Types []string `json:"types"` } diff --git a/typedapi/types/nodeinfobootstrap.go b/typedapi/types/nodeinfobootstrap.go index 67ce6152ae..cc19d94a5d 100644 --- a/typedapi/types/nodeinfobootstrap.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoBootstrap type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L204-L206 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L204-L206 type NodeInfoBootstrap struct { MemoryLock string `json:"memory_lock"` } diff --git a/typedapi/types/nodeinfoclient.go b/typedapi/types/nodeinfoclient.go index 47d27ef3ac..66ea33d7b5 100644 --- a/typedapi/types/nodeinfoclient.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoClient type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L188-L190 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L188-L190 type NodeInfoClient struct { Type string `json:"type"` } diff --git a/typedapi/types/nodeinfodiscover.go b/typedapi/types/nodeinfodiscover.go index 03c410e861..265a994c33 100644 --- a/typedapi/types/nodeinfodiscover.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoDiscover type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L173-L182 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodeinfohttp.go b/typedapi/types/nodeinfohttp.go index bbed4aea60..bbffcd4eb6 100644 --- a/typedapi/types/nodeinfohttp.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L311-L316 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L311-L316 type NodeInfoHttp struct { BoundAddress []string `json:"bound_address"` MaxContentLength ByteSize `json:"max_content_length,omitempty"` diff --git a/typedapi/types/nodeinfoingest.go b/typedapi/types/nodeinfoingest.go index 3f267dfa19..077d22c74b 100644 --- a/typedapi/types/nodeinfoingest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L227-L229 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L227-L229 type NodeInfoIngest struct { Processors []NodeInfoIngestProcessor `json:"processors"` } diff --git a/typedapi/types/nodeinfoingestdownloader.go b/typedapi/types/nodeinfoingestdownloader.go index 382fe8c742..aa4140ea82 100644 --- a/typedapi/types/nodeinfoingestdownloader.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestDownloader type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L128-L130 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L128-L130 type NodeInfoIngestDownloader struct { Enabled string `json:"enabled"` } diff --git a/typedapi/types/nodeinfoingestinfo.go b/typedapi/types/nodeinfoingestinfo.go index e30a548049..9c0ca40459 100644 --- a/typedapi/types/nodeinfoingestinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoIngestInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L124-L126 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L124-L126 type NodeInfoIngestInfo struct { Downloader NodeInfoIngestDownloader `json:"downloader"` } diff --git a/typedapi/types/nodeinfoingestprocessor.go b/typedapi/types/nodeinfoingestprocessor.go index 88d3ca31e9..d91dd68098 100644 --- a/typedapi/types/nodeinfoingestprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L231-L233 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L231-L233 type NodeInfoIngestProcessor struct { Type string `json:"type"` } diff --git a/typedapi/types/nodeinfojvmmemory.go b/typedapi/types/nodeinfojvmmemory.go index 1e5e9ec2f2..423563078d 100644 --- a/typedapi/types/nodeinfojvmmemory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L318-L329 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L318-L329 type NodeInfoJvmMemory struct { DirectMax ByteSize `json:"direct_max,omitempty"` DirectMaxInBytes int64 `json:"direct_max_in_bytes"` diff --git a/typedapi/types/nodeinfomemory.go b/typedapi/types/nodeinfomemory.go index 67e899d264..72b4e5c837 100644 --- a/typedapi/types/nodeinfomemory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L331-L334 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L331-L334 type NodeInfoMemory struct { Total string `json:"total"` TotalInBytes int64 `json:"total_in_bytes"` diff --git a/typedapi/types/nodeinfonetwork.go b/typedapi/types/nodeinfonetwork.go index 86fbffc827..6a75fb8e7e 100644 --- a/typedapi/types/nodeinfonetwork.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L336-L339 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L336-L339 type NodeInfoNetwork struct { PrimaryInterface NodeInfoNetworkInterface `json:"primary_interface"` RefreshInterval int `json:"refresh_interval"` diff --git a/typedapi/types/nodeinfonetworkinterface.go b/typedapi/types/nodeinfonetworkinterface.go index df5263e0ab..2d8e365838 100644 --- a/typedapi/types/nodeinfonetworkinterface.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoNetworkInterface type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L341-L345 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L341-L345 type NodeInfoNetworkInterface struct { Address string `json:"address"` MacAddress string `json:"mac_address"` diff --git a/typedapi/types/nodeinfooscpu.go b/typedapi/types/nodeinfooscpu.go index 77040d02f8..38fbe6b601 100644 --- a/typedapi/types/nodeinfooscpu.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoOSCPU type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L347-L356 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L347-L356 type NodeInfoOSCPU struct { CacheSize string `json:"cache_size"` CacheSizeInBytes int `json:"cache_size_in_bytes"` diff --git a/typedapi/types/nodeinfopath.go b/typedapi/types/nodeinfopath.go index 31f43ad203..ded0e13bc9 100644 --- a/typedapi/types/nodeinfopath.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L158-L163 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L158-L163 type NodeInfoPath struct { Data []string `json:"data,omitempty"` Home *string `json:"home,omitempty"` diff --git a/typedapi/types/nodeinforepositories.go b/typedapi/types/nodeinforepositories.go index f0da65353b..0957d98f8f 100644 --- a/typedapi/types/nodeinforepositories.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoRepositories type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L165-L167 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L165-L167 type NodeInfoRepositories struct { Url NodeInfoRepositoriesUrl `json:"url"` } diff --git a/typedapi/types/nodeinforepositoriesurl.go b/typedapi/types/nodeinforepositoriesurl.go index df837b2f12..1bf1014087 100644 --- a/typedapi/types/nodeinforepositoriesurl.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoRepositoriesUrl type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L169-L171 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L169-L171 type NodeInfoRepositoriesUrl struct { AllowedUrls string `json:"allowed_urls"` } diff --git a/typedapi/types/nodeinfoscript.go b/typedapi/types/nodeinfoscript.go index bbce5edadf..4849d128cc 100644 --- a/typedapi/types/nodeinfoscript.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L289-L292 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L289-L292 type NodeInfoScript struct { AllowedTypes string `json:"allowed_types"` DisableMaxCompilationsRate *string `json:"disable_max_compilations_rate,omitempty"` diff --git a/typedapi/types/nodeinfosearch.go b/typedapi/types/nodeinfosearch.go index 49f7791964..47f28796f1 100644 --- a/typedapi/types/nodeinfosearch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L294-L296 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L294-L296 type NodeInfoSearch struct { Remote NodeInfoSearchRemote `json:"remote"` } diff --git a/typedapi/types/nodeinfosearchremote.go b/typedapi/types/nodeinfosearchremote.go index 4e83e9b8b5..79aa404c52 100644 --- a/typedapi/types/nodeinfosearchremote.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSearchRemote type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L298-L300 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L298-L300 type NodeInfoSearchRemote struct { Connect string `json:"connect"` } diff --git a/typedapi/types/nodeinfosettings.go b/typedapi/types/nodeinfosettings.go index 442aba8e6e..ed8d7c5069 100644 --- a/typedapi/types/nodeinfosettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L69-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L69-L85 type NodeInfoSettings struct { Action *NodeInfoAction `json:"action,omitempty"` Bootstrap *NodeInfoBootstrap `json:"bootstrap,omitempty"` diff --git a/typedapi/types/nodeinfosettingscluster.go b/typedapi/types/nodeinfosettingscluster.go index 7096e95adc..deafbd73ca 100644 --- a/typedapi/types/nodeinfosettingscluster.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L132-L142 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L132-L142 type NodeInfoSettingsCluster struct { DeprecationIndexing *DeprecationIndexing `json:"deprecation_indexing,omitempty"` Election NodeInfoSettingsClusterElection `json:"election"` diff --git a/typedapi/types/nodeinfosettingsclusterelection.go b/typedapi/types/nodeinfosettingsclusterelection.go index 067e67edf9..094f548070 100644 --- a/typedapi/types/nodeinfosettingsclusterelection.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsClusterElection type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L148-L150 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L148-L150 type NodeInfoSettingsClusterElection struct { Strategy string `json:"strategy"` } diff --git a/typedapi/types/nodeinfosettingshttp.go b/typedapi/types/nodeinfosettingshttp.go index 4ca2610a27..a13dca3521 100644 --- a/typedapi/types/nodeinfosettingshttp.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L192-L197 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L192-L197 type NodeInfoSettingsHttp struct { Compression string `json:"compression,omitempty"` Port string `json:"port,omitempty"` diff --git a/typedapi/types/nodeinfosettingshttptype.go b/typedapi/types/nodeinfosettingshttptype.go index 3a47ddb51b..c9ee8216b9 100644 --- a/typedapi/types/nodeinfosettingshttptype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttpType type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L199-L202 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L199-L202 type NodeInfoSettingsHttpType struct { Default string `json:"default"` } diff --git a/typedapi/types/nodeinfosettingsingest.go b/typedapi/types/nodeinfosettingsingest.go index f67a9b2f57..94dc3caa2d 100644 --- a/typedapi/types/nodeinfosettingsingest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoSettingsIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L87-L122 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L87-L122 type NodeInfoSettingsIngest struct { Append *NodeInfoIngestInfo `json:"append,omitempty"` Attachment *NodeInfoIngestInfo `json:"attachment,omitempty"` diff --git a/typedapi/types/nodeinfosettingsnetwork.go b/typedapi/types/nodeinfosettingsnetwork.go index 8570de8ce9..66c9f2b2f8 100644 --- a/typedapi/types/nodeinfosettingsnetwork.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L223-L225 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L223-L225 type NodeInfoSettingsNetwork struct { Host []string `json:"host,omitempty"` } diff --git a/typedapi/types/nodeinfosettingsnode.go b/typedapi/types/nodeinfosettingsnode.go index 9b3417acb3..4ea0c747fa 100644 --- a/typedapi/types/nodeinfosettingsnode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L152-L156 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodeinfosettingstransport.go b/typedapi/types/nodeinfosettingstransport.go index 6de8ff3aac..672a667dfc 100644 --- a/typedapi/types/nodeinfosettingstransport.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L208-L212 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L208-L212 type NodeInfoSettingsTransport struct { Features *NodeInfoSettingsTransportFeatures `json:"features,omitempty"` Type NodeInfoSettingsTransportType `json:"type"` diff --git a/typedapi/types/nodeinfosettingstransportfeatures.go b/typedapi/types/nodeinfosettingstransportfeatures.go index 8ec79c572d..37e6428d7c 100644 --- a/typedapi/types/nodeinfosettingstransportfeatures.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L219-L221 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L219-L221 type NodeInfoSettingsTransportFeatures struct { XPack string `json:"x-pack"` } diff --git a/typedapi/types/nodeinfosettingstransporttype.go b/typedapi/types/nodeinfosettingstransporttype.go index 5b058d7d92..e67be9db52 100644 --- a/typedapi/types/nodeinfosettingstransporttype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportType type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L214-L217 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L214-L217 type NodeInfoSettingsTransportType struct { Default string `json:"default"` } diff --git a/typedapi/types/nodeinfotransport.go b/typedapi/types/nodeinfotransport.go index 2d6b721625..bb8b6dc29b 100644 --- a/typedapi/types/nodeinfotransport.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L358-L362 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L358-L362 type NodeInfoTransport struct { BoundAddress []string `json:"bound_address"` Profiles map[string]string `json:"profiles"` diff --git a/typedapi/types/nodeinfoxpack.go b/typedapi/types/nodeinfoxpack.go index 93c3df1d23..94e7124ac7 100644 --- a/typedapi/types/nodeinfoxpack.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // NodeInfoXpack type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L239-L244 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L239-L244 type NodeInfoXpack struct { License *NodeInfoXpackLicense `json:"license,omitempty"` Ml *NodeInfoXpackMl `json:"ml,omitempty"` diff --git a/typedapi/types/nodeinfoxpacklicense.go b/typedapi/types/nodeinfoxpacklicense.go index bc84c7fb49..dbce7c74f4 100644 --- a/typedapi/types/nodeinfoxpacklicense.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoXpackLicense type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L281-L283 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L281-L283 type NodeInfoXpackLicense struct { SelfGenerated NodeInfoXpackLicenseType `json:"self_generated"` } diff --git a/typedapi/types/nodeinfoxpacklicensetype.go b/typedapi/types/nodeinfoxpacklicensetype.go index 4d6ed48a4c..e51fe66af8 100644 --- a/typedapi/types/nodeinfoxpacklicensetype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackLicenseType type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L285-L287 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L285-L287 type NodeInfoXpackLicenseType struct { Type string `json:"type"` } diff --git a/typedapi/types/nodeinfoxpackml.go b/typedapi/types/nodeinfoxpackml.go index c0f2dc2bac..c2d2f3be2a 100644 --- a/typedapi/types/nodeinfoxpackml.go +++ b/typedapi/types/nodeinfoxpackml.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackMl type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L253-L255 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L253-L255 type NodeInfoXpackMl struct { UseAutoMachineMemoryPercent *bool `json:"use_auto_machine_memory_percent,omitempty"` } diff --git a/typedapi/types/nodeinfoxpacksecurity.go b/typedapi/types/nodeinfoxpacksecurity.go index c8060c3641..b68ee04692 100644 --- a/typedapi/types/nodeinfoxpacksecurity.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L246-L251 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L246-L251 type NodeInfoXpackSecurity struct { Authc *NodeInfoXpackSecurityAuthc `json:"authc,omitempty"` Enabled string `json:"enabled"` diff --git a/typedapi/types/nodeinfoxpacksecurityauthc.go b/typedapi/types/nodeinfoxpacksecurityauthc.go index 63c3ea85e0..dd6fec4775 100644 --- a/typedapi/types/nodeinfoxpacksecurityauthc.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoXpackSecurityAuthc type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L261-L264 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L261-L264 type NodeInfoXpackSecurityAuthc struct { Realms *NodeInfoXpackSecurityAuthcRealms `json:"realms,omitempty"` Token *NodeInfoXpackSecurityAuthcToken `json:"token,omitempty"` diff --git a/typedapi/types/nodeinfoxpacksecurityauthcrealms.go b/typedapi/types/nodeinfoxpacksecurityauthcrealms.go index 7547fc8d8c..ea023bf8fc 100644 --- a/typedapi/types/nodeinfoxpacksecurityauthcrealms.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoXpackSecurityAuthcRealms type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L266-L270 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L266-L270 type NodeInfoXpackSecurityAuthcRealms struct { File map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"file,omitempty"` Native map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"native,omitempty"` diff --git a/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go b/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go index a10e0c7a9d..50f624b14e 100644 --- a/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcRealmsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L276-L279 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L276-L279 type NodeInfoXpackSecurityAuthcRealmsStatus struct { Enabled *string `json:"enabled,omitempty"` Order string `json:"order"` diff --git a/typedapi/types/nodeinfoxpacksecurityauthctoken.go b/typedapi/types/nodeinfoxpacksecurityauthctoken.go index 39d8bdae5e..55bc5594f7 100644 --- a/typedapi/types/nodeinfoxpacksecurityauthctoken.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L272-L274 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L272-L274 type NodeInfoXpackSecurityAuthcToken struct { Enabled string `json:"enabled"` } diff --git a/typedapi/types/nodeinfoxpacksecurityssl.go b/typedapi/types/nodeinfoxpacksecurityssl.go index 6e0affbfce..4b4a002719 100644 --- a/typedapi/types/nodeinfoxpacksecurityssl.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodeInfoXpackSecuritySsl type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L257-L259 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L257-L259 type NodeInfoXpackSecuritySsl struct { Ssl map[string]string `json:"ssl"` } diff --git a/typedapi/types/nodejvminfo.go b/typedapi/types/nodejvminfo.go index 52b664cebb..e27e103c9c 100644 --- a/typedapi/types/nodejvminfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeJvmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L364-L378 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L364-L378 type NodeJvmInfo struct { GcCollectors []string `json:"gc_collectors"` InputArguments []string `json:"input_arguments"` diff --git a/typedapi/types/nodeoperatingsysteminfo.go b/typedapi/types/nodeoperatingsysteminfo.go index ccf6bdd198..021c500035 100644 --- a/typedapi/types/nodeoperatingsysteminfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeOperatingSystemInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L380-L397 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L380-L397 type NodeOperatingSystemInfo struct { // AllocatedProcessors The number of processors actually used to calculate thread pool size. This // number can be set with the node.processors setting of a node and defaults to diff --git a/typedapi/types/nodepackagingtype.go b/typedapi/types/nodepackagingtype.go index f0b0c13376..d230029dfa 100644 --- a/typedapi/types/nodepackagingtype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodePackagingType type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L526-L539 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodeprocessinfo.go b/typedapi/types/nodeprocessinfo.go index 3efb9bc416..33d8783720 100644 --- a/typedapi/types/nodeprocessinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeProcessInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L399-L406 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L399-L406 type NodeProcessInfo struct { // Id Process identifier (PID) Id int64 `json:"id"` diff --git a/typedapi/types/nodereloadresult.go b/typedapi/types/nodereloadresult.go index a4c98d2521..263ba7da74 100644 --- a/typedapi/types/nodereloadresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NodeReloadResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/NodeReloadResult.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/NodeReloadResult.ts#L23-L26 type NodeReloadResult struct { Name string `json:"name"` ReloadException *ErrorCause `json:"reload_exception,omitempty"` diff --git a/typedapi/types/nodescontext.go b/typedapi/types/nodescontext.go index 7a3bce3833..5958044a57 100644 --- a/typedapi/types/nodescontext.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodesContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1068-L1073 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1068-L1073 type NodesContext struct { CacheEvictions *int64 `json:"cache_evictions,omitempty"` CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"` diff --git a/typedapi/types/nodescredentials.go b/typedapi/types/nodescredentials.go index 616ac84a4d..196707d74d 100644 --- a/typedapi/types/nodescredentials.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodesCredentials type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_service_credentials/types.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodescredentialsfiletoken.go b/typedapi/types/nodescredentialsfiletoken.go index 38dc231b53..f4a7be3b09 100644 --- a/typedapi/types/nodescredentialsfiletoken.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodesCredentialsFileToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_service_credentials/types.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_service_credentials/types.ts#L30-L32 type NodesCredentialsFileToken struct { Nodes []string `json:"nodes"` } diff --git a/typedapi/types/nodeshard.go b/typedapi/types/nodeshard.go index 7839123c4f..b815061c0d 100644 --- a/typedapi/types/nodeshard.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NodeShard type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Node.ts#L54-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Node.ts#L54-L65 type NodeShard struct { AllocationId map[string]string `json:"allocation_id,omitempty"` Index string `json:"index"` diff --git a/typedapi/types/nodeshutdownstatus.go b/typedapi/types/nodeshutdownstatus.go index 2f37e65296..7a7de66158 100644 --- a/typedapi/types/nodeshutdownstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // NodeShutdownStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38 type NodeShutdownStatus struct { NodeId string `json:"node_id"` PersistentTasks PersistentTaskStatus `json:"persistent_tasks"` diff --git a/typedapi/types/nodesindexingpressure.go b/typedapi/types/nodesindexingpressure.go index 27aeaf0e15..4ea01b7318 100644 --- a/typedapi/types/nodesindexingpressure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L116-L121 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodesindexingpressurememory.go b/typedapi/types/nodesindexingpressurememory.go index 3d5fc6b316..f29f9a6b80 100644 --- a/typedapi/types/nodesindexingpressurememory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L123-L142 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodesingest.go b/typedapi/types/nodesingest.go index 7d7ad03bea..6b1fa29124 100644 --- a/typedapi/types/nodesingest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // NodesIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L345-L354 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L345-L354 type NodesIngest struct { // Pipelines Contains statistics about ingest pipelines for the node. Pipelines map[string]IngestStats `json:"pipelines,omitempty"` diff --git a/typedapi/types/nodesrecord.go b/typedapi/types/nodesrecord.go index bbbd3de3fa..002ac42d1e 100644 --- a/typedapi/types/nodesrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/nodes/types.ts#L23-L542 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/nodes/types.ts#L23-L542 type NodesRecord struct { // Build The Elasticsearch build hash. Build *string `json:"build,omitempty"` diff --git a/typedapi/types/nodestatistics.go b/typedapi/types/nodestatistics.go index 6b7cc3e0fa..1e4c77f667 100644 --- a/typedapi/types/nodestatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Node.ts#L28-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodetasks.go b/typedapi/types/nodetasks.go index a371137e4f..ed2c7b4b93 100644 --- a/typedapi/types/nodetasks.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NodeTasks type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/tasks/_types/TaskListResponseBase.ts#L49-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/nodethreadpoolinfo.go b/typedapi/types/nodethreadpoolinfo.go index 56c119e58b..8bd2b824a9 100644 --- a/typedapi/types/nodethreadpoolinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NodeThreadPoolInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/info/types.ts#L302-L309 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/info/types.ts#L302-L309 type NodeThreadPoolInfo struct { Core *int `json:"core,omitempty"` KeepAlive Duration `json:"keep_alive,omitempty"` diff --git a/typedapi/types/nodeusage.go b/typedapi/types/nodeusage.go index a20b3e9529..3e92db5725 100644 --- a/typedapi/types/nodeusage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NodeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/usage/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/norianalyzer.go b/typedapi/types/norianalyzer.go index 600a6e8a19..7efc19bad8 100644 --- a/typedapi/types/norianalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NoriAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L303-L309 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L303-L309 type NoriAnalyzer struct { DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"` Stoptags []string `json:"stoptags,omitempty"` diff --git a/typedapi/types/noripartofspeechtokenfilter.go b/typedapi/types/noripartofspeechtokenfilter.go index 0f80a2a66d..3cb9ef931c 100644 --- a/typedapi/types/noripartofspeechtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // NoriPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L274-L277 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L274-L277 type NoriPartOfSpeechTokenFilter struct { Stoptags []string `json:"stoptags,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/noritokenizer.go b/typedapi/types/noritokenizer.go index e8da2540c3..07c98c951a 100644 --- a/typedapi/types/noritokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NoriTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/nori-plugin.ts#L28-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/nori-plugin.ts#L28-L34 type NoriTokenizer struct { DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"` DiscardPunctuation *bool `json:"discard_punctuation,omitempty"` diff --git a/typedapi/types/normalizeaggregation.go b/typedapi/types/normalizeaggregation.go index 0c342aef40..7c4bf9030a 100644 --- a/typedapi/types/normalizeaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // NormalizeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L351-L359 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L351-L359 type NormalizeAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/normalizer.go b/typedapi/types/normalizer.go index 620b36ff54..19773eb293 100644 --- a/typedapi/types/normalizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // LowercaseNormalizer // CustomNormalizer // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/normalizers.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/normalizers.ts#L20-L24 type Normalizer any type NormalizerVariant interface { diff --git a/typedapi/types/norwegiananalyzer.go b/typedapi/types/norwegiananalyzer.go index 0a3c832c7c..843e7ef5cc 100644 --- a/typedapi/types/norwegiananalyzer.go +++ b/typedapi/types/norwegiananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // NorwegianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L228-L233 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L228-L233 type NorwegianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/numberrangequery.go b/typedapi/types/numberrangequery.go index 438d91fd40..e3fe5b3687 100644 --- a/typedapi/types/numberrangequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // NumberRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L172-L172 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L172-L172 type NumberRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/numericdecayfunction.go b/typedapi/types/numericdecayfunction.go index 36a5279607..feed3fe0a5 100644 --- a/typedapi/types/numericdecayfunction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ import ( // NumericDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L208-L208 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L208-L208 type NumericDecayFunction struct { DecayFunctionBasedoubledouble map[string]DecayPlacementdoubledouble `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/typedapi/types/numericfielddata.go b/typedapi/types/numericfielddata.go index 8ad43c5331..ad68a21b42 100644 --- a/typedapi/types/numericfielddata.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // NumericFielddata type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/NumericFielddata.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/NumericFielddata.ts#L22-L24 type NumericFielddata struct { Format numericfielddataformat.NumericFielddataFormat `json:"format"` } diff --git a/typedapi/types/objectproperty.go b/typedapi/types/objectproperty.go index 8ea17a3464..5c1ef8567e 100644 --- a/typedapi/types/objectproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // ObjectProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/complex.ts#L46-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/complex.ts#L46-L50 type ObjectProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/typedapi/types/onehotencodingpreprocessor.go b/typedapi/types/onehotencodingpreprocessor.go index 073cb0f186..ea7253147b 100644 --- a/typedapi/types/onehotencodingpreprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // OneHotEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/openaiservicesettings.go b/typedapi/types/openaiservicesettings.go index 8487876884..659d4ae133 100644 --- a/typedapi/types/openaiservicesettings.go +++ b/typedapi/types/openaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // OpenAIServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_openai/PutOpenAiRequest.ts#L94-L136 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1013-L1055 type OpenAIServiceSettings struct { // ApiKey A valid API key of your OpenAI account. // You can find your OpenAI API keys in your OpenAI account under the API keys diff --git a/typedapi/types/openaitasksettings.go b/typedapi/types/openaitasksettings.go index 2dc7f676c8..1fe2c109af 100644 --- a/typedapi/types/openaitasksettings.go +++ b/typedapi/types/openaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,11 +31,11 @@ import ( // OpenAITaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_openai/PutOpenAiRequest.ts#L138-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1057-L1063 type OpenAITaskSettings struct { // User For a `completion` or `text_embedding` task, specify the user issuing the // request. - // This informaiton can be used for abuse detection. + // This information can be used for abuse detection. User *string `json:"user,omitempty"` } diff --git a/typedapi/types/operatingsystem.go b/typedapi/types/operatingsystem.go index e69c0d6ddb..1ffea9cad7 100644 --- a/typedapi/types/operatingsystem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // OperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1016-L1022 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1016-L1022 type OperatingSystem struct { Cgroup *Cgroup `json:"cgroup,omitempty"` Cpu *Cpu `json:"cpu,omitempty"` diff --git a/typedapi/types/operatingsystemmemoryinfo.go b/typedapi/types/operatingsystemmemoryinfo.go index 17fb762d55..4cc4b47a75 100644 --- a/typedapi/types/operatingsystemmemoryinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // OperatingSystemMemoryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/stats/types.ts#L541-L568 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/operationcontainer.go b/typedapi/types/operationcontainer.go index 8195dc5195..d59fd8f298 100644 --- a/typedapi/types/operationcontainer.go +++ b/typedapi/types/operationcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // OperationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L158-L180 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L158-L180 type OperationContainer struct { AdditionalOperationContainerProperty map[string]json.RawMessage `json:"-"` // Create Index the specified document if it does not already exist. diff --git a/typedapi/types/outlierdetectionparameters.go b/typedapi/types/outlierdetectionparameters.go index a30e0217d5..d80e2aea13 100644 --- a/typedapi/types/outlierdetectionparameters.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // OutlierDetectionParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L528-L562 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L528-L562 type OutlierDetectionParameters struct { // ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled. ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"` diff --git a/typedapi/types/overallbucket.go b/typedapi/types/overallbucket.go index 71a82ffa94..878c2367cf 100644 --- a/typedapi/types/overallbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // OverallBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Bucket.ts#L129-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Bucket.ts#L129-L144 type OverallBucket struct { // BucketSpan The length of the bucket in seconds. Matches the job with the longest // bucket_span value. diff --git a/typedapi/types/overallbucketjob.go b/typedapi/types/overallbucketjob.go index 4f33a928f5..cfb6fc6569 100644 --- a/typedapi/types/overallbucketjob.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // OverallBucketJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Bucket.ts#L145-L148 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Bucket.ts#L145-L148 type OverallBucketJob struct { JobId string `json:"job_id"` MaxAnomalyScore Float64 `json:"max_anomaly_score"` diff --git a/typedapi/types/overlapping.go b/typedapi/types/overlapping.go index 4a1b091191..f6c462efcc 100644 --- a/typedapi/types/overlapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Overlapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42 type Overlapping struct { IndexPatterns []string `json:"index_patterns"` Name string `json:"name"` diff --git a/typedapi/types/page.go b/typedapi/types/page.go index 7b6877e8c7..9b73a17b2a 100644 --- a/typedapi/types/page.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Page type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Page.ts#L22-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/pagerdutyaction.go b/typedapi/types/pagerdutyaction.go index 858e495bc9..ca616aac1c 100644 --- a/typedapi/types/pagerdutyaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // PagerDutyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L54-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L54-L54 type PagerDutyAction struct { Account *string `json:"account,omitempty"` AttachPayload bool `json:"attach_payload"` diff --git a/typedapi/types/pagerdutycontext.go b/typedapi/types/pagerdutycontext.go index 950c383c3e..f15342b90e 100644 --- a/typedapi/types/pagerdutycontext.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // PagerDutyContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L61-L65 type PagerDutyContext struct { Href *string `json:"href,omitempty"` Src *string `json:"src,omitempty"` diff --git a/typedapi/types/pagerdutyevent.go b/typedapi/types/pagerdutyevent.go index c823aaa2a0..0378767096 100644 --- a/typedapi/types/pagerdutyevent.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // PagerDutyEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L40-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L40-L52 type PagerDutyEvent struct { Account *string `json:"account,omitempty"` AttachPayload bool `json:"attach_payload"` diff --git a/typedapi/types/pagerdutyeventproxy.go b/typedapi/types/pagerdutyeventproxy.go index 707cec7cd3..888e02c853 100644 --- a/typedapi/types/pagerdutyeventproxy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PagerDutyEventProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L56-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L56-L59 type PagerDutyEventProxy struct { Host *string `json:"host,omitempty"` Port *int `json:"port,omitempty"` diff --git a/typedapi/types/pagerdutyresult.go b/typedapi/types/pagerdutyresult.go index 4407836b21..e2e2478ad6 100644 --- a/typedapi/types/pagerdutyresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PagerDutyResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L78-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L78-L83 type PagerDutyResult struct { Event PagerDutyEvent `json:"event"` Reason *string `json:"reason,omitempty"` diff --git a/typedapi/types/painlesscontextsetup.go b/typedapi/types/painlesscontextsetup.go index 83959c9444..1c8e9f3ea0 100644 --- a/typedapi/types/painlesscontextsetup.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // PainlessContextSetup type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/scripts_painless_execute/types.ts#L27-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/scripts_painless_execute/types.ts#L27-L46 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/typedapi/types/parentaggregate.go b/typedapi/types/parentaggregate.go index 62668c4596..9c62bb4d62 100644 --- a/typedapi/types/parentaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // ParentAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L894-L898 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L894-L898 type ParentAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/parentaggregation.go b/typedapi/types/parentaggregation.go index b514f2ad17..5efdbcfa1f 100644 --- a/typedapi/types/parentaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ParentAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L662-L667 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L662-L667 type ParentAggregation struct { // Type The child type that should be selected. Type *string `json:"type,omitempty"` diff --git a/typedapi/types/parentidquery.go b/typedapi/types/parentidquery.go index 05139ea54d..cff72e7495 100644 --- a/typedapi/types/parentidquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ParentIdQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/joining.ts#L141-L158 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/joining.ts#L141-L158 type ParentIdQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/parenttaskinfo.go b/typedapi/types/parenttaskinfo.go index 1bb0c54cfc..ce8617040b 100644 --- a/typedapi/types/parenttaskinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ParentTaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 type ParentTaskInfo struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` diff --git a/typedapi/types/passthroughinferenceoptions.go b/typedapi/types/passthroughinferenceoptions.go index 3dc0104049..1d0a987f8f 100644 --- a/typedapi/types/passthroughinferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L208-L215 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L239-L246 type PassThroughInferenceOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/passthroughinferenceupdateoptions.go b/typedapi/types/passthroughinferenceupdateoptions.go index 379e4dc28f..e4e4ab7dae 100644 --- a/typedapi/types/passthroughinferenceupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L373-L378 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L404-L409 type PassThroughInferenceUpdateOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/passthroughobjectproperty.go b/typedapi/types/passthroughobjectproperty.go index 6396553a97..fbc8e156c6 100644 --- a/typedapi/types/passthroughobjectproperty.go +++ b/typedapi/types/passthroughobjectproperty.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // PassthroughObjectProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/complex.ts#L52-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/complex.ts#L52-L57 type PassthroughObjectProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/typedapi/types/pathhierarchytokenizer.go b/typedapi/types/pathhierarchytokenizer.go index f7046420fc..6694ed19a5 100644 --- a/typedapi/types/pathhierarchytokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PathHierarchyTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L95-L102 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L95-L102 type PathHierarchyTokenizer struct { BufferSize Stringifiedinteger `json:"buffer_size,omitempty"` Delimiter *string `json:"delimiter,omitempty"` diff --git a/typedapi/types/patternanalyzer.go b/typedapi/types/patternanalyzer.go index aefb828088..00b6fe4aa5 100644 --- a/typedapi/types/patternanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PatternAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L311-L318 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L311-L318 type PatternAnalyzer struct { Flags *string `json:"flags,omitempty"` Lowercase *bool `json:"lowercase,omitempty"` diff --git a/typedapi/types/patterncapturetokenfilter.go b/typedapi/types/patterncapturetokenfilter.go index 6a320ef2f6..788925f290 100644 --- a/typedapi/types/patterncapturetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // PatternCaptureTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L279-L283 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L279-L283 type PatternCaptureTokenFilter struct { Patterns []string `json:"patterns"` PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` diff --git a/typedapi/types/patternreplacecharfilter.go b/typedapi/types/patternreplacecharfilter.go index b1e41b7dcc..f24996e45e 100644 --- a/typedapi/types/patternreplacecharfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/char_filters.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/char_filters.ts#L57-L62 type PatternReplaceCharFilter struct { Flags *string `json:"flags,omitempty"` Pattern string `json:"pattern"` diff --git a/typedapi/types/patternreplacetokenfilter.go b/typedapi/types/patternreplacetokenfilter.go index 76a43e46de..a77ae1fa74 100644 --- a/typedapi/types/patternreplacetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L285-L291 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L285-L291 type PatternReplaceTokenFilter struct { All *bool `json:"all,omitempty"` Flags *string `json:"flags,omitempty"` diff --git a/typedapi/types/patterntokenizer.go b/typedapi/types/patterntokenizer.go index 8c63e7b0cb..70d0236f11 100644 --- a/typedapi/types/patterntokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PatternTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L104-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L104-L109 type PatternTokenizer struct { Flags *string `json:"flags,omitempty"` Group *int `json:"group,omitempty"` diff --git a/typedapi/types/pendingtask.go b/typedapi/types/pendingtask.go index 04029fda8f..7a0aec78c3 100644 --- a/typedapi/types/pendingtask.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PendingTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/pending_tasks/types.ts#L23-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/pendingtasksrecord.go b/typedapi/types/pendingtasksrecord.go index 8f755c62f4..a4ab5808ae 100644 --- a/typedapi/types/pendingtasksrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PendingTasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/pending_tasks/types.ts#L20-L41 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/pending_tasks/types.ts#L20-L41 type PendingTasksRecord struct { // InsertOrder The task insertion order. InsertOrder *string `json:"insertOrder,omitempty"` diff --git a/typedapi/types/percentage.go b/typedapi/types/percentage.go index ad20fe748e..9e9a20b3cc 100644 --- a/typedapi/types/percentage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // float32 // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Numeric.ts#L28-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Numeric.ts#L28-L28 type Percentage any type PercentageVariant interface { diff --git a/typedapi/types/percentagescoreheuristic.go b/typedapi/types/percentagescoreheuristic.go index d86e64ddf5..867e48e64e 100644 --- a/typedapi/types/percentagescoreheuristic.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // PercentageScoreHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L811-L811 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L811-L811 type PercentageScoreHeuristic struct { } diff --git a/typedapi/types/percentileranksaggregation.go b/typedapi/types/percentileranksaggregation.go index bcb0c59133..dd36a1c759 100644 --- a/typedapi/types/percentileranksaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PercentileRanksAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L180-L202 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L180-L202 type PercentileRanksAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/percentiles.go b/typedapi/types/percentiles.go index cd1362e326..2e65fe8919 100644 --- a/typedapi/types/percentiles.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // KeyedPercentiles // []ArrayPercentilesItem // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L152-L153 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L152-L153 type Percentiles any diff --git a/typedapi/types/percentilesaggregation.go b/typedapi/types/percentilesaggregation.go index 3debe2bada..a51b334b92 100644 --- a/typedapi/types/percentilesaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L204-L223 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L204-L223 type PercentilesAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/percentilesbucketaggregate.go b/typedapi/types/percentilesbucketaggregate.go index b4c84f7dad..702909e9af 100644 --- a/typedapi/types/percentilesbucketaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // PercentilesBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L180-L181 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L180-L181 type PercentilesBucketAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -64,7 +64,7 @@ func (s *PercentilesBucketAggregate) UnmarshalJSON(data []byte) error { localDec := json.NewDecoder(source) switch rawMsg[0] { case '{': - o := make(map[string]string, 0) + o := make(map[string]any, 0) if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "Values", err) } diff --git a/typedapi/types/percentilesbucketaggregation.go b/typedapi/types/percentilesbucketaggregation.go index 84204be15d..a3fdbd8aa8 100644 --- a/typedapi/types/percentilesbucketaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // PercentilesBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L389-L397 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L389-L397 type PercentilesBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/percolatequery.go b/typedapi/types/percolatequery.go index 00c384d645..255a5e404e 100644 --- a/typedapi/types/percolatequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PercolateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L205-L245 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L205-L245 type PercolateQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/percolatorproperty.go b/typedapi/types/percolatorproperty.go index f6e7e91259..c843925312 100644 --- a/typedapi/types/percolatorproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // PercolatorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L192-L194 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L202-L204 type PercolatorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/perpartitioncategorization.go b/typedapi/types/perpartitioncategorization.go index fee84f85e1..801e3af550 100644 --- a/typedapi/types/perpartitioncategorization.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PerPartitionCategorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Analysis.ts#L150-L159 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/persiananalyzer.go b/typedapi/types/persiananalyzer.go index f7943fe63e..2f7277b710 100644 --- a/typedapi/types/persiananalyzer.go +++ b/typedapi/types/persiananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PersianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L235-L239 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L235-L239 type PersianAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/persistenttaskstatus.go b/typedapi/types/persistenttaskstatus.go index d9aedccdb6..4dd41556ba 100644 --- a/typedapi/types/persistenttaskstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // PersistentTaskStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58 type PersistentTaskStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } diff --git a/typedapi/types/phase.go b/typedapi/types/phase.go index 3475a6e4ed..7ad4b5a383 100644 --- a/typedapi/types/phase.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Phase type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L26-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L26-L29 type Phase struct { Actions *IlmActions `json:"actions,omitempty"` MinAge Duration `json:"min_age,omitempty"` diff --git a/typedapi/types/phases.go b/typedapi/types/phases.go index e868a35e3a..2237d726d7 100644 --- a/typedapi/types/phases.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Phases type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L31-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L31-L37 type Phases struct { Cold *Phase `json:"cold,omitempty"` Delete *Phase `json:"delete,omitempty"` diff --git a/typedapi/types/phonetictokenfilter.go b/typedapi/types/phonetictokenfilter.go index 047d4f455b..ec61d1c4ab 100644 --- a/typedapi/types/phonetictokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // PhoneticTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/phonetic-plugin.ts#L64-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/phonetic-plugin.ts#L64-L72 type PhoneticTokenFilter struct { Encoder phoneticencoder.PhoneticEncoder `json:"encoder"` Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset,omitempty"` diff --git a/typedapi/types/phrasesuggest.go b/typedapi/types/phrasesuggest.go index 11cdd1999e..527cfbf961 100644 --- a/typedapi/types/phrasesuggest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L57-L62 type PhraseSuggest struct { Length int `json:"length"` Offset int `json:"offset"` diff --git a/typedapi/types/phrasesuggestcollate.go b/typedapi/types/phrasesuggestcollate.go index bfe1134623..290cf95122 100644 --- a/typedapi/types/phrasesuggestcollate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestCollate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L333-L346 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/phrasesuggestcollatequery.go b/typedapi/types/phrasesuggestcollatequery.go index 75350e169c..f3d3eddba3 100644 --- a/typedapi/types/phrasesuggestcollatequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestCollateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L348-L357 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L348-L357 type PhraseSuggestCollateQuery struct { // Id The search template ID. Id *string `json:"id,omitempty"` diff --git a/typedapi/types/phrasesuggester.go b/typedapi/types/phrasesuggester.go index bb955079cb..1107294945 100644 --- a/typedapi/types/phrasesuggester.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L359-L417 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/phrasesuggesthighlight.go b/typedapi/types/phrasesuggesthighlight.go index b26f82d915..7f09d67795 100644 --- a/typedapi/types/phrasesuggesthighlight.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L419-L428 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/phrasesuggestoption.go b/typedapi/types/phrasesuggestoption.go index f656caa65e..4e4a9c6c92 100644 --- a/typedapi/types/phrasesuggestoption.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/pinneddoc.go b/typedapi/types/pinneddoc.go index 3745f5611f..6db3d92a2e 100644 --- a/typedapi/types/pinneddoc.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // PinnedDoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L269-L278 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L269-L278 type PinnedDoc struct { // Id_ The unique document ID. Id_ string `json:"_id"` diff --git a/typedapi/types/pinnedquery.go b/typedapi/types/pinnedquery.go index e2ecab3833..01d83658a5 100644 --- a/typedapi/types/pinnedquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PinnedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L247-L267 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L247-L267 type PinnedQuery struct { AdditionalPinnedQueryProperty map[string]json.RawMessage `json:"-"` // Boost Floating point number used to decrease or increase the relevance scores of diff --git a/typedapi/types/pipelineconfig.go b/typedapi/types/pipelineconfig.go index 1dd84a77d4..b89a0d68c1 100644 --- a/typedapi/types/pipelineconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PipelineConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Pipeline.ts#L67-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Pipeline.ts#L67-L81 type PipelineConfig struct { // Description Description of the ingest pipeline. Description *string `json:"description,omitempty"` diff --git a/typedapi/types/pipelinemetadata.go b/typedapi/types/pipelinemetadata.go index 66b69e9fb3..aeef8b2123 100644 --- a/typedapi/types/pipelinemetadata.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PipelineMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/logstash/_types/Pipeline.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/logstash/_types/Pipeline.ts#L23-L26 type PipelineMetadata struct { Type string `json:"type"` Version string `json:"version"` diff --git a/typedapi/types/pipelineprocessor.go b/typedapi/types/pipelineprocessor.go index 67f26073d5..3383875637 100644 --- a/typedapi/types/pipelineprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PipelineProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1266-L1277 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1284-L1295 type PipelineProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/pipelinesettings.go b/typedapi/types/pipelinesettings.go index bd89c3c83a..922483be29 100644 --- a/typedapi/types/pipelinesettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PipelineSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/logstash/_types/Pipeline.ts#L28-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/logstash/_types/Pipeline.ts#L28-L55 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. @@ -45,11 +45,8 @@ type PipelineSettings struct { // QueueCheckpointWrites The maximum number of written events before forcing a checkpoint when // persistent queues are enabled (`queue.type: persisted`). QueueCheckpointWrites int `json:"queue.checkpoint.writes"` - // QueueMaxBytesNumber The total capacity of the queue (`queue.type: persisted`) in number of bytes. - QueueMaxBytesNumber int `json:"queue.max_bytes.number"` - // QueueMaxBytesUnits The total capacity of the queue (`queue.type: persisted`) in terms of units - // of bytes. - QueueMaxBytesUnits string `json:"queue.max_bytes.units"` + // QueueMaxBytes The total capacity of the queue (`queue.type: persisted`) in number of bytes. + QueueMaxBytes string `json:"queue.max_bytes"` // QueueType The internal queuing model to use for event buffering. QueueType string `json:"queue.type"` } @@ -133,33 +130,17 @@ func (s *PipelineSettings) UnmarshalJSON(data []byte) error { s.QueueCheckpointWrites = f } - case "queue.max_bytes.number": - - 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", "QueueMaxBytesNumber", err) - } - s.QueueMaxBytesNumber = value - case float64: - f := int(v) - s.QueueMaxBytesNumber = f - } - - case "queue.max_bytes.units": + case "queue.max_bytes": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "QueueMaxBytesUnits", err) + return fmt.Errorf("%s | %w", "QueueMaxBytes", err) } o := string(tmp[:]) o, err = strconv.Unquote(o) if err != nil { o = string(tmp[:]) } - s.QueueMaxBytesUnits = o + s.QueueMaxBytes = o case "queue.type": var tmp json.RawMessage diff --git a/typedapi/types/pipelinesimulation.go b/typedapi/types/pipelinesimulation.go index 1a9fcc50e6..44fa0231f7 100644 --- a/typedapi/types/pipelinesimulation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // PipelineSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Simulation.ts#L52-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Simulation.ts#L52-L60 type PipelineSimulation struct { Description *string `json:"description,omitempty"` Doc *DocumentSimulation `json:"doc,omitempty"` diff --git a/typedapi/types/pipeseparatedflagssimplequerystringflag.go b/typedapi/types/pipeseparatedflagssimplequerystringflag.go index 6d28054dff..bdac1abf24 100644 --- a/typedapi/types/pipeseparatedflagssimplequerystringflag.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // simplequerystringflag.SimpleQueryStringFlag // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27 type PipeSeparatedFlagsSimpleQueryStringFlag any type PipeSeparatedFlagsSimpleQueryStringFlagVariant interface { diff --git a/typedapi/types/pivot.go b/typedapi/types/pivot.go index 894e174275..cded015e16 100644 --- a/typedapi/types/pivot.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Pivot type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L54-L68 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/pivotgroupbycontainer.go b/typedapi/types/pivotgroupbycontainer.go index 8540d1c7aa..8b8d11b4b3 100644 --- a/typedapi/types/pivotgroupbycontainer.go +++ b/typedapi/types/pivotgroupbycontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // PivotGroupByContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L70-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/_types/Transform.ts#L70-L78 type PivotGroupByContainer struct { AdditionalPivotGroupByContainerProperty map[string]json.RawMessage `json:"-"` DateHistogram *DateHistogramAggregation `json:"date_histogram,omitempty"` diff --git a/typedapi/types/pluginsrecord.go b/typedapi/types/pluginsrecord.go index e549373413..5b156aafef 100644 --- a/typedapi/types/pluginsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PluginsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/plugins/types.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/plugins/types.ts#L22-L52 type PluginsRecord struct { // Component The component name. Component *string `json:"component,omitempty"` diff --git a/typedapi/types/pluginsstatus.go b/typedapi/types/pluginsstatus.go index 18a0355a73..ae08d41a5e 100644 --- a/typedapi/types/pluginsstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // PluginsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62 type PluginsStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } diff --git a/typedapi/types/pluginstats.go b/typedapi/types/pluginstats.go index 4821cd4b9f..0ea0a689a2 100644 --- a/typedapi/types/pluginstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PluginStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L183-L193 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L183-L193 type PluginStats struct { Classname string `json:"classname"` Description string `json:"description"` diff --git a/typedapi/types/pointintimereference.go b/typedapi/types/pointintimereference.go index 4dfa935ccc..b34deb839c 100644 --- a/typedapi/types/pointintimereference.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // PointInTimeReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/PointInTimeReference.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/PointInTimeReference.ts#L23-L26 type PointInTimeReference struct { Id string `json:"id"` KeepAlive Duration `json:"keep_alive,omitempty"` diff --git a/typedapi/types/pointproperty.go b/typedapi/types/pointproperty.go index bbf5a2881b..cd560d879b 100644 --- a/typedapi/types/pointproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // PointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/geo.ts#L66-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/geo.ts#L67-L72 type PointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/pool.go b/typedapi/types/pool.go index 12123deea3..7641037359 100644 --- a/typedapi/types/pool.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Pool type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L949-L966 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L949-L966 type Pool struct { // MaxInBytes Maximum amount of memory, in bytes, available for use by the heap. MaxInBytes *int64 `json:"max_in_bytes,omitempty"` diff --git a/typedapi/types/porterstemtokenfilter.go b/typedapi/types/porterstemtokenfilter.go index b3a3d6b124..0213c5b3dc 100644 --- a/typedapi/types/porterstemtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // PorterStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L293-L295 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L293-L295 type PorterStemTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/portugueseanalyzer.go b/typedapi/types/portugueseanalyzer.go index 8683592000..d408f443da 100644 --- a/typedapi/types/portugueseanalyzer.go +++ b/typedapi/types/portugueseanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PortugueseAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L241-L246 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L241-L246 type PortugueseAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/postmigrationfeature.go b/typedapi/types/postmigrationfeature.go index 58f86a05d1..b65b3cca67 100644 --- a/typedapi/types/postmigrationfeature.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PostMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29 type PostMigrationFeature struct { FeatureName string `json:"feature_name"` } diff --git a/typedapi/types/predicatetokenfilter.go b/typedapi/types/predicatetokenfilter.go index 64bfa6ae2b..78a75fa1f1 100644 --- a/typedapi/types/predicatetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // PredicateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L297-L300 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L297-L300 type PredicateTokenFilter struct { Script Script `json:"script"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/predictedvalue.go b/typedapi/types/predictedvalue.go index 37b3c40b9c..2db012ca18 100644 --- a/typedapi/types/predictedvalue.go +++ b/typedapi/types/predictedvalue.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // PredictedValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L445-L445 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L476-L476 type PredictedValue []ScalarValue diff --git a/typedapi/types/prefixquery.go b/typedapi/types/prefixquery.go index e197ed252d..145875c41a 100644 --- a/typedapi/types/prefixquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L98-L120 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L98-L120 type PrefixQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/preprocessor.go b/typedapi/types/preprocessor.go index 74f77b3c66..59b8a49e3c 100644 --- a/typedapi/types/preprocessor.go +++ b/typedapi/types/preprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // Preprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_trained_model/types.ts#L31-L36 type Preprocessor struct { AdditionalPreprocessorProperty map[string]json.RawMessage `json:"-"` FrequencyEncoding *FrequencyEncodingPreprocessor `json:"frequency_encoding,omitempty"` diff --git a/typedapi/types/pressurememory.go b/typedapi/types/pressurememory.go index ce682acb63..be75e6765d 100644 --- a/typedapi/types/pressurememory.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L144-L199 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/privileges.go b/typedapi/types/privileges.go index c2d9f04b61..270ab1a658 100644 --- a/typedapi/types/privileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Privileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges/types.ts#L49-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/has_privileges/types.ts#L49-L49 type Privileges map[string]bool diff --git a/typedapi/types/privilegesactions.go b/typedapi/types/privilegesactions.go index 6e894a0079..22302f333a 100644 --- a/typedapi/types/privilegesactions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PrivilegesActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/put_privileges/types.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/put_privileges/types.ts#L22-L27 type PrivilegesActions struct { Actions []string `json:"actions"` Application *string `json:"application,omitempty"` diff --git a/typedapi/types/privilegescheck.go b/typedapi/types/privilegescheck.go index 42233eb0c1..5069c4874c 100644 --- a/typedapi/types/privilegescheck.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // PrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges_user_profile/types.ts#L30-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/process.go b/typedapi/types/process.go index 23405b71d8..7b0cab746d 100644 --- a/typedapi/types/process.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Process type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1024-L1046 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1024-L1046 type Process struct { // Cpu Contains CPU statistics for the node. Cpu *Cpu `json:"cpu,omitempty"` diff --git a/typedapi/types/processor.go b/typedapi/types/processor.go index ec476e8d0d..9860b546f4 100644 --- a/typedapi/types/processor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Processor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L420-L437 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L420-L437 type Processor struct { // Count Number of documents transformed by the processor. Count *int64 `json:"count,omitempty"` diff --git a/typedapi/types/processorcontainer.go b/typedapi/types/processorcontainer.go index 876e31ae7d..d1a7b5be26 100644 --- a/typedapi/types/processorcontainer.go +++ b/typedapi/types/processorcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // ProcessorContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L27-L301 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L27-L301 type ProcessorContainer struct { AdditionalProcessorContainerProperty map[string]json.RawMessage `json:"-"` // Append Appends one or more values to an existing array if the field already exists diff --git a/typedapi/types/profile.go b/typedapi/types/profile.go index 3498eaac5c..48fbc99031 100644 --- a/typedapi/types/profile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Profile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L101-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L101-L103 type Profile struct { Shards []ShardProfile `json:"shards"` } diff --git a/typedapi/types/property.go b/typedapi/types/property.go index e82b3dcd2c..a882921e3b 100644 --- a/typedapi/types/property.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -74,7 +74,7 @@ package types // LongRangeProperty // IcuCollationProperty // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/Property.ts#L119-L189 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/Property.ts#L119-L189 type Property any type PropertyVariant interface { diff --git a/typedapi/types/publishedclusterstates.go b/typedapi/types/publishedclusterstates.go index d430c38725..0aa4a76a39 100644 --- a/typedapi/types/publishedclusterstates.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // PublishedClusterStates type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L263-L276 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/queries.go b/typedapi/types/queries.go index 858b165495..93730e945b 100644 --- a/typedapi/types/queries.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Queries type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L417-L419 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L417-L419 type Queries struct { Cache *CacheQueries `json:"cache,omitempty"` } diff --git a/typedapi/types/query.go b/typedapi/types/query.go index 14d14da2f0..94b8ebe59d 100644 --- a/typedapi/types/query.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Query type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/abstractions.ts#L103-L434 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/abstractions.ts#L103-L434 type Query struct { AdditionalQueryProperty map[string]json.RawMessage `json:"-"` // Bool matches documents matching boolean combinations of other queries. diff --git a/typedapi/types/querybreakdown.go b/typedapi/types/querybreakdown.go index 856310e6b1..a3d52f41ed 100644 --- a/typedapi/types/querybreakdown.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // QueryBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L105-L126 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L105-L126 type QueryBreakdown struct { Advance int64 `json:"advance"` AdvanceCount int64 `json:"advance_count"` diff --git a/typedapi/types/querycachestats.go b/typedapi/types/querycachestats.go index 543d71a393..37211b8b35 100644 --- a/typedapi/types/querycachestats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // QueryCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L195-L229 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L195-L229 type QueryCacheStats struct { // CacheCount Total number of entries added to the query cache across all shards assigned // to selected nodes. diff --git a/typedapi/types/queryfeatureextractor.go b/typedapi/types/queryfeatureextractor.go new file mode 100644 index 0000000000..b752d498cd --- /dev/null +++ b/typedapi/types/queryfeatureextractor.go @@ -0,0 +1,109 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// QueryFeatureExtractor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L98-L105 +type QueryFeatureExtractor struct { + DefaultScore *float32 `json:"default_score,omitempty"` + FeatureName string `json:"feature_name"` + Query Query `json:"query"` +} + +func (s *QueryFeatureExtractor) 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 "default_score": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "DefaultScore", err) + } + f := float32(value) + s.DefaultScore = &f + case float64: + f := float32(v) + s.DefaultScore = &f + } + + case "feature_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "FeatureName", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.FeatureName = o + + case "query": + if err := dec.Decode(&s.Query); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + + } + } + return nil +} + +// NewQueryFeatureExtractor returns a QueryFeatureExtractor. +func NewQueryFeatureExtractor() *QueryFeatureExtractor { + r := &QueryFeatureExtractor{} + + return r +} + +// true + +type QueryFeatureExtractorVariant interface { + QueryFeatureExtractorCaster() *QueryFeatureExtractor +} + +func (s *QueryFeatureExtractor) QueryFeatureExtractorCaster() *QueryFeatureExtractor { + return s +} diff --git a/typedapi/types/queryprofile.go b/typedapi/types/queryprofile.go index 9ccc67a483..fc0f62c355 100644 --- a/typedapi/types/queryprofile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // QueryProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L128-L134 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L128-L134 type QueryProfile struct { Breakdown QueryBreakdown `json:"breakdown"` Children []QueryProfile `json:"children,omitempty"` diff --git a/typedapi/types/queryrole.go b/typedapi/types/queryrole.go index a027f8718c..f5390b0dcd 100644 --- a/typedapi/types/queryrole.go +++ b/typedapi/types/queryrole.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // QueryRole type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_role/types.ts#L103-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_role/types.ts#L103-L109 type QueryRole struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` diff --git a/typedapi/types/queryrule.go b/typedapi/types/queryrule.go index f7600f565d..b448dbacb0 100644 --- a/typedapi/types/queryrule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // QueryRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/_types/QueryRuleset.ts#L36-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/_types/QueryRuleset.ts#L36-L58 type QueryRule struct { // Actions The actions to take when the rule is matched. // The format of this action depends on the rule type. diff --git a/typedapi/types/queryruleactions.go b/typedapi/types/queryruleactions.go index b28eec7d7a..78b239e8a7 100644 --- a/typedapi/types/queryruleactions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // QueryRuleActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/_types/QueryRuleset.ts#L110-L126 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/_types/QueryRuleset.ts#L110-L126 type QueryRuleActions struct { // Docs The documents to apply the rule to. // Only one of `ids` or `docs` may be specified and at least one must be diff --git a/typedapi/types/queryrulecriteria.go b/typedapi/types/queryrulecriteria.go index d2f795332c..b785b8c9cf 100644 --- a/typedapi/types/queryrulecriteria.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // QueryRuleCriteria type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/_types/QueryRuleset.ts#L65-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/_types/QueryRuleset.ts#L65-L93 type QueryRuleCriteria struct { // Metadata The metadata field to match against. // This metadata will be used to match against `match_criteria` sent in the diff --git a/typedapi/types/queryrulesetlistitem.go b/typedapi/types/queryrulesetlistitem.go index 1633766a91..a22bf20ae3 100644 --- a/typedapi/types/queryrulesetlistitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // QueryRulesetListItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/list_rulesets/types.ts#L23-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/list_rulesets/types.ts#L23-L44 type QueryRulesetListItem struct { // RuleCriteriaTypesCounts A map of criteria type (for example, `exact`) to the number of rules of that // type. diff --git a/typedapi/types/queryrulesetmatchedrule.go b/typedapi/types/queryrulesetmatchedrule.go index 2409bff4e6..7177cc53e2 100644 --- a/typedapi/types/queryrulesetmatchedrule.go +++ b/typedapi/types/queryrulesetmatchedrule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // QueryRulesetMatchedRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/query_rules/test/QueryRulesetTestResponse.ts#L30-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/query_rules/test/QueryRulesetTestResponse.ts#L30-L39 type QueryRulesetMatchedRule struct { // RuleId Rule unique identifier within that ruleset RuleId string `json:"rule_id"` diff --git a/typedapi/types/querystringquery.go b/typedapi/types/querystringquery.go index 19d5319ba0..d16cba340f 100644 --- a/typedapi/types/querystringquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // QueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L598-L721 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L598-L721 type QueryStringQuery struct { // AllowLeadingWildcard If `true`, the wildcard characters `*` and `?` are allowed as the first // character of the query string. diff --git a/typedapi/types/queryuser.go b/typedapi/types/queryuser.go index 2f8636f774..7192cebb4c 100644 --- a/typedapi/types/queryuser.go +++ b/typedapi/types/queryuser.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // QueryUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_user/types.ts#L103-L105 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_user/types.ts#L103-L105 type QueryUser struct { Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/queryvectorbuilder.go b/typedapi/types/queryvectorbuilder.go index cf7f36d701..f977c68de1 100644 --- a/typedapi/types/queryvectorbuilder.go +++ b/typedapi/types/queryvectorbuilder.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // QueryVectorBuilder type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Knn.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Knn.ts#L89-L92 type QueryVectorBuilder struct { AdditionalQueryVectorBuilderProperty map[string]json.RawMessage `json:"-"` TextEmbedding *TextEmbedding `json:"text_embedding,omitempty"` diff --git a/typedapi/types/querywatch.go b/typedapi/types/querywatch.go index 420f94ff90..df785fc8c5 100644 --- a/typedapi/types/querywatch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // QueryWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Watch.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Watch.ts#L58-L64 type QueryWatch struct { Id_ string `json:"_id"` PrimaryTerm_ *int `json:"_primary_term,omitempty"` diff --git a/typedapi/types/questionansweringinferenceoptions.go b/typedapi/types/questionansweringinferenceoptions.go index ff0a56f958..ecb0524e96 100644 --- a/typedapi/types/questionansweringinferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L270-L280 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L301-L311 type QuestionAnsweringInferenceOptions struct { // MaxAnswerLength The maximum answer length to consider MaxAnswerLength *int `json:"max_answer_length,omitempty"` diff --git a/typedapi/types/questionansweringinferenceupdateoptions.go b/typedapi/types/questionansweringinferenceupdateoptions.go index 594bfb7123..6cfb111335 100644 --- a/typedapi/types/questionansweringinferenceupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L408-L419 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L439-L450 type QuestionAnsweringInferenceUpdateOptions struct { // MaxAnswerLength The maximum answer length to consider for extraction MaxAnswerLength *int `json:"max_answer_length,omitempty"` diff --git a/typedapi/types/randomsampleraggregation.go b/typedapi/types/randomsampleraggregation.go index 0f6cbe3651..9cd0fab90f 100644 --- a/typedapi/types/randomsampleraggregation.go +++ b/typedapi/types/randomsampleraggregation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RandomSamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L749-L769 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L749-L769 type RandomSamplerAggregation struct { // Probability The probability that a document will be included in the aggregated data. // Must be greater than 0, less than 0.5, or exactly 1. diff --git a/typedapi/types/randomscorefunction.go b/typedapi/types/randomscorefunction.go index 12de61dac7..c9bd0402b5 100644 --- a/typedapi/types/randomscorefunction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RandomScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L144-L147 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L144-L147 type RandomScoreFunction struct { Field *string `json:"field,omitempty"` Seed string `json:"seed,omitempty"` diff --git a/typedapi/types/rangeaggregate.go b/typedapi/types/rangeaggregate.go index 91b194b5d8..a395987451 100644 --- a/typedapi/types/rangeaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L594-L598 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L594-L598 type RangeAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/rangeaggregation.go b/typedapi/types/rangeaggregation.go index dac33147d2..9089c9f7c7 100644 --- a/typedapi/types/rangeaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L669-L689 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L669-L689 type RangeAggregation struct { // Field The date field whose values are use to build ranges. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/rangebucket.go b/typedapi/types/rangebucket.go index ee66452d3e..b999faca06 100644 --- a/typedapi/types/rangebucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // RangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L600-L607 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L600-L607 type RangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/rangequery.go b/typedapi/types/rangequery.go index 7f5c4203d6..20434379ea 100644 --- a/typedapi/types/rangequery.go +++ b/typedapi/types/rangequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ package types // NumberRangeQuery // TermRangeQuery // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L176-L186 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L176-L186 type RangeQuery any type RangeQueryVariant interface { diff --git a/typedapi/types/rankcontainer.go b/typedapi/types/rankcontainer.go index 1c0d94b080..0137a4522c 100644 --- a/typedapi/types/rankcontainer.go +++ b/typedapi/types/rankcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // RankContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Rank.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Rank.ts#L22-L28 type RankContainer struct { AdditionalRankContainerProperty map[string]json.RawMessage `json:"-"` // Rrf The reciprocal rank fusion parameters diff --git a/typedapi/types/rankeddocument.go b/typedapi/types/rankeddocument.go index 3430cc775d..a8f6f914e4 100644 --- a/typedapi/types/rankeddocument.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Results.ts#L91-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Results.ts#L91-L101 type RankedDocument struct { Index int `json:"index"` RelevanceScore float32 `json:"relevance_score"` diff --git a/typedapi/types/rankevalhit.go b/typedapi/types/rankevalhit.go index 06cc29c3bc..5f4d24c962 100644 --- a/typedapi/types/rankevalhit.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankEvalHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L144-L148 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/rank_eval/types.ts#L144-L148 type RankEvalHit struct { Id_ string `json:"_id"` Index_ string `json:"_index"` diff --git a/typedapi/types/rankevalhititem.go b/typedapi/types/rankevalhititem.go index 913373e19e..007b8cd053 100644 --- a/typedapi/types/rankevalhititem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RankEvalHitItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L139-L142 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/rank_eval/types.ts#L139-L142 type RankEvalHitItem struct { Hit RankEvalHit `json:"hit"` Rating *Float64 `json:"rating,omitempty"` diff --git a/typedapi/types/rankevalmetric.go b/typedapi/types/rankevalmetric.go index 6c99a5a80e..9ebf1419ec 100644 --- a/typedapi/types/rankevalmetric.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // RankEvalMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L90-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rankevalmetricdetail.go b/typedapi/types/rankevalmetricdetail.go index 59b539b76a..ac0b408081 100644 --- a/typedapi/types/rankevalmetricdetail.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L128-L137 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/rank_eval/types.ts#L128-L137 type RankEvalMetricDetail struct { // Hits The hits section shows a grouping of the search results with their supplied // ratings diff --git a/typedapi/types/rankevalmetricdiscountedcumulativegain.go b/typedapi/types/rankevalmetricdiscountedcumulativegain.go index a5e4259098..b909371af8 100644 --- a/typedapi/types/rankevalmetricdiscountedcumulativegain.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDiscountedCumulativeGain type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L66-L77 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rankevalmetricexpectedreciprocalrank.go b/typedapi/types/rankevalmetricexpectedreciprocalrank.go index 61d707e367..a2a400f304 100644 --- a/typedapi/types/rankevalmetricexpectedreciprocalrank.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricExpectedReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L79-L88 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rankevalmetricmeanreciprocalrank.go b/typedapi/types/rankevalmetricmeanreciprocalrank.go index 513692924c..ec4b60f7a1 100644 --- a/typedapi/types/rankevalmetricmeanreciprocalrank.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricMeanReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L60-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rankevalmetricprecision.go b/typedapi/types/rankevalmetricprecision.go index a78e51bf6d..d1b0f967b7 100644 --- a/typedapi/types/rankevalmetricprecision.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L42-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rankevalmetricrecall.go b/typedapi/types/rankevalmetricrecall.go index 024fed4b42..7132a8bccb 100644 --- a/typedapi/types/rankevalmetricrecall.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L54-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rankevalquery.go b/typedapi/types/rankevalquery.go index 042c1d10b9..1b6ff9c2e3 100644 --- a/typedapi/types/rankevalquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankEvalQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L111-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/rank_eval/types.ts#L111-L117 type RankEvalQuery struct { Query Query `json:"query"` Size *int `json:"size,omitempty"` diff --git a/typedapi/types/rankevalrequestitem.go b/typedapi/types/rankevalrequestitem.go index 21212caa11..29a803c2db 100644 --- a/typedapi/types/rankevalrequestitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RankEvalRequestItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L98-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rankfeaturefunctionlinear.go b/typedapi/types/rankfeaturefunctionlinear.go index 5ada982c76..6e53565abc 100644 --- a/typedapi/types/rankfeaturefunctionlinear.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // RankFeatureFunctionLinear type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L282-L282 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L282-L282 type RankFeatureFunctionLinear struct { } diff --git a/typedapi/types/rankfeaturefunctionlogarithm.go b/typedapi/types/rankfeaturefunctionlogarithm.go index 9d9bfc8282..5398e70994 100644 --- a/typedapi/types/rankfeaturefunctionlogarithm.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionLogarithm type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L284-L289 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L284-L289 type RankFeatureFunctionLogarithm struct { // ScalingFactor Configurable scaling factor. ScalingFactor float32 `json:"scaling_factor"` diff --git a/typedapi/types/rankfeaturefunctionsaturation.go b/typedapi/types/rankfeaturefunctionsaturation.go index 086d38a8c4..50409696d9 100644 --- a/typedapi/types/rankfeaturefunctionsaturation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSaturation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L291-L296 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L291-L296 type RankFeatureFunctionSaturation struct { // Pivot Configurable pivot value so that the result will be less than 0.5. Pivot *float32 `json:"pivot,omitempty"` diff --git a/typedapi/types/rankfeaturefunctionsigmoid.go b/typedapi/types/rankfeaturefunctionsigmoid.go index 5a5181e456..7e539191b7 100644 --- a/typedapi/types/rankfeaturefunctionsigmoid.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSigmoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L298-L307 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L298-L307 type RankFeatureFunctionSigmoid struct { // Exponent Configurable Exponent. Exponent float32 `json:"exponent"` diff --git a/typedapi/types/rankfeatureproperty.go b/typedapi/types/rankfeatureproperty.go index 9d73322f17..21287ca6a2 100644 --- a/typedapi/types/rankfeatureproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // RankFeatureProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L196-L199 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L206-L209 type RankFeatureProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/rankfeaturequery.go b/typedapi/types/rankfeaturequery.go index 4d01eac6b6..186d4627e8 100644 --- a/typedapi/types/rankfeaturequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RankFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L309-L335 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L309-L335 type RankFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/rankfeaturesproperty.go b/typedapi/types/rankfeaturesproperty.go index bff76ba99e..fe8a9c920c 100644 --- a/typedapi/types/rankfeaturesproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // RankFeaturesProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L201-L204 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L211-L214 type RankFeaturesProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/raretermsaggregation.go b/typedapi/types/raretermsaggregation.go index bbedf656ca..dca9d286c1 100644 --- a/typedapi/types/raretermsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RareTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L706-L739 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L706-L739 type RareTermsAggregation struct { // Exclude Terms that should be excluded from the aggregation. Exclude []string `json:"exclude,omitempty"` diff --git a/typedapi/types/rateaggregate.go b/typedapi/types/rateaggregate.go index c6350e8fec..90efb5cac0 100644 --- a/typedapi/types/rateaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RateAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L847-L854 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L847-L854 type RateAggregate struct { Meta Metadata `json:"meta,omitempty"` Value Float64 `json:"value"` diff --git a/typedapi/types/rateaggregation.go b/typedapi/types/rateaggregation.go index e6c502512c..080e16ab0d 100644 --- a/typedapi/types/rateaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // RateAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L239-L250 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L239-L250 type RateAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/ratelimitsetting.go b/typedapi/types/ratelimitsetting.go index 72aa69638e..5024275a77 100644 --- a/typedapi/types/ratelimitsetting.go +++ b/typedapi/types/ratelimitsetting.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RateLimitSetting type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Services.ts#L95-L100 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Services.ts#L95-L100 type RateLimitSetting struct { // RequestsPerMinute The number of requests allowed per minute. RequestsPerMinute *int `json:"requests_per_minute,omitempty"` diff --git a/typedapi/types/readblobdetails.go b/typedapi/types/readblobdetails.go index e8725ef858..61372f21e9 100644 --- a/typedapi/types/readblobdetails.go +++ b/typedapi/types/readblobdetails.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReadBlobDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L204-L248 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L204-L248 type ReadBlobDetails struct { // BeforeWriteComplete Indicates whether the read operation may have started before the write // operation was complete. diff --git a/typedapi/types/readexception.go b/typedapi/types/readexception.go index 690ffc1d73..df6908e956 100644 --- a/typedapi/types/readexception.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReadException type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ccr/_types/FollowIndexStats.ts#L111-L118 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ccr/_types/FollowIndexStats.ts#L111-L118 type ReadException struct { // Exception The exception that caused the read to fail. Exception ErrorCause `json:"exception"` diff --git a/typedapi/types/readonlyurlrepository.go b/typedapi/types/readonlyurlrepository.go index 88ac958f42..fd213beb68 100644 --- a/typedapi/types/readonlyurlrepository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ReadOnlyUrlRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L60-L63 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L60-L63 type ReadOnlyUrlRepository struct { Settings ReadOnlyUrlRepositorySettings `json:"settings"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/readonlyurlrepositorysettings.go b/typedapi/types/readonlyurlrepositorysettings.go index 082ab4793f..02055b4d1d 100644 --- a/typedapi/types/readonlyurlrepositorysettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReadOnlyUrlRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L110-L115 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L110-L115 type ReadOnlyUrlRepositorySettings struct { ChunkSize ByteSize `json:"chunk_size,omitempty"` Compress *bool `json:"compress,omitempty"` diff --git a/typedapi/types/readsummaryinfo.go b/typedapi/types/readsummaryinfo.go index caff5b3e62..a6bd569b2a 100644 --- a/typedapi/types/readsummaryinfo.go +++ b/typedapi/types/readsummaryinfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReadSummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L115-L160 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L115-L160 type ReadSummaryInfo struct { // Count The number of read operations performed in the test. Count int `json:"count"` diff --git a/typedapi/types/realmcache.go b/typedapi/types/realmcache.go index d7436582d7..f94f15f6a5 100644 --- a/typedapi/types/realmcache.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RealmCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L276-L278 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L276-L278 type RealmCache struct { Size int64 `json:"size"` } diff --git a/typedapi/types/realminfo.go b/typedapi/types/realminfo.go index 63d6285b75..8af0607aea 100644 --- a/typedapi/types/realminfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RealmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RealmInfo.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RealmInfo.ts#L22-L25 type RealmInfo struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/recording.go b/typedapi/types/recording.go index ddd689994c..44db833ee8 100644 --- a/typedapi/types/recording.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Recording type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/recoverybytes.go b/typedapi/types/recoverybytes.go index c5ae1b6a54..e196a32e89 100644 --- a/typedapi/types/recoverybytes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RecoveryBytes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L38-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/recovery/types.ts#L38-L48 type RecoveryBytes struct { Percent Percentage `json:"percent"` Recovered ByteSize `json:"recovered,omitempty"` diff --git a/typedapi/types/recoveryfiles.go b/typedapi/types/recoveryfiles.go index e614a1baab..7a333597bc 100644 --- a/typedapi/types/recoveryfiles.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RecoveryFiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/recovery/types.ts#L56-L62 type RecoveryFiles struct { Details []FileDetails `json:"details,omitempty"` Percent Percentage `json:"percent"` diff --git a/typedapi/types/recoveryindexstatus.go b/typedapi/types/recoveryindexstatus.go index b2bf9c494d..4ea1f4e5a7 100644 --- a/typedapi/types/recoveryindexstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RecoveryIndexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L64-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/recovery/types.ts#L64-L74 type RecoveryIndexStatus struct { Bytes *RecoveryBytes `json:"bytes,omitempty"` Files RecoveryFiles `json:"files"` diff --git a/typedapi/types/recoveryorigin.go b/typedapi/types/recoveryorigin.go index 9ade88aa28..34c2f21898 100644 --- a/typedapi/types/recoveryorigin.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RecoveryOrigin type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L76-L89 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/recoveryrecord.go b/typedapi/types/recoveryrecord.go index fb2a6a5fbd..a6e6324427 100644 --- a/typedapi/types/recoveryrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RecoveryRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/recovery/types.ts#L24-L155 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/recoverystartstatus.go b/typedapi/types/recoverystartstatus.go index 711f325983..16e44d9e5b 100644 --- a/typedapi/types/recoverystartstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RecoveryStartStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L91-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/recoverystats.go b/typedapi/types/recoverystats.go index f5e994e7bc..eb0399ab21 100644 --- a/typedapi/types/recoverystats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RecoveryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L231-L236 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L231-L236 type RecoveryStats struct { CurrentAsSource int64 `json:"current_as_source"` CurrentAsTarget int64 `json:"current_as_target"` diff --git a/typedapi/types/recoverystatus.go b/typedapi/types/recoverystatus.go index 53dd2405db..3d3aec94c6 100644 --- a/typedapi/types/recoverystatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // RecoveryStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L98-L100 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/recovery/types.ts#L98-L100 type RecoveryStatus struct { Shards []ShardRecovery `json:"shards"` } diff --git a/typedapi/types/redact.go b/typedapi/types/redact.go index 0dc6a8bca6..5f3159406b 100644 --- a/typedapi/types/redact.go +++ b/typedapi/types/redact.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Redact type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Simulation.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Simulation.ts#L39-L44 type Redact struct { // IsRedacted_ indicates if document has been redacted IsRedacted_ bool `json:"_is_redacted"` diff --git a/typedapi/types/redactprocessor.go b/typedapi/types/redactprocessor.go index 31012ff49d..54801c7dab 100644 --- a/typedapi/types/redactprocessor.go +++ b/typedapi/types/redactprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RedactProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1279-L1320 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1297-L1338 type RedactProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/refreshstats.go b/typedapi/types/refreshstats.go index 9545b22022..6ae33e2a3f 100644 --- a/typedapi/types/refreshstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RefreshStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L238-L245 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L238-L245 type RefreshStats struct { ExternalTotal int64 `json:"external_total"` ExternalTotalTimeInMillis int64 `json:"external_total_time_in_millis"` diff --git a/typedapi/types/regexoptions.go b/typedapi/types/regexoptions.go index edab1ef21c..01d567aae4 100644 --- a/typedapi/types/regexoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RegexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L183-L194 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/regexpquery.go b/typedapi/types/regexpquery.go index e6c64c8d20..5510647b9a 100644 --- a/typedapi/types/regexpquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RegexpQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L203-L236 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L203-L236 type RegexpQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/regexvalidation.go b/typedapi/types/regexvalidation.go index ad73a30047..0a5a0ca8c9 100644 --- a/typedapi/types/regexvalidation.go +++ b/typedapi/types/regexvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RegexValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L78-L81 type RegexValidation struct { Constraint string `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/registereddomainprocessor.go b/typedapi/types/registereddomainprocessor.go index b813dfe215..28d5e78844 100644 --- a/typedapi/types/registereddomainprocessor.go +++ b/typedapi/types/registereddomainprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RegisteredDomainProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1322-L1338 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1340-L1356 type RegisteredDomainProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/regressioninferenceoptions.go b/typedapi/types/regressioninferenceoptions.go index efcbad57a3..7e77d69e6c 100644 --- a/typedapi/types/regressioninferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RegressionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L82-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L107-L116 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/typedapi/types/reindexdestination.go b/typedapi/types/reindexdestination.go index f11b6a6eea..053c873c71 100644 --- a/typedapi/types/reindexdestination.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // ReindexDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex/types.ts#L39-L67 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/reindex/types.ts#L39-L67 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/typedapi/types/reindexnode.go b/typedapi/types/reindexnode.go index 92e0ab8f18..2542cea041 100644 --- a/typedapi/types/reindexnode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // ReindexNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex_rethrottle/types.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/reindex_rethrottle/types.ts#L33-L35 type ReindexNode struct { Attributes map[string]string `json:"attributes"` Host string `json:"host"` diff --git a/typedapi/types/reindexsource.go b/typedapi/types/reindexsource.go index 0f3e0c19c4..9a6b5895da 100644 --- a/typedapi/types/reindexsource.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReindexSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex/types.ts#L69-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/reindex/types.ts#L69-L110 type ReindexSource struct { // Index The name of the data stream, index, or alias you are copying from. // It accepts a comma-separated list to reindex from multiple sources. diff --git a/typedapi/types/reindexstatus.go b/typedapi/types/reindexstatus.go index 74ef1e55fd..34fc22d4e9 100644 --- a/typedapi/types/reindexstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReindexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex_rethrottle/types.ts#L37-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/reindextask.go b/typedapi/types/reindextask.go index 8522860af6..67b59b1652 100644 --- a/typedapi/types/reindextask.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReindexTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex_rethrottle/types.ts#L87-L98 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/reindex_rethrottle/types.ts#L87-L98 type ReindexTask struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` diff --git a/typedapi/types/reloaddetails.go b/typedapi/types/reloaddetails.go index 348fa93ca4..1bc9e2cbec 100644 --- a/typedapi/types/reloaddetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReloadDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/reload_search_analyzers/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/reload_search_analyzers/types.ts#L27-L31 type ReloadDetails struct { Index string `json:"index"` ReloadedAnalyzers []string `json:"reloaded_analyzers"` diff --git a/typedapi/types/reloadresult.go b/typedapi/types/reloadresult.go index 7df8cae3a9..f2ca02f706 100644 --- a/typedapi/types/reloadresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ReloadResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/reload_search_analyzers/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/reload_search_analyzers/types.ts#L22-L25 type ReloadResult struct { ReloadDetails []ReloadDetails `json:"reload_details"` Shards_ ShardStatistics `json:"_shards"` diff --git a/typedapi/types/relocationfailureinfo.go b/typedapi/types/relocationfailureinfo.go index 5f49588919..6e5e9888ab 100644 --- a/typedapi/types/relocationfailureinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RelocationFailureInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Node.ts#L67-L69 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Node.ts#L67-L69 type RelocationFailureInfo struct { FailedAttempts int `json:"failed_attempts"` } diff --git a/typedapi/types/remoteclusterprivileges.go b/typedapi/types/remoteclusterprivileges.go index 8b93a501c4..864389818c 100644 --- a/typedapi/types/remoteclusterprivileges.go +++ b/typedapi/types/remoteclusterprivileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // RemoteClusterPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L278-L290 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L278-L290 type RemoteClusterPrivileges struct { // Clusters A list of cluster aliases to which the permissions in this entry apply. Clusters []string `json:"clusters"` diff --git a/typedapi/types/remoteindicesprivileges.go b/typedapi/types/remoteindicesprivileges.go index 5df10791d1..ad6f9b1640 100644 --- a/typedapi/types/remoteindicesprivileges.go +++ b/typedapi/types/remoteindicesprivileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // RemoteIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L244-L276 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L244-L276 type RemoteIndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/remotesource.go b/typedapi/types/remotesource.go index 4f978f402e..f48de6ab65 100644 --- a/typedapi/types/remotesource.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RemoteSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/reindex/types.ts#L112-L140 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/reindex/types.ts#L112-L140 type RemoteSource struct { // ConnectTimeout The remote connection timeout. ConnectTimeout Duration `json:"connect_timeout,omitempty"` diff --git a/typedapi/types/remoteuserindicesprivileges.go b/typedapi/types/remoteuserindicesprivileges.go index e16d0b8876..bd8c5c1e52 100644 --- a/typedapi/types/remoteuserindicesprivileges.go +++ b/typedapi/types/remoteuserindicesprivileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // RemoteUserIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L316-L339 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L316-L339 type RemoteUserIndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/removeaction.go b/typedapi/types/removeaction.go index eebe9a59f7..4242f688b0 100644 --- a/typedapi/types/removeaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RemoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/update_aliases/types.ts#L97-L122 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/removeduplicatestokenfilter.go b/typedapi/types/removeduplicatestokenfilter.go index b94adba01f..98ce1534bf 100644 --- a/typedapi/types/removeduplicatestokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RemoveDuplicatesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L302-L304 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L302-L304 type RemoveDuplicatesTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/removeindexaction.go b/typedapi/types/removeindexaction.go index f17b846421..5ffb11b668 100644 --- a/typedapi/types/removeindexaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RemoveIndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/update_aliases/types.ts#L124-L139 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/update_aliases/types.ts#L124-L139 type RemoveIndexAction struct { // Index Data stream or index for the action. // Supports wildcards (`*`). diff --git a/typedapi/types/removeprocessor.go b/typedapi/types/removeprocessor.go index f1760a5fb3..3a90bea48b 100644 --- a/typedapi/types/removeprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RemoveProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1340-L1354 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1358-L1372 type RemoveProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/renameprocessor.go b/typedapi/types/renameprocessor.go index 84d2e5065c..832ec5b933 100644 --- a/typedapi/types/renameprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RenameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1356-L1372 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1374-L1390 type RenameProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/replicationaccess.go b/typedapi/types/replicationaccess.go index 1603daeacf..59bfaf5d8f 100644 --- a/typedapi/types/replicationaccess.go +++ b/typedapi/types/replicationaccess.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReplicationAccess type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L442-L452 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L442-L452 type ReplicationAccess struct { // AllowRestrictedIndices This needs to be set to true if the patterns in the names field should cover // system indices. diff --git a/typedapi/types/reportingemailattachment.go b/typedapi/types/reportingemailattachment.go index 718c00330a..f08b926d33 100644 --- a/typedapi/types/reportingemailattachment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReportingEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L224-L232 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L224-L232 type ReportingEmailAttachment struct { Inline *bool `json:"inline,omitempty"` Interval Duration `json:"interval,omitempty"` diff --git a/typedapi/types/repositoriesrecord.go b/typedapi/types/repositoriesrecord.go index daf5f2f820..b7e5895a95 100644 --- a/typedapi/types/repositoriesrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RepositoriesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/repositories/types.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/repositories/types.ts#L20-L31 type RepositoriesRecord struct { // Id The unique repository identifier. Id *string `json:"id,omitempty"` diff --git a/typedapi/types/repository.go b/typedapi/types/repository.go index ba1874b242..55d581f537 100644 --- a/typedapi/types/repository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ package types // ReadOnlyUrlRepository // SourceOnlyRepository // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L24-L34 type Repository any type RepositoryVariant interface { diff --git a/typedapi/types/repositoryintegrityindicator.go b/typedapi/types/repositoryintegrityindicator.go index ac014efc5f..cab2c7fc0d 100644 --- a/typedapi/types/repositoryintegrityindicator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // RepositoryIntegrityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L136-L140 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L136-L140 type RepositoryIntegrityIndicator struct { Details *RepositoryIntegrityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/repositoryintegrityindicatordetails.go b/typedapi/types/repositoryintegrityindicatordetails.go index da9dfbff71..f5777ddf0a 100644 --- a/typedapi/types/repositoryintegrityindicatordetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RepositoryIntegrityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L141-L145 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L141-L145 type RepositoryIntegrityIndicatorDetails struct { Corrupted []string `json:"corrupted,omitempty"` CorruptedRepositories *int64 `json:"corrupted_repositories,omitempty"` diff --git a/typedapi/types/repositorylocation.go b/typedapi/types/repositorylocation.go index 5f15c011e9..1ad2f201fc 100644 --- a/typedapi/types/repositorylocation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RepositoryLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74 type RepositoryLocation struct { BasePath string `json:"base_path"` // Bucket Bucket name (GCP, S3) diff --git a/typedapi/types/repositorymeteringinformation.go b/typedapi/types/repositorymeteringinformation.go index ffbcb74655..0b7aa3cb18 100644 --- a/typedapi/types/repositorymeteringinformation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RepositoryMeteringInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/requestcachestats.go b/typedapi/types/requestcachestats.go index b5dcf86eba..2d0965976b 100644 --- a/typedapi/types/requestcachestats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RequestCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L247-L253 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L247-L253 type RequestCacheStats struct { Evictions int64 `json:"evictions"` HitCount int64 `json:"hit_count"` diff --git a/typedapi/types/requestchatcompletion.go b/typedapi/types/requestchatcompletion.go new file mode 100644 index 0000000000..139dad6c2d --- /dev/null +++ b/typedapi/types/requestchatcompletion.go @@ -0,0 +1,201 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RequestChatCompletion type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L25-L58 +type RequestChatCompletion struct { + // MaxCompletionTokens The upper bound limit for the number of tokens that can be generated for a + // completion request. + MaxCompletionTokens *int64 `json:"max_completion_tokens,omitempty"` + // Messages A list of objects representing the conversation. + Messages []Message `json:"messages"` + // Model The ID of the model to use. + Model *string `json:"model,omitempty"` + // Stop A sequence of strings to control when the model should stop generating + // additional tokens. + Stop []string `json:"stop,omitempty"` + // Temperature The sampling temperature to use. + Temperature *float32 `json:"temperature,omitempty"` + // ToolChoice Controls which tool is called by the model. + ToolChoice CompletionToolType `json:"tool_choice,omitempty"` + // Tools A list of tools that the model can call. + Tools []CompletionTool `json:"tools,omitempty"` + // TopP Nucleus sampling, an alternative to sampling with temperature. + TopP *float32 `json:"top_p,omitempty"` +} + +func (s *RequestChatCompletion) 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_completion_tokens": + 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", "MaxCompletionTokens", err) + } + s.MaxCompletionTokens = &value + case float64: + f := int64(v) + s.MaxCompletionTokens = &f + } + + case "messages": + if err := dec.Decode(&s.Messages); err != nil { + return fmt.Errorf("%s | %w", "Messages", err) + } + + case "model": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Model", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Model = &o + + case "stop": + if err := dec.Decode(&s.Stop); err != nil { + return fmt.Errorf("%s | %w", "Stop", err) + } + + case "temperature": + 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", "Temperature", err) + } + f := float32(value) + s.Temperature = &f + case float64: + f := float32(v) + s.Temperature = &f + } + + case "tool_choice": + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "ToolChoice", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + toolchoice_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "ToolChoice", err) + } + + switch t { + + case "function", "type": + o := NewCompletionToolChoice() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "ToolChoice", err) + } + s.ToolChoice = o + break toolchoice_field + + } + } + if s.ToolChoice == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.ToolChoice); err != nil { + return fmt.Errorf("%s | %w", "ToolChoice", err) + } + } + + case "tools": + if err := dec.Decode(&s.Tools); err != nil { + return fmt.Errorf("%s | %w", "Tools", err) + } + + case "top_p": + 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", "TopP", err) + } + f := float32(value) + s.TopP = &f + case float64: + f := float32(v) + s.TopP = &f + } + + } + } + return nil +} + +// NewRequestChatCompletion returns a RequestChatCompletion. +func NewRequestChatCompletion() *RequestChatCompletion { + r := &RequestChatCompletion{} + + return r +} + +// true + +type RequestChatCompletionVariant interface { + RequestChatCompletionCaster() *RequestChatCompletion +} + +func (s *RequestChatCompletion) RequestChatCompletionCaster() *RequestChatCompletion { + return s +} diff --git a/typedapi/types/requestcounts.go b/typedapi/types/requestcounts.go index de5097804f..c757e6cbeb 100644 --- a/typedapi/types/requestcounts.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RequestCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/requestitem.go b/typedapi/types/requestitem.go index 8f61f29f60..cfeb27ba06 100644 --- a/typedapi/types/requestitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // MultisearchHeader // TemplateConfig // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch_template/types.ts#L25-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/msearch_template/types.ts#L25-L26 type RequestItem any type RequestItemVariant interface { diff --git a/typedapi/types/reroutedecision.go b/typedapi/types/reroutedecision.go index bea8f1010d..9336e82f35 100644 --- a/typedapi/types/reroutedecision.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RerouteDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/types.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/reroute/types.ts#L86-L90 type RerouteDecision struct { Decider string `json:"decider"` Decision string `json:"decision"` diff --git a/typedapi/types/rerouteexplanation.go b/typedapi/types/rerouteexplanation.go index ab53567179..b12713ad5d 100644 --- a/typedapi/types/rerouteexplanation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RerouteExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/types.ts#L92-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/reroute/types.ts#L92-L96 type RerouteExplanation struct { Command string `json:"command"` Decisions []RerouteDecision `json:"decisions"` diff --git a/typedapi/types/rerouteparameters.go b/typedapi/types/rerouteparameters.go index c36b1f93bb..fbc2867786 100644 --- a/typedapi/types/rerouteparameters.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RerouteParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/reroute/types.ts#L98-L105 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/reroute/types.ts#L98-L105 type RerouteParameters struct { AllowPrimary bool `json:"allow_primary"` FromNode *string `json:"from_node,omitempty"` diff --git a/typedapi/types/rerouteprocessor.go b/typedapi/types/rerouteprocessor.go index a41176f2ea..d2138f5370 100644 --- a/typedapi/types/rerouteprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RerouteProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1374-L1402 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1392-L1420 type RerouteProcessor struct { // Dataset Field references or a static value for the dataset part of the data stream // name. diff --git a/typedapi/types/rescore.go b/typedapi/types/rescore.go index 1f06ca3fa3..30abe2900e 100644 --- a/typedapi/types/rescore.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Rescore type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/rescoring.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/rescoring.ts#L25-L38 type Rescore struct { AdditionalRescoreProperty map[string]json.RawMessage `json:"-"` LearningToRank *LearningToRank `json:"learning_to_rank,omitempty"` diff --git a/typedapi/types/rescorequery.go b/typedapi/types/rescorequery.go index 9a57fdbdf8..76ce260341 100644 --- a/typedapi/types/rescorequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // RescoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/rescoring.ts#L40-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rescorevector.go b/typedapi/types/rescorevector.go index 1372a02ba8..6a0f70cb44 100644 --- a/typedapi/types/rescorevector.go +++ b/typedapi/types/rescorevector.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RescoreVector type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Knn.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Knn.ts#L30-L33 type RescoreVector struct { // Oversample Applies the specified oversample factor to k on the approximate kNN search Oversample float32 `json:"oversample"` diff --git a/typedapi/types/reservedsize.go b/typedapi/types/reservedsize.go index 4552bc438b..b1cba662b2 100644 --- a/typedapi/types/reservedsize.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ReservedSize type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L72-L77 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L72-L77 type ReservedSize struct { NodeId string `json:"node_id"` Path string `json:"path"` diff --git a/typedapi/types/resolveclusterinfo.go b/typedapi/types/resolveclusterinfo.go index 49197a2100..779e1dbd24 100644 --- a/typedapi/types/resolveclusterinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ResolveClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/resolveindexaliasitem.go b/typedapi/types/resolveindexaliasitem.go index c833cdd409..9cefb23155 100644 --- a/typedapi/types/resolveindexaliasitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexAliasItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40 type ResolveIndexAliasItem struct { Indices []string `json:"indices"` Name string `json:"name"` diff --git a/typedapi/types/resolveindexdatastreamsitem.go b/typedapi/types/resolveindexdatastreamsitem.go index f9df6d1057..aaa13d1f5e 100644 --- a/typedapi/types/resolveindexdatastreamsitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexDataStreamsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46 type ResolveIndexDataStreamsItem struct { BackingIndices []string `json:"backing_indices"` Name string `json:"name"` diff --git a/typedapi/types/resolveindexitem.go b/typedapi/types/resolveindexitem.go index f32dd6bade..2bfa3dcd1e 100644 --- a/typedapi/types/resolveindexitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35 type ResolveIndexItem struct { Aliases []string `json:"aliases,omitempty"` Attributes []string `json:"attributes"` diff --git a/typedapi/types/resourceprivileges.go b/typedapi/types/resourceprivileges.go index f35960a96e..60b86244bc 100644 --- a/typedapi/types/resourceprivileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ResourcePrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/has_privileges/types.ts#L48-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/has_privileges/types.ts#L48-L48 type ResourcePrivileges map[string]Privileges diff --git a/typedapi/types/responseitem.go b/typedapi/types/responseitem.go index 96cb95d712..9b79d09f69 100644 --- a/typedapi/types/responseitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L37-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L37-L84 type ResponseItem struct { // Error Additional information about the failed operation. // The property is returned only for failed operations. diff --git a/typedapi/types/restriction.go b/typedapi/types/restriction.go index f145df5a33..cb0b6684c2 100644 --- a/typedapi/types/restriction.go +++ b/typedapi/types/restriction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // Restriction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleDescriptor.ts#L135-L141 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleDescriptor.ts#L135-L141 type Restriction struct { // Workflows A list of workflows to which the API key is restricted. // NOTE: In order to use a role restriction, an API key must be created with a diff --git a/typedapi/types/retention.go b/typedapi/types/retention.go index c10d5095cf..5e5c7464d9 100644 --- a/typedapi/types/retention.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Retention type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/_types/SnapshotLifecycle.ts#L94-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/_types/SnapshotLifecycle.ts#L94-L107 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/typedapi/types/retentionlease.go b/typedapi/types/retentionlease.go index 9537413b02..d917ec15fd 100644 --- a/typedapi/types/retentionlease.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RetentionLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L66-L68 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L66-L68 type RetentionLease struct { Period Duration `json:"period"` } diff --git a/typedapi/types/retentionpolicy.go b/typedapi/types/retentionpolicy.go index d12dbc2eb7..0c4ee123f2 100644 --- a/typedapi/types/retentionpolicy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RetentionPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L88-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/retentionpolicycontainer.go b/typedapi/types/retentionpolicycontainer.go index 5a1ef73e42..69834efeab 100644 --- a/typedapi/types/retentionpolicycontainer.go +++ b/typedapi/types/retentionpolicycontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // RetentionPolicyContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L80-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/_types/Transform.ts#L80-L86 type RetentionPolicyContainer struct { AdditionalRetentionPolicyContainerProperty map[string]json.RawMessage `json:"-"` // Time Specifies that the transform uses a time field to set the retention policy. diff --git a/typedapi/types/retries.go b/typedapi/types/retries.go index a90b982cb1..6d94ad1d7b 100644 --- a/typedapi/types/retries.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Retries type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Retries.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Retries.ts#L22-L31 type Retries struct { // Bulk The number of bulk actions retried. Bulk int64 `json:"bulk"` diff --git a/typedapi/types/retrievercontainer.go b/typedapi/types/retrievercontainer.go index cc458814a2..625d2ee0de 100644 --- a/typedapi/types/retrievercontainer.go +++ b/typedapi/types/retrievercontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // RetrieverContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Retriever.ts#L28-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Retriever.ts#L28-L42 type RetrieverContainer struct { AdditionalRetrieverContainerProperty map[string]json.RawMessage `json:"-"` // Knn A retriever that replaces the functionality of a knn search. diff --git a/typedapi/types/reversenestedaggregate.go b/typedapi/types/reversenestedaggregate.go index b8d6843237..cf7fba66e3 100644 --- a/typedapi/types/reversenestedaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // ReverseNestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L540-L544 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L540-L544 type ReverseNestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/reversenestedaggregation.go b/typedapi/types/reversenestedaggregation.go index 9a2c462b82..a900153a97 100644 --- a/typedapi/types/reversenestedaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ReverseNestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L741-L747 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L741-L747 type ReverseNestedAggregation struct { // Path Defines the nested object field that should be joined back to. // The default is empty, which means that it joins back to the root/main diff --git a/typedapi/types/reversetokenfilter.go b/typedapi/types/reversetokenfilter.go index 7bcb72a87d..4b9515e819 100644 --- a/typedapi/types/reversetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ReverseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L306-L308 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L306-L308 type ReverseTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/role.go b/typedapi/types/role.go index 3bbebb2382..6601366337 100644 --- a/typedapi/types/role.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // Role type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_role/types.ts#L32-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_role/types.ts#L32-L54 type Role struct { Applications []ApplicationPrivileges `json:"applications"` Cluster []clusterprivilege.ClusterPrivilege `json:"cluster"` diff --git a/typedapi/types/roledescriptor.go b/typedapi/types/roledescriptor.go index 0629a093a6..efabf923a3 100644 --- a/typedapi/types/roledescriptor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // RoleDescriptor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleDescriptor.ts#L33-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleDescriptor.ts#L33-L83 type RoleDescriptor struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` diff --git a/typedapi/types/roledescriptorread.go b/typedapi/types/roledescriptorread.go index a6a6be74dd..2cc3629e5a 100644 --- a/typedapi/types/roledescriptorread.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // RoleDescriptorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleDescriptor.ts#L85-L133 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleDescriptor.ts#L85-L133 type RoleDescriptorRead struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` diff --git a/typedapi/types/roledescriptorwrapper.go b/typedapi/types/roledescriptorwrapper.go index 54ccbf9371..7720a4dcd2 100644 --- a/typedapi/types/roledescriptorwrapper.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // RoleDescriptorWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_service_accounts/types.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_service_accounts/types.ts#L22-L24 type RoleDescriptorWrapper struct { RoleDescriptor RoleDescriptorRead `json:"role_descriptor"` } diff --git a/typedapi/types/rolemappingrule.go b/typedapi/types/rolemappingrule.go index 2f8757e8ac..e4a75f946d 100644 --- a/typedapi/types/rolemappingrule.go +++ b/typedapi/types/rolemappingrule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // RoleMappingRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleMappingRule.ts#L22-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleMappingRule.ts#L22-L33 type RoleMappingRule struct { AdditionalRoleMappingRuleProperty map[string]json.RawMessage `json:"-"` All []RoleMappingRule `json:"all,omitempty"` diff --git a/typedapi/types/rolequerycontainer.go b/typedapi/types/rolequerycontainer.go index 78f4ea66ec..c5fc441135 100644 --- a/typedapi/types/rolequerycontainer.go +++ b/typedapi/types/rolequerycontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RoleQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_role/types.ts#L37-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_role/types.ts#L37-L101 type RoleQueryContainer struct { AdditionalRoleQueryContainerProperty map[string]json.RawMessage `json:"-"` // Bool matches roles matching boolean combinations of other queries. diff --git a/typedapi/types/roletemplate.go b/typedapi/types/roletemplate.go index 41f749668c..8073830ebc 100644 --- a/typedapi/types/roletemplate.go +++ b/typedapi/types/roletemplate.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // RoleTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleTemplate.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleTemplate.ts#L28-L31 type RoleTemplate struct { Format *templateformat.TemplateFormat `json:"format,omitempty"` Template Script `json:"template"` diff --git a/typedapi/types/roletemplateinlinequery.go b/typedapi/types/roletemplateinlinequery.go index 9247550ce7..39f1d3dd95 100644 --- a/typedapi/types/roletemplateinlinequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // Query // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L383-L384 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L383-L384 type RoleTemplateInlineQuery any type RoleTemplateInlineQueryVariant interface { diff --git a/typedapi/types/roletemplatequery.go b/typedapi/types/roletemplatequery.go index 322414dacc..e499fafa21 100644 --- a/typedapi/types/roletemplatequery.go +++ b/typedapi/types/roletemplatequery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // RoleTemplateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L351-L361 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L351-L361 type RoleTemplateQuery struct { // Template When you create a role, you can specify a query that defines the document // level security permissions. You can optionally diff --git a/typedapi/types/roletemplatescript.go b/typedapi/types/roletemplatescript.go index 6e8dd5436e..af5a374082 100644 --- a/typedapi/types/roletemplatescript.go +++ b/typedapi/types/roletemplatescript.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // RoleTemplateScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L363-L381 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L363-L381 type RoleTemplateScript struct { // Id The `id` for a stored script. Id *string `json:"id,omitempty"` diff --git a/typedapi/types/rolloveraction.go b/typedapi/types/rolloveraction.go index fe4dc1e43c..897d38b7d1 100644 --- a/typedapi/types/rolloveraction.go +++ b/typedapi/types/rolloveraction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RolloverAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L99-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L99-L110 type RolloverAction struct { MaxAge Duration `json:"max_age,omitempty"` MaxDocs *int64 `json:"max_docs,omitempty"` diff --git a/typedapi/types/rolloverconditions.go b/typedapi/types/rolloverconditions.go index 6013aad562..4b3edef47e 100644 --- a/typedapi/types/rolloverconditions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/rollover/types.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rollupcapabilities.go b/typedapi/types/rollupcapabilities.go index c94f786433..32088d6b11 100644 --- a/typedapi/types/rollupcapabilities.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // RollupCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_rollup_caps/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_rollup_caps/types.ts#L24-L29 type RollupCapabilities struct { // RollupJobs There can be multiple, independent jobs configured for a single index or // index pattern. Each of these jobs may have different configurations, so the diff --git a/typedapi/types/rollupcapabilitysummary.go b/typedapi/types/rollupcapabilitysummary.go index e407440d6a..a33f816f38 100644 --- a/typedapi/types/rollupcapabilitysummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RollupCapabilitySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_rollup_caps/types.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_rollup_caps/types.ts#L31-L36 type RollupCapabilitySummary struct { Fields map[string][]RollupFieldSummary `json:"fields"` IndexPattern string `json:"index_pattern"` diff --git a/typedapi/types/rollupfieldsummary.go b/typedapi/types/rollupfieldsummary.go index 9eefeb1b04..e0201cf48f 100644 --- a/typedapi/types/rollupfieldsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RollupFieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_rollup_caps/types.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_rollup_caps/types.ts#L38-L42 type RollupFieldSummary struct { Agg string `json:"agg"` CalendarInterval Duration `json:"calendar_interval,omitempty"` diff --git a/typedapi/types/rollupjob.go b/typedapi/types/rollupjob.go index 56aa5ecabd..1656a79f0a 100644 --- a/typedapi/types/rollupjob.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // RollupJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_jobs/types.ts#L28-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_jobs/types.ts#L28-L43 type RollupJob struct { // Config The rollup job configuration. Config RollupJobConfiguration `json:"config"` diff --git a/typedapi/types/rollupjobconfiguration.go b/typedapi/types/rollupjobconfiguration.go index 11120a204b..e48be07e16 100644 --- a/typedapi/types/rollupjobconfiguration.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RollupJobConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_jobs/types.ts#L45-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_jobs/types.ts#L45-L54 type RollupJobConfiguration struct { Cron string `json:"cron"` Groups Groupings `json:"groups"` diff --git a/typedapi/types/rollupjobstats.go b/typedapi/types/rollupjobstats.go index d1950d3fdb..0d8bdccf33 100644 --- a/typedapi/types/rollupjobstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RollupJobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_jobs/types.ts#L56-L69 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_jobs/types.ts#L56-L69 type RollupJobStats struct { DocumentsProcessed int64 `json:"documents_processed"` IndexFailures int64 `json:"index_failures"` diff --git a/typedapi/types/rollupjobstatus.go b/typedapi/types/rollupjobstatus.go index 7098b1c452..a0ef7d7149 100644 --- a/typedapi/types/rollupjobstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // RollupJobStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_jobs/types.ts#L71-L75 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/rollup/get_jobs/types.ts#L71-L75 type RollupJobStatus struct { CurrentPosition map[string]json.RawMessage `json:"current_position,omitempty"` JobState indexingjobstate.IndexingJobState `json:"job_state"` diff --git a/typedapi/types/rollupjobsummary.go b/typedapi/types/rollupjobsummary.go index 07c283068b..ccc5287424 100644 --- a/typedapi/types/rollupjobsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_rollup_index_caps/types.ts#L28-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rollupjobsummaryfield.go b/typedapi/types/rollupjobsummaryfield.go index 2dcf3db135..37c1ff1162 100644 --- a/typedapi/types/rollupjobsummaryfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummaryField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/get_rollup_index_caps/types.ts#L35-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/romaniananalyzer.go b/typedapi/types/romaniananalyzer.go index fa0a27c3e8..ed15066b89 100644 --- a/typedapi/types/romaniananalyzer.go +++ b/typedapi/types/romaniananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RomanianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L248-L253 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L248-L253 type RomanianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/routingfield.go b/typedapi/types/routingfield.go index 019b194da3..f5c8ea0939 100644 --- a/typedapi/types/routingfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RoutingField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/meta-fields.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/meta-fields.ts#L50-L52 type RoutingField struct { Required bool `json:"required"` } diff --git a/typedapi/types/rrfrank.go b/typedapi/types/rrfrank.go index e20cafda3b..d59b0632a6 100644 --- a/typedapi/types/rrfrank.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RrfRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Rank.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Rank.ts#L32-L37 type RrfRank struct { // RankConstant How much influence documents in individual result sets per query have over // the final ranked result set diff --git a/typedapi/types/rrfretriever.go b/typedapi/types/rrfretriever.go index f594c87159..02aa6add6e 100644 --- a/typedapi/types/rrfretriever.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RRFRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Retriever.ts#L84-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Retriever.ts#L84-L91 type RRFRetriever struct { // Filter Query to filter the documents that can match. Filter []Query `json:"filter,omitempty"` diff --git a/typedapi/types/rulecondition.go b/typedapi/types/rulecondition.go index ec7c54459a..9b9a4ae7c1 100644 --- a/typedapi/types/rulecondition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // RuleCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Rule.ts#L52-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/rulequery.go b/typedapi/types/rulequery.go index f98f50b4e1..03348ff51f 100644 --- a/typedapi/types/rulequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RuleQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L398-L405 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L398-L405 type RuleQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/ruleretriever.go b/typedapi/types/ruleretriever.go index 7f801f4cac..ae70c97f08 100644 --- a/typedapi/types/ruleretriever.go +++ b/typedapi/types/ruleretriever.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RuleRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Retriever.ts#L106-L115 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Retriever.ts#L106-L115 type RuleRetriever struct { // Filter Query to filter the documents that can match. Filter []Query `json:"filter,omitempty"` diff --git a/typedapi/types/runningstatesearchinterval.go b/typedapi/types/runningstatesearchinterval.go index 9ecae1d1b9..fd7c4af37b 100644 --- a/typedapi/types/runningstatesearchinterval.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // RunningStateSearchInterval type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Datafeed.ts#L226-L243 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/Datafeed.ts#L226-L243 type RunningStateSearchInterval struct { // End The end time. End Duration `json:"end,omitempty"` diff --git a/typedapi/types/runtimefield.go b/typedapi/types/runtimefield.go index a646b346e7..2e5e3d8813 100644 --- a/typedapi/types/runtimefield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // RuntimeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/RuntimeFields.ts#L26-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/RuntimeFields.ts#L26-L50 type RuntimeField struct { // FetchFields For type `lookup` FetchFields []RuntimeFieldFetchFields `json:"fetch_fields,omitempty"` diff --git a/typedapi/types/runtimefieldfetchfields.go b/typedapi/types/runtimefieldfetchfields.go index 8459d5b421..cf1e3180f3 100644 --- a/typedapi/types/runtimefieldfetchfields.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldFetchFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/RuntimeFields.ts#L56-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/RuntimeFields.ts#L56-L60 type RuntimeFieldFetchFields struct { Field string `json:"field"` Format *string `json:"format,omitempty"` diff --git a/typedapi/types/runtimefields.go b/typedapi/types/runtimefields.go index e8efa3ae0b..40d4c6e697 100644 --- a/typedapi/types/runtimefields.go +++ b/typedapi/types/runtimefields.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // RuntimeFields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/RuntimeFields.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/RuntimeFields.ts#L24-L24 type RuntimeFields map[string]RuntimeField type RuntimeFieldsVariant interface { diff --git a/typedapi/types/runtimefieldstype.go b/typedapi/types/runtimefieldstype.go index aea7fb53eb..fd1620f70e 100644 --- a/typedapi/types/runtimefieldstype.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldsType type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L289-L304 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L289-L304 type RuntimeFieldsType struct { CharsMax int64 `json:"chars_max"` CharsTotal int64 `json:"chars_total"` diff --git a/typedapi/types/russiananalyzer.go b/typedapi/types/russiananalyzer.go index 5470afbbec..39e5b897a1 100644 --- a/typedapi/types/russiananalyzer.go +++ b/typedapi/types/russiananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // RussianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L255-L260 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L255-L260 type RussianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/s3repository.go b/typedapi/types/s3repository.go index 512e9920dd..fdd8f2a92e 100644 --- a/typedapi/types/s3repository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // S3Repository type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L50-L53 type S3Repository struct { Settings S3RepositorySettings `json:"settings"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/s3repositorysettings.go b/typedapi/types/s3repositorysettings.go index 1867008aec..fbf369ba58 100644 --- a/typedapi/types/s3repositorysettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // S3RepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L93-L102 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L93-L102 type S3RepositorySettings struct { BasePath *string `json:"base_path,omitempty"` Bucket string `json:"bucket"` diff --git a/typedapi/types/samplediversity.go b/typedapi/types/samplediversity.go index dd47766385..154b70bc36 100644 --- a/typedapi/types/samplediversity.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SampleDiversity type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/_types/ExploreControls.ts#L51-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/graph/_types/ExploreControls.ts#L51-L54 type SampleDiversity struct { Field string `json:"field"` MaxDocsPerValue int `json:"max_docs_per_value"` diff --git a/typedapi/types/sampleraggregate.go b/typedapi/types/sampleraggregate.go index d3dc604b5d..01be63dd54 100644 --- a/typedapi/types/sampleraggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // SamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L558-L559 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L558-L559 type SamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/sampleraggregation.go b/typedapi/types/sampleraggregation.go index 502a0a6575..6cab66a08d 100644 --- a/typedapi/types/sampleraggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L771-L780 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L771-L780 type SamplerAggregation struct { // ShardSize Limits how many top-scoring documents are collected in the sample processed // on each shard. diff --git a/typedapi/types/scalarvalue.go b/typedapi/types/scalarvalue.go index 5076b9525a..159e95e196 100644 --- a/typedapi/types/scalarvalue.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -28,7 +28,7 @@ package types // bool // nil // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L39-L43 type ScalarValue any type ScalarValueVariant interface { diff --git a/typedapi/types/scaledfloatnumberproperty.go b/typedapi/types/scaledfloatnumberproperty.go index 51649f8e70..71731dc7a6 100644 --- a/typedapi/types/scaledfloatnumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // ScaledFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L196-L200 type ScaledFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/schedulecontainer.go b/typedapi/types/schedulecontainer.go index c6f72e1a21..b834c0c8d4 100644 --- a/typedapi/types/schedulecontainer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ScheduleContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L80-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L80-L92 type ScheduleContainer struct { AdditionalScheduleContainerProperty map[string]json.RawMessage `json:"-"` Cron *string `json:"cron,omitempty"` diff --git a/typedapi/types/scheduletimeofday.go b/typedapi/types/scheduletimeofday.go index 8044cd6dce..383726b9a1 100644 --- a/typedapi/types/scheduletimeofday.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // HourAndMinute // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L99-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L99-L104 type ScheduleTimeOfDay any type ScheduleTimeOfDayVariant interface { diff --git a/typedapi/types/scheduletriggerevent.go b/typedapi/types/scheduletriggerevent.go index 131d527e80..054a0e635a 100644 --- a/typedapi/types/scheduletriggerevent.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ScheduleTriggerEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L94-L97 type ScheduleTriggerEvent struct { ScheduledTime DateTime `json:"scheduled_time"` TriggeredTime DateTime `json:"triggered_time,omitempty"` diff --git a/typedapi/types/schedulingconfiguration.go b/typedapi/types/schedulingconfiguration.go index 78a2b9ef40..94d843a8d4 100644 --- a/typedapi/types/schedulingconfiguration.go +++ b/typedapi/types/schedulingconfiguration.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SchedulingConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L246-L250 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L246-L250 type SchedulingConfiguration struct { AccessControl *ConnectorScheduling `json:"access_control,omitempty"` Full *ConnectorScheduling `json:"full,omitempty"` diff --git a/typedapi/types/scoresort.go b/typedapi/types/scoresort.go index e223a9760a..00894da906 100644 --- a/typedapi/types/scoresort.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // ScoreSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L54-L56 type ScoreSort struct { Order *sortorder.SortOrder `json:"order,omitempty"` } diff --git a/typedapi/types/script.go b/typedapi/types/script.go index 4d7f0352ab..9dcb57dc64 100644 --- a/typedapi/types/script.go +++ b/typedapi/types/script.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // Script type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Scripting.ts#L75-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Scripting.ts#L75-L99 type Script struct { // Id The `id` for a stored script. Id *string `json:"id,omitempty"` diff --git a/typedapi/types/scriptcache.go b/typedapi/types/scriptcache.go index 6e96e48685..a4b6a7d624 100644 --- a/typedapi/types/scriptcache.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ScriptCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1102-L1116 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1102-L1116 type ScriptCache struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` diff --git a/typedapi/types/scriptcondition.go b/typedapi/types/scriptcondition.go index b2f8d6c05b..76dae60fc9 100644 --- a/typedapi/types/scriptcondition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ScriptCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L79-L87 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L79-L87 type ScriptCondition struct { Id *string `json:"id,omitempty"` Lang *string `json:"lang,omitempty"` diff --git a/typedapi/types/scriptedheuristic.go b/typedapi/types/scriptedheuristic.go index bc6426c2e2..4b567aeb7c 100644 --- a/typedapi/types/scriptedheuristic.go +++ b/typedapi/types/scriptedheuristic.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ScriptedHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L813-L815 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L813-L815 type ScriptedHeuristic struct { Script Script `json:"script"` } diff --git a/typedapi/types/scriptedmetricaggregate.go b/typedapi/types/scriptedmetricaggregate.go index 6778898e27..45e0dc82ee 100644 --- a/typedapi/types/scriptedmetricaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L739-L745 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L739-L745 type ScriptedMetricAggregate struct { Meta Metadata `json:"meta,omitempty"` Value json.RawMessage `json:"value,omitempty"` diff --git a/typedapi/types/scriptedmetricaggregation.go b/typedapi/types/scriptedmetricaggregation.go index dcfc5de486..ff5a1eb048 100644 --- a/typedapi/types/scriptedmetricaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L263-L289 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L263-L289 type ScriptedMetricAggregation struct { // CombineScript Runs once on each shard after document collection is complete. // Allows the aggregation to consolidate the state returned from each shard. diff --git a/typedapi/types/scriptfield.go b/typedapi/types/scriptfield.go index 55903aa15d..e537ff6d97 100644 --- a/typedapi/types/scriptfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ScriptField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Scripting.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Scripting.ts#L101-L104 type ScriptField struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Script Script `json:"script"` diff --git a/typedapi/types/scripting.go b/typedapi/types/scripting.go index 83116bf29f..ed800231f4 100644 --- a/typedapi/types/scripting.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Scripting type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1048-L1066 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1048-L1066 type Scripting struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` diff --git a/typedapi/types/scriptprocessor.go b/typedapi/types/scriptprocessor.go index e9cd1160d7..25eac61139 100644 --- a/typedapi/types/scriptprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ScriptProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1404-L1424 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1422-L1442 type ScriptProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/scriptquery.go b/typedapi/types/scriptquery.go index edecd65d9c..96cf56327e 100644 --- a/typedapi/types/scriptquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ScriptQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L337-L346 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L337-L346 type ScriptQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/scriptscorefunction.go b/typedapi/types/scriptscorefunction.go index 456fc2bb4b..09acfe51fe 100644 --- a/typedapi/types/scriptscorefunction.go +++ b/typedapi/types/scriptscorefunction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ScriptScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L137-L142 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L137-L142 type ScriptScoreFunction struct { // Script A script that computes a score. Script Script `json:"script"` diff --git a/typedapi/types/scriptscorequery.go b/typedapi/types/scriptscorequery.go index b16661995d..55e4c2a17d 100644 --- a/typedapi/types/scriptscorequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ScriptScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L348-L365 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L348-L365 type ScriptScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/scriptsort.go b/typedapi/types/scriptsort.go index c54ff17520..8a599d4af7 100644 --- a/typedapi/types/scriptsort.go +++ b/typedapi/types/scriptsort.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -28,7 +28,7 @@ import ( // ScriptSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L72-L78 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L72-L78 type ScriptSort struct { Mode *sortmode.SortMode `json:"mode,omitempty"` Nested *NestedSortValue `json:"nested,omitempty"` diff --git a/typedapi/types/scripttransform.go b/typedapi/types/scripttransform.go index bc880b9ea1..ada922bdf9 100644 --- a/typedapi/types/scripttransform.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ScriptTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Transform.ts#L36-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Transform.ts#L36-L44 type ScriptTransform struct { Id *string `json:"id,omitempty"` Lang *string `json:"lang,omitempty"` diff --git a/typedapi/types/scrollids.go b/typedapi/types/scrollids.go index 2762d3493a..1e26dc4e78 100644 --- a/typedapi/types/scrollids.go +++ b/typedapi/types/scrollids.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ScrollIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L56-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L56-L56 type ScrollIds []string type ScrollIdsVariant interface { diff --git a/typedapi/types/searchablesnapshotaction.go b/typedapi/types/searchablesnapshotaction.go index 718337c7e0..ed5df1b049 100644 --- a/typedapi/types/searchablesnapshotaction.go +++ b/typedapi/types/searchablesnapshotaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshotAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L128-L131 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L128-L131 type SearchableSnapshotAction struct { ForceMergeIndex *bool `json:"force_merge_index,omitempty"` SnapshotRepository string `json:"snapshot_repository"` diff --git a/typedapi/types/searchablesnapshots.go b/typedapi/types/searchablesnapshots.go index e0987ff7fc..5087ae8df7 100644 --- a/typedapi/types/searchablesnapshots.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshots type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L438-L442 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L438-L442 type SearchableSnapshots struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/searchaccess.go b/typedapi/types/searchaccess.go index d9a4db1d71..4dd7555b03 100644 --- a/typedapi/types/searchaccess.go +++ b/typedapi/types/searchaccess.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SearchAccess type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L454-L474 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L454-L474 type SearchAccess struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/searchapplication.go b/typedapi/types/searchapplication.go index 4dcfcba344..624c9a6550 100644 --- a/typedapi/types/searchapplication.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SearchApplication type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/_types/SearchApplication.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/_types/SearchApplication.ts#L24-L33 type SearchApplication struct { // AnalyticsCollectionName Analytics collection associated to the Search Application. AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"` diff --git a/typedapi/types/searchapplicationparameters.go b/typedapi/types/searchapplicationparameters.go index bd0368e04f..3b415706df 100644 --- a/typedapi/types/searchapplicationparameters.go +++ b/typedapi/types/searchapplicationparameters.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SearchApplicationParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/_types/SearchApplicationParameters.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/_types/SearchApplicationParameters.ts#L23-L36 type SearchApplicationParameters struct { // AnalyticsCollectionName Analytics collection associated to the Search Application. AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"` diff --git a/typedapi/types/searchapplicationtemplate.go b/typedapi/types/searchapplicationtemplate.go index 85590fee15..9eefe67a65 100644 --- a/typedapi/types/searchapplicationtemplate.go +++ b/typedapi/types/searchapplicationtemplate.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SearchApplicationTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/search_application/_types/SearchApplicationTemplate.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/search_application/_types/SearchApplicationTemplate.ts#L22-L27 type SearchApplicationTemplate struct { // Script The associated mustache template. Script Script `json:"script"` diff --git a/typedapi/types/searchasyoutypeproperty.go b/typedapi/types/searchasyoutypeproperty.go index bf4040dc2d..033618372e 100644 --- a/typedapi/types/searchasyoutypeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // SearchAsYouTypeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L228-L239 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L245-L256 type SearchAsYouTypeProperty struct { Analyzer *string `json:"analyzer,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/searchidle.go b/typedapi/types/searchidle.go index 1c3af4b7cd..c51cc7de83 100644 --- a/typedapi/types/searchidle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SearchIdle type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L253-L256 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L253-L256 type SearchIdle struct { After Duration `json:"after,omitempty"` } diff --git a/typedapi/types/searchinput.go b/typedapi/types/searchinput.go index adfb6a0fbb..be2e140c4e 100644 --- a/typedapi/types/searchinput.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SearchInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L112-L116 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L112-L116 type SearchInput struct { Extract []string `json:"extract,omitempty"` Request SearchInputRequestDefinition `json:"request"` diff --git a/typedapi/types/searchinputrequestbody.go b/typedapi/types/searchinputrequestbody.go index 4bf3c69056..766e2245c7 100644 --- a/typedapi/types/searchinputrequestbody.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SearchInputRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L147-L149 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L147-L149 type SearchInputRequestBody struct { Query Query `json:"query"` } diff --git a/typedapi/types/searchinputrequestdefinition.go b/typedapi/types/searchinputrequestdefinition.go index 1f26b05117..65c317893e 100644 --- a/typedapi/types/searchinputrequestdefinition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SearchInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L118-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L118-L125 type SearchInputRequestDefinition struct { Body *SearchInputRequestBody `json:"body,omitempty"` Indices []string `json:"indices,omitempty"` diff --git a/typedapi/types/searchprofile.go b/typedapi/types/searchprofile.go index 9d2b933108..9748549747 100644 --- a/typedapi/types/searchprofile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SearchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L136-L140 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L136-L140 type SearchProfile struct { Collector []Collector `json:"collector"` Query []QueryProfile `json:"query"` diff --git a/typedapi/types/searchshardsnodeattributes.go b/typedapi/types/searchshardsnodeattributes.go index 2cfe7b0879..d54ccb73a8 100644 --- a/typedapi/types/searchshardsnodeattributes.go +++ b/typedapi/types/searchshardsnodeattributes.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SearchShardsNodeAttributes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_shards/SearchShardsResponse.ts#L42-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search_shards/SearchShardsResponse.ts#L42-L60 type SearchShardsNodeAttributes struct { // Attributes Lists node attributes. Attributes map[string]string `json:"attributes"` diff --git a/typedapi/types/searchstats.go b/typedapi/types/searchstats.go index b23a489c7e..16dd0f246a 100644 --- a/typedapi/types/searchstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SearchStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L255-L274 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L255-L274 type SearchStats struct { FetchCurrent int64 `json:"fetch_current"` FetchTime Duration `json:"fetch_time,omitempty"` diff --git a/typedapi/types/searchtemplaterequestbody.go b/typedapi/types/searchtemplaterequestbody.go index a87bbf76f2..fc2417e317 100644 --- a/typedapi/types/searchtemplaterequestbody.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SearchTemplateRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L128-L145 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/searchtransform.go b/typedapi/types/searchtransform.go index e2a59464d0..345631bd35 100644 --- a/typedapi/types/searchtransform.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SearchTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Transform.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Transform.ts#L46-L49 type SearchTransform struct { Request SearchInputRequestDefinition `json:"request"` Timeout Duration `json:"timeout"` diff --git a/typedapi/types/security.go b/typedapi/types/security.go index a2526738dd..9c546a9355 100644 --- a/typedapi/types/security.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Security type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L444-L457 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L444-L457 type Security struct { Anonymous FeatureToggle `json:"anonymous"` ApiKeyService FeatureToggle `json:"api_key_service"` diff --git a/typedapi/types/securityrolemapping.go b/typedapi/types/securityrolemapping.go index ce8111580e..068ca2073f 100644 --- a/typedapi/types/securityrolemapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SecurityRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/RoleMapping.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/RoleMapping.ts#L25-L33 type SecurityRoleMapping struct { Enabled bool `json:"enabled"` Metadata Metadata `json:"metadata"` diff --git a/typedapi/types/securityroles.go b/typedapi/types/securityroles.go index 114daac24f..3d79ffdfd9 100644 --- a/typedapi/types/securityroles.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SecurityRoles type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L306-L310 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L306-L310 type SecurityRoles struct { Dls SecurityRolesDls `json:"dls"` File SecurityRolesFile `json:"file"` diff --git a/typedapi/types/securityrolesdls.go b/typedapi/types/securityrolesdls.go index 1a846dd432..25956b3bee 100644 --- a/typedapi/types/securityrolesdls.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SecurityRolesDls type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L318-L320 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L318-L320 type SecurityRolesDls struct { BitSetCache SecurityRolesDlsBitSetCache `json:"bit_set_cache"` } diff --git a/typedapi/types/securityrolesdlsbitsetcache.go b/typedapi/types/securityrolesdlsbitsetcache.go index 5d2a0adad7..0a7a0f0f64 100644 --- a/typedapi/types/securityrolesdlsbitsetcache.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesDlsBitSetCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L322-L326 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L322-L326 type SecurityRolesDlsBitSetCache struct { Count int `json:"count"` Memory ByteSize `json:"memory,omitempty"` diff --git a/typedapi/types/securityrolesfile.go b/typedapi/types/securityrolesfile.go index a893760645..85b0a6f87f 100644 --- a/typedapi/types/securityrolesfile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesFile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L328-L332 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L328-L332 type SecurityRolesFile struct { Dls bool `json:"dls"` Fls bool `json:"fls"` diff --git a/typedapi/types/securityrolesnative.go b/typedapi/types/securityrolesnative.go index e13fc29149..5d379066cb 100644 --- a/typedapi/types/securityrolesnative.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesNative type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L312-L316 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L312-L316 type SecurityRolesNative struct { Dls bool `json:"dls"` Fls bool `json:"fls"` diff --git a/typedapi/types/securitysettings.go b/typedapi/types/securitysettings.go index d89d782e21..7d99bac11f 100644 --- a/typedapi/types/securitysettings.go +++ b/typedapi/types/securitysettings.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SecuritySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/SecuritySettings.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/SecuritySettings.ts#L22-L24 type SecuritySettings struct { Index *IndexSettings `json:"index,omitempty"` } diff --git a/typedapi/types/segment.go b/typedapi/types/segment.go index da171ef134..9e9a36cb72 100644 --- a/typedapi/types/segment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Segment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/segments/types.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/segments/types.ts#L28-L38 type Segment struct { Attributes map[string]string `json:"attributes"` Committed bool `json:"committed"` diff --git a/typedapi/types/segmentsrecord.go b/typedapi/types/segmentsrecord.go index 426aa4386f..333aadbc75 100644 --- a/typedapi/types/segmentsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SegmentsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/segments/types.ts#L22-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/segmentsstats.go b/typedapi/types/segmentsstats.go index cb8a00e952..c25a6f2053 100644 --- a/typedapi/types/segmentsstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SegmentsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L276-L369 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L276-L369 type SegmentsStats struct { // Count Total number of segments across all shards assigned to selected nodes. Count int `json:"count"` diff --git a/typedapi/types/selectoption.go b/typedapi/types/selectoption.go index 90dd4953eb..037d436771 100644 --- a/typedapi/types/selectoption.go +++ b/typedapi/types/selectoption.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SelectOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L25-L28 type SelectOption struct { Label string `json:"label"` Value ScalarValue `json:"value"` diff --git a/typedapi/types/semanticquery.go b/typedapi/types/semanticquery.go index 6770541b76..ae9e596c3b 100644 --- a/typedapi/types/semanticquery.go +++ b/typedapi/types/semanticquery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SemanticQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/SemanticQuery.ts#L22-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/SemanticQuery.ts#L22-L30 type SemanticQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/semantictextproperty.go b/typedapi/types/semantictextproperty.go index d7ab616cdc..e55018d656 100644 --- a/typedapi/types/semantictextproperty.go +++ b/typedapi/types/semantictextproperty.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,8 +30,14 @@ import ( // SemanticTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L210-L226 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L220-L243 type SemanticTextProperty struct { + // ChunkingSettings Settings for chunking text into smaller passages. If specified, these will + // override the + // chunking settings sent in the inference endpoint associated with + // inference_id. If chunking settings are updated, + // they will not be applied to existing documents until they are reindexed. + ChunkingSettings *ChunkingSettings `json:"chunking_settings,omitempty"` // InferenceId Inference endpoint that will be used to generate embeddings for the field. // This parameter cannot be updated. Use the Create inference API to create the // endpoint. @@ -63,6 +69,11 @@ func (s *SemanticTextProperty) UnmarshalJSON(data []byte) error { switch t { + case "chunking_settings": + if err := dec.Decode(&s.ChunkingSettings); err != nil { + return fmt.Errorf("%s | %w", "ChunkingSettings", err) + } + case "inference_id": if err := dec.Decode(&s.InferenceId); err != nil { return fmt.Errorf("%s | %w", "InferenceId", err) @@ -95,6 +106,7 @@ func (s *SemanticTextProperty) UnmarshalJSON(data []byte) error { func (s SemanticTextProperty) MarshalJSON() ([]byte, error) { type innerSemanticTextProperty SemanticTextProperty tmp := innerSemanticTextProperty{ + ChunkingSettings: s.ChunkingSettings, InferenceId: s.InferenceId, Meta: s.Meta, SearchInferenceId: s.SearchInferenceId, diff --git a/typedapi/types/serbiananalyzer.go b/typedapi/types/serbiananalyzer.go index 39a7b0ba40..0d59bfbcd0 100644 --- a/typedapi/types/serbiananalyzer.go +++ b/typedapi/types/serbiananalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SerbianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L262-L267 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L262-L267 type SerbianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/serialdifferencingaggregation.go b/typedapi/types/serialdifferencingaggregation.go index e712e26e4c..b49311a3d8 100644 --- a/typedapi/types/serialdifferencingaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SerialDifferencingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L399-L408 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L399-L408 type SerialDifferencingAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/serializedclusterstate.go b/typedapi/types/serializedclusterstate.go index 57a5667695..f51b1aeac8 100644 --- a/typedapi/types/serializedclusterstate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SerializedClusterState type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L232-L238 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L232-L238 type SerializedClusterState struct { Diffs *SerializedClusterStateDetail `json:"diffs,omitempty"` // FullStates Number of published cluster states. diff --git a/typedapi/types/serializedclusterstatedetail.go b/typedapi/types/serializedclusterstatedetail.go index 869ab62c99..5f7d97d367 100644 --- a/typedapi/types/serializedclusterstatedetail.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SerializedClusterStateDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L240-L246 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/servicetoken.go b/typedapi/types/servicetoken.go index a121d9d88c..804f52a877 100644 --- a/typedapi/types/servicetoken.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ServiceToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/create_service_token/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/create_service_token/types.ts#L22-L25 type ServiceToken struct { Name string `json:"name"` Value string `json:"value"` diff --git a/typedapi/types/setpriorityaction.go b/typedapi/types/setpriorityaction.go index 6d9e5e50b6..0a808948c2 100644 --- a/typedapi/types/setpriorityaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SetPriorityAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L95-L97 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L95-L97 type SetPriorityAction struct { Priority *int `json:"priority,omitempty"` } diff --git a/typedapi/types/setprocessor.go b/typedapi/types/setprocessor.go index bc14cedf7e..5b55799cdb 100644 --- a/typedapi/types/setprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SetProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1426-L1460 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1444-L1478 type SetProcessor struct { // CopyFrom The origin field which will be copied to `field`, cannot set `value` // simultaneously. diff --git a/typedapi/types/setsecurityuserprocessor.go b/typedapi/types/setsecurityuserprocessor.go index 9a384c1023..3419ad8711 100644 --- a/typedapi/types/setsecurityuserprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SetSecurityUserProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1462-L1471 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1480-L1489 type SetSecurityUserProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/settings.go b/typedapi/types/settings.go index 7258105ddf..69abdb4f0b 100644 --- a/typedapi/types/settings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Settings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L98-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/settingsanalyze.go b/typedapi/types/settingsanalyze.go index e27883b1e0..b1d4e58dd8 100644 --- a/typedapi/types/settingsanalyze.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SettingsAnalyze type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L243-L246 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L243-L246 type SettingsAnalyze struct { MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` } diff --git a/typedapi/types/settingshighlight.go b/typedapi/types/settingshighlight.go index 1c61cad65b..a4e0bb6b8b 100644 --- a/typedapi/types/settingshighlight.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SettingsHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L238-L241 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L238-L241 type SettingsHighlight struct { MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"` } diff --git a/typedapi/types/settingsquerystring.go b/typedapi/types/settingsquerystring.go index cbd1fe16fb..941fd2942f 100644 --- a/typedapi/types/settingsquerystring.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SettingsQueryString type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L258-L260 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L258-L260 type SettingsQueryString struct { Lenient Stringifiedboolean `json:"lenient"` } diff --git a/typedapi/types/settingssearch.go b/typedapi/types/settingssearch.go index c0e479f0a0..25486362bc 100644 --- a/typedapi/types/settingssearch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SettingsSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L248-L251 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L248-L251 type SettingsSearch struct { Idle *SearchIdle `json:"idle,omitempty"` Slowlog *SlowlogSettings `json:"slowlog,omitempty"` diff --git a/typedapi/types/settingssimilarity.go b/typedapi/types/settingssimilarity.go index 930b30fcad..e4a1606c6e 100644 --- a/typedapi/types/settingssimilarity.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ package types // SettingsSimilarityLmj // SettingsSimilarityScripted // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L178-L190 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L178-L190 type SettingsSimilarity any type SettingsSimilarityVariant interface { diff --git a/typedapi/types/settingssimilaritybm25.go b/typedapi/types/settingssimilaritybm25.go index 2b70430496..da90d51ef9 100644 --- a/typedapi/types/settingssimilaritybm25.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityBm25 type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L196-L201 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L196-L201 type SettingsSimilarityBm25 struct { B *Float64 `json:"b,omitempty"` DiscountOverlaps *bool `json:"discount_overlaps,omitempty"` diff --git a/typedapi/types/settingssimilarityboolean.go b/typedapi/types/settingssimilarityboolean.go index 702a117a9c..c66161003f 100644 --- a/typedapi/types/settingssimilarityboolean.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityBoolean type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L192-L194 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L192-L194 type SettingsSimilarityBoolean struct { Type string `json:"type,omitempty"` } diff --git a/typedapi/types/settingssimilaritydfi.go b/typedapi/types/settingssimilaritydfi.go index 5bcb4bce47..aefed909d3 100644 --- a/typedapi/types/settingssimilaritydfi.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -28,7 +28,7 @@ import ( // SettingsSimilarityDfi type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L203-L206 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L203-L206 type SettingsSimilarityDfi struct { IndependenceMeasure dfiindependencemeasure.DFIIndependenceMeasure `json:"independence_measure"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/settingssimilaritydfr.go b/typedapi/types/settingssimilaritydfr.go index d4aae8ec27..465633bc64 100644 --- a/typedapi/types/settingssimilaritydfr.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SettingsSimilarityDfr type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L208-L213 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L208-L213 type SettingsSimilarityDfr struct { AfterEffect dfraftereffect.DFRAfterEffect `json:"after_effect"` BasicModel dfrbasicmodel.DFRBasicModel `json:"basic_model"` diff --git a/typedapi/types/settingssimilarityib.go b/typedapi/types/settingssimilarityib.go index 9e52d0a8fe..a7ece13d1f 100644 --- a/typedapi/types/settingssimilarityib.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SettingsSimilarityIb type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L215-L220 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L215-L220 type SettingsSimilarityIb struct { Distribution ibdistribution.IBDistribution `json:"distribution"` Lambda iblambda.IBLambda `json:"lambda"` diff --git a/typedapi/types/settingssimilaritylmd.go b/typedapi/types/settingssimilaritylmd.go index 120c0a500d..f724ed80b9 100644 --- a/typedapi/types/settingssimilaritylmd.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmd type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L222-L225 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L222-L225 type SettingsSimilarityLmd struct { Mu *Float64 `json:"mu,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/settingssimilaritylmj.go b/typedapi/types/settingssimilaritylmj.go index 7d19d6ca68..d104170521 100644 --- a/typedapi/types/settingssimilaritylmj.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmj type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L227-L230 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L227-L230 type SettingsSimilarityLmj struct { Lambda *Float64 `json:"lambda,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/settingssimilarityscripted.go b/typedapi/types/settingssimilarityscripted.go index c530f23147..4d7b703c94 100644 --- a/typedapi/types/settingssimilarityscripted.go +++ b/typedapi/types/settingssimilarityscripted.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityScripted type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L232-L236 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L232-L236 type SettingsSimilarityScripted struct { Script Script `json:"script"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/shapefieldquery.go b/typedapi/types/shapefieldquery.go index 35a52ea025..c327e1170b 100644 --- a/typedapi/types/shapefieldquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // ShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L383-L396 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L383-L396 type ShapeFieldQuery struct { // IndexedShape Queries using a pre-indexed shape. IndexedShape *FieldLookup `json:"indexed_shape,omitempty"` diff --git a/typedapi/types/shapeproperty.go b/typedapi/types/shapeproperty.go index 59374e7b50..d4a35e3449 100644 --- a/typedapi/types/shapeproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // ShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/geo.ts#L73-L85 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/geo.ts#L74-L86 type ShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/shapequery.go b/typedapi/types/shapequery.go index 265015128c..efd1cd51c4 100644 --- a/typedapi/types/shapequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L367-L381 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L367-L381 type ShapeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/shardcommit.go b/typedapi/types/shardcommit.go index 91760cfbc4..7528e8326c 100644 --- a/typedapi/types/shardcommit.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardCommit type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L112-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L112-L117 type ShardCommit struct { Generation int `json:"generation"` Id string `json:"id"` diff --git a/typedapi/types/shardfailure.go b/typedapi/types/shardfailure.go index bb45c90fa9..618faebd64 100644 --- a/typedapi/types/shardfailure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Errors.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Errors.ts#L52-L58 type ShardFailure struct { Index *string `json:"index,omitempty"` Node *string `json:"node,omitempty"` diff --git a/typedapi/types/shardfilesizeinfo.go b/typedapi/types/shardfilesizeinfo.go index 541da40781..5ccdc0ab7e 100644 --- a/typedapi/types/shardfilesizeinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardFileSizeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L124-L131 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/shardhealthstats.go b/typedapi/types/shardhealthstats.go index 0fe244f274..ec6f850fe6 100644 --- a/typedapi/types/shardhealthstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ShardHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/health/types.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/health/types.ts#L37-L45 type ShardHealthStats struct { ActiveShards int `json:"active_shards"` InitializingShards int `json:"initializing_shards"` diff --git a/typedapi/types/shardlease.go b/typedapi/types/shardlease.go index ff6e1521a3..f71ba9adcc 100644 --- a/typedapi/types/shardlease.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L133-L138 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L133-L138 type ShardLease struct { Id string `json:"id"` RetainingSeqNo int64 `json:"retaining_seq_no"` diff --git a/typedapi/types/shardmigrationstatus.go b/typedapi/types/shardmigrationstatus.go index a3223b2080..eef82be272 100644 --- a/typedapi/types/shardmigrationstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // ShardMigrationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54 type ShardMigrationStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } diff --git a/typedapi/types/shardpath.go b/typedapi/types/shardpath.go index 5401cc3e6b..ad7f21e943 100644 --- a/typedapi/types/shardpath.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L140-L144 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/shardprofile.go b/typedapi/types/shardprofile.go index 963dbcca95..50a8567bf5 100644 --- a/typedapi/types/shardprofile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/profile.ts#L142-L152 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/profile.ts#L142-L152 type ShardProfile struct { Aggregations []AggregationProfile `json:"aggregations"` Cluster string `json:"cluster"` diff --git a/typedapi/types/shardquerycache.go b/typedapi/types/shardquerycache.go index 3f23518f9a..2bca25286a 100644 --- a/typedapi/types/shardquerycache.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardQueryCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L146-L154 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L146-L154 type ShardQueryCache struct { CacheCount int64 `json:"cache_count"` CacheSize int64 `json:"cache_size"` diff --git a/typedapi/types/shardrecovery.go b/typedapi/types/shardrecovery.go index 449e7af04a..cc69a19545 100644 --- a/typedapi/types/shardrecovery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L118-L135 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/recovery/types.ts#L118-L135 type ShardRecovery struct { Id int64 `json:"id"` Index RecoveryIndexStatus `json:"index"` diff --git a/typedapi/types/shardretentionleases.go b/typedapi/types/shardretentionleases.go index c7e41ff21b..89eb77a318 100644 --- a/typedapi/types/shardretentionleases.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardRetentionLeases type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L156-L160 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L156-L160 type ShardRetentionLeases struct { Leases []ShardLease `json:"leases"` PrimaryTerm int64 `json:"primary_term"` diff --git a/typedapi/types/shardrouting.go b/typedapi/types/shardrouting.go index 4731db94ea..9e3a7f11f7 100644 --- a/typedapi/types/shardrouting.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ShardRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L162-L167 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L162-L167 type ShardRouting struct { Node string `json:"node"` Primary bool `json:"primary"` diff --git a/typedapi/types/shardsavailabilityindicator.go b/typedapi/types/shardsavailabilityindicator.go index 97352bb09d..c80f3f8637 100644 --- a/typedapi/types/shardsavailabilityindicator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ShardsAvailabilityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L105-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L105-L109 type ShardsAvailabilityIndicator struct { Details *ShardsAvailabilityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/shardsavailabilityindicatordetails.go b/typedapi/types/shardsavailabilityindicatordetails.go index ebbdf3afbc..6ecd11b723 100644 --- a/typedapi/types/shardsavailabilityindicatordetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardsAvailabilityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L110-L121 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L110-L121 type ShardsAvailabilityIndicatorDetails struct { CreatingPrimaries int64 `json:"creating_primaries"` CreatingReplicas int64 `json:"creating_replicas"` diff --git a/typedapi/types/shardscapacityindicator.go b/typedapi/types/shardscapacityindicator.go index b09792f3f1..61d068a817 100644 --- a/typedapi/types/shardscapacityindicator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // ShardsCapacityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L190-L194 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L190-L194 type ShardsCapacityIndicator struct { Details *ShardsCapacityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/shardscapacityindicatordetails.go b/typedapi/types/shardscapacityindicatordetails.go index 6145e9362b..3838507711 100644 --- a/typedapi/types/shardscapacityindicatordetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ShardsCapacityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L196-L199 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L196-L199 type ShardsCapacityIndicatorDetails struct { Data ShardsCapacityIndicatorTierDetail `json:"data"` Frozen ShardsCapacityIndicatorTierDetail `json:"frozen"` diff --git a/typedapi/types/shardscapacityindicatortierdetail.go b/typedapi/types/shardscapacityindicatortierdetail.go index 321d1ee1f6..b5c4de1ad9 100644 --- a/typedapi/types/shardscapacityindicatortierdetail.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardsCapacityIndicatorTierDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L201-L204 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L201-L204 type ShardsCapacityIndicatorTierDetail struct { CurrentUsedShards *int `json:"current_used_shards,omitempty"` MaxShardsInCluster int `json:"max_shards_in_cluster"` diff --git a/typedapi/types/shardsegmentrouting.go b/typedapi/types/shardsegmentrouting.go index 49f89d364a..6ab3c662f1 100644 --- a/typedapi/types/shardsegmentrouting.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardSegmentRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/segments/types.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/segments/types.ts#L40-L44 type ShardSegmentRouting struct { Node string `json:"node"` Primary bool `json:"primary"` diff --git a/typedapi/types/shardsequencenumber.go b/typedapi/types/shardsequencenumber.go index aa36c379aa..1e4ad46822 100644 --- a/typedapi/types/shardsequencenumber.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardSequenceNumber type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L176-L180 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L176-L180 type ShardSequenceNumber struct { GlobalCheckpoint int64 `json:"global_checkpoint"` LocalCheckpoint int64 `json:"local_checkpoint"` diff --git a/typedapi/types/shardsrecord.go b/typedapi/types/shardsrecord.go index 4225c683b7..284de089fb 100644 --- a/typedapi/types/shardsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/shards/types.ts#L20-L427 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/shards/types.ts#L20-L427 type ShardsRecord struct { // BulkAvgSizeInBytes The average size in bytes of shard bulk operations. BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"` diff --git a/typedapi/types/shardssegment.go b/typedapi/types/shardssegment.go index a13cbdb66f..c8fecb8152 100644 --- a/typedapi/types/shardssegment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardsSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/segments/types.ts#L46-L51 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/shardsstatssummary.go b/typedapi/types/shardsstatssummary.go index 59aa63adb0..0dedbc3812 100644 --- a/typedapi/types/shardsstatssummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ShardsStatsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35 type ShardsStatsSummary struct { Incremental ShardsStatsSummaryItem `json:"incremental"` StartTimeInMillis int64 `json:"start_time_in_millis"` diff --git a/typedapi/types/shardsstatssummaryitem.go b/typedapi/types/shardsstatssummaryitem.go index 4505bdcc13..72d3da6b76 100644 --- a/typedapi/types/shardsstatssummaryitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardsStatsSummaryItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 type ShardsStatsSummaryItem struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` diff --git a/typedapi/types/shardstatistics.go b/typedapi/types/shardstatistics.go index 7790801f72..19f9affffe 100644 --- a/typedapi/types/shardstatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ShardStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L54-L69 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L54-L69 type ShardStatistics struct { // Failed The number of shards the operation or search attempted to run on but failed. Failed uint `json:"failed"` diff --git a/typedapi/types/shardstore.go b/typedapi/types/shardstore.go index 20a2cb93a5..a3de00cf85 100644 --- a/typedapi/types/shardstore.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // ShardStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shard_stores/types.ts#L29-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shard_stores/types.ts#L29-L36 type ShardStore struct { Allocation shardstoreallocation.ShardStoreAllocation `json:"allocation"` AllocationId *string `json:"allocation_id,omitempty"` diff --git a/typedapi/types/shardstoreexception.go b/typedapi/types/shardstoreexception.go index 22ba801920..2c4c5a9352 100644 --- a/typedapi/types/shardstoreexception.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardStoreException type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shard_stores/types.ts#L53-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shard_stores/types.ts#L53-L56 type ShardStoreException struct { Reason string `json:"reason"` Type string `json:"type"` diff --git a/typedapi/types/shardstoreindex.go b/typedapi/types/shardstoreindex.go index 40bdc4a4b4..eeced2884f 100644 --- a/typedapi/types/shardstoreindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ShardStoreIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search_shards/SearchShardsResponse.ts#L62-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search_shards/SearchShardsResponse.ts#L62-L65 type ShardStoreIndex struct { Aliases []string `json:"aliases,omitempty"` Filter *Query `json:"filter,omitempty"` diff --git a/typedapi/types/shardstorenode.go b/typedapi/types/shardstorenode.go index 89c55f91c2..c84a2d0c70 100644 --- a/typedapi/types/shardstorenode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardStoreNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shard_stores/types.ts#L38-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shard_stores/types.ts#L38-L45 type ShardStoreNode struct { Attributes map[string]string `json:"attributes"` EphemeralId *string `json:"ephemeral_id,omitempty"` diff --git a/typedapi/types/shardstorewrapper.go b/typedapi/types/shardstorewrapper.go index 0723dd9378..9552cd8759 100644 --- a/typedapi/types/shardstorewrapper.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // ShardStoreWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/shard_stores/types.ts#L58-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/shard_stores/types.ts#L58-L60 type ShardStoreWrapper struct { Stores []ShardStore `json:"stores"` } diff --git a/typedapi/types/shardstotalstats.go b/typedapi/types/shardstotalstats.go index 96c7e25fbd..75af841e32 100644 --- a/typedapi/types/shardstotalstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShardsTotalStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/stats/types.ts#L182-L184 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/stats/types.ts#L182-L184 type ShardsTotalStats struct { TotalCount int64 `json:"total_count"` } diff --git a/typedapi/types/shared.go b/typedapi/types/shared.go index 03ab4387fe..bd0cfb819c 100644 --- a/typedapi/types/shared.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Shared type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/sharedfilesystemrepository.go b/typedapi/types/sharedfilesystemrepository.go index 61e8557286..0f1bd1a98d 100644 --- a/typedapi/types/sharedfilesystemrepository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SharedFileSystemRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L55-L58 type SharedFileSystemRepository struct { Settings SharedFileSystemRepositorySettings `json:"settings"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/sharedfilesystemrepositorysettings.go b/typedapi/types/sharedfilesystemrepositorysettings.go index e2215d102d..6aafa81a66 100644 --- a/typedapi/types/sharedfilesystemrepositorysettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SharedFileSystemRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L104-L108 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L104-L108 type SharedFileSystemRepositorySettings struct { ChunkSize ByteSize `json:"chunk_size,omitempty"` Compress *bool `json:"compress,omitempty"` diff --git a/typedapi/types/shingletokenfilter.go b/typedapi/types/shingletokenfilter.go index 7ed919593b..661423603d 100644 --- a/typedapi/types/shingletokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShingleTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L86-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L86-L94 type ShingleTokenFilter struct { FillerToken *string `json:"filler_token,omitempty"` MaxShingleSize string `json:"max_shingle_size,omitempty"` diff --git a/typedapi/types/shortnumberproperty.go b/typedapi/types/shortnumberproperty.go index 516aa4c8ea..34214db821 100644 --- a/typedapi/types/shortnumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // ShortNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L171-L174 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L181-L184 type ShortNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/shrinkaction.go b/typedapi/types/shrinkaction.go index b8882d67e5..3f41f43290 100644 --- a/typedapi/types/shrinkaction.go +++ b/typedapi/types/shrinkaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ShrinkAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L117-L121 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L117-L121 type ShrinkAction struct { AllowWriteAfterShrink *bool `json:"allow_write_after_shrink,omitempty"` MaxPrimaryShardSize ByteSize `json:"max_primary_shard_size,omitempty"` diff --git a/typedapi/types/significantlongtermsaggregate.go b/typedapi/types/significantlongtermsaggregate.go index 914b0e60a9..6c56ecf249 100644 --- a/typedapi/types/significantlongtermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SignificantLongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L668-L670 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L668-L670 type SignificantLongTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantLongTermsBucket `json:"buckets"` diff --git a/typedapi/types/significantlongtermsbucket.go b/typedapi/types/significantlongtermsbucket.go index 49d95d4689..654688d165 100644 --- a/typedapi/types/significantlongtermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // SignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L677-L680 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L677-L680 type SignificantLongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` diff --git a/typedapi/types/significantstringtermsaggregate.go b/typedapi/types/significantstringtermsaggregate.go index b478cb06f3..fde825e476 100644 --- a/typedapi/types/significantstringtermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SignificantStringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L682-L684 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L682-L684 type SignificantStringTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantStringTermsBucket `json:"buckets"` diff --git a/typedapi/types/significantstringtermsbucket.go b/typedapi/types/significantstringtermsbucket.go index 6953c7830e..06c61e541e 100644 --- a/typedapi/types/significantstringtermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // SignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L686-L688 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L686-L688 type SignificantStringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` diff --git a/typedapi/types/significanttermsaggregation.go b/typedapi/types/significanttermsaggregation.go index 8c386c4bde..83af6d9e52 100644 --- a/typedapi/types/significanttermsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SignificantTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L817-L884 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L817-L884 type SignificantTermsAggregation struct { // BackgroundFilter A background filter that can be used to focus in on significant terms within // a narrower context, instead of the entire index. diff --git a/typedapi/types/significanttextaggregation.go b/typedapi/types/significanttextaggregation.go index 05cc624e71..9f95cc6ad1 100644 --- a/typedapi/types/significanttextaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SignificantTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L886-L961 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L886-L961 type SignificantTextAggregation struct { // BackgroundFilter A background filter that can be used to focus in on significant terms within // a narrower context, instead of the entire index. diff --git a/typedapi/types/simpleanalyzer.go b/typedapi/types/simpleanalyzer.go index 875787a590..480c8275d6 100644 --- a/typedapi/types/simpleanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SimpleAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L320-L323 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L320-L323 type SimpleAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/simplemovingaverageaggregation.go b/typedapi/types/simplemovingaverageaggregation.go index 2afdb18fc9..1661d0b201 100644 --- a/typedapi/types/simplemovingaverageaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SimpleMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L273-L276 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L273-L276 type SimpleMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/simplepatternsplittokenizer.go b/typedapi/types/simplepatternsplittokenizer.go index 0f0749167a..f77ff7ddb0 100644 --- a/typedapi/types/simplepatternsplittokenizer.go +++ b/typedapi/types/simplepatternsplittokenizer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SimplePatternSplitTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L116-L119 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L116-L119 type SimplePatternSplitTokenizer struct { Pattern *string `json:"pattern,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/simplepatterntokenizer.go b/typedapi/types/simplepatterntokenizer.go index 01b54598d0..a2b4d6932e 100644 --- a/typedapi/types/simplepatterntokenizer.go +++ b/typedapi/types/simplepatterntokenizer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SimplePatternTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L111-L114 type SimplePatternTokenizer struct { Pattern *string `json:"pattern,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/simplequerystringflags.go b/typedapi/types/simplequerystringflags.go index 7baf1c54d8..20ff44da25 100644 --- a/typedapi/types/simplequerystringflags.go +++ b/typedapi/types/simplequerystringflags.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SimpleQueryStringFlags type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L723-L727 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L723-L727 type SimpleQueryStringFlags PipeSeparatedFlagsSimpleQueryStringFlag type SimpleQueryStringFlagsVariant interface { diff --git a/typedapi/types/simplequerystringquery.go b/typedapi/types/simplequerystringquery.go index d8d36c80e3..4c3d94977d 100644 --- a/typedapi/types/simplequerystringquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SimpleQueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/fulltext.ts#L786-L854 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/fulltext.ts#L786-L854 type SimpleQueryStringQuery struct { // AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string. AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"` diff --git a/typedapi/types/simplevalueaggregate.go b/typedapi/types/simplevalueaggregate.go index 7af5587bb8..308eb44cbc 100644 --- a/typedapi/types/simplevalueaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SimpleValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L238-L239 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L238-L239 type SimpleValueAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/simulatedactions.go b/typedapi/types/simulatedactions.go index f6c11e0cc8..82aab5b3d5 100644 --- a/typedapi/types/simulatedactions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SimulatedActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L90-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L90-L94 type SimulatedActions struct { Actions []string `json:"actions"` All *SimulatedActions `json:"all,omitempty"` diff --git a/typedapi/types/simulatedocumentresult.go b/typedapi/types/simulatedocumentresult.go index 621aad5f3a..78f899c436 100644 --- a/typedapi/types/simulatedocumentresult.go +++ b/typedapi/types/simulatedocumentresult.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SimulateDocumentResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Simulation.ts#L46-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Simulation.ts#L46-L50 type SimulateDocumentResult struct { Doc *DocumentSimulation `json:"doc,omitempty"` Error *ErrorCause `json:"error,omitempty"` diff --git a/typedapi/types/simulateingestdocumentresult.go b/typedapi/types/simulateingestdocumentresult.go index be3edf047a..4495e77667 100644 --- a/typedapi/types/simulateingestdocumentresult.go +++ b/typedapi/types/simulateingestdocumentresult.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SimulateIngestDocumentResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/simulate/ingest/SimulateIngestResponse.ts#L31-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/simulate/ingest/SimulateIngestResponse.ts#L31-L33 type SimulateIngestDocumentResult struct { Doc *IngestDocumentSimulation `json:"doc,omitempty"` } diff --git a/typedapi/types/sizefield.go b/typedapi/types/sizefield.go index 92b8c66c6c..1a86a14fd3 100644 --- a/typedapi/types/sizefield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SizeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/meta-fields.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/meta-fields.ts#L54-L56 type SizeField struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/sizehttphistogram.go b/typedapi/types/sizehttphistogram.go index f01322b27f..43a05f8bdb 100644 --- a/typedapi/types/sizehttphistogram.go +++ b/typedapi/types/sizehttphistogram.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SizeHttpHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L714-L718 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L714-L718 type SizeHttpHistogram struct { Count int64 `json:"count"` GeBytes *int64 `json:"ge_bytes,omitempty"` diff --git a/typedapi/types/slackaction.go b/typedapi/types/slackaction.go index c9533f017a..afade496b8 100644 --- a/typedapi/types/slackaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlackAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L91-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L91-L94 type SlackAction struct { Account *string `json:"account,omitempty"` Message SlackMessage `json:"message"` diff --git a/typedapi/types/slackattachment.go b/typedapi/types/slackattachment.go index edf78a65b4..3bfe9b246b 100644 --- a/typedapi/types/slackattachment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlackAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L101-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/slackattachmentfield.go b/typedapi/types/slackattachmentfield.go index f22280247c..0fae612087 100644 --- a/typedapi/types/slackattachmentfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlackAttachmentField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L119-L123 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L119-L123 type SlackAttachmentField struct { Int bool `json:"short"` Title string `json:"title"` diff --git a/typedapi/types/slackdynamicattachment.go b/typedapi/types/slackdynamicattachment.go index 82b4e53ee8..2cbd660afa 100644 --- a/typedapi/types/slackdynamicattachment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlackDynamicAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L125-L128 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L125-L128 type SlackDynamicAttachment struct { AttachmentTemplate SlackAttachment `json:"attachment_template"` ListPath string `json:"list_path"` diff --git a/typedapi/types/slackmessage.go b/typedapi/types/slackmessage.go index 38f29cc525..38ecf738ad 100644 --- a/typedapi/types/slackmessage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlackMessage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L130-L137 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L130-L137 type SlackMessage struct { Attachments []SlackAttachment `json:"attachments"` DynamicAttachments *SlackDynamicAttachment `json:"dynamic_attachments,omitempty"` diff --git a/typedapi/types/slackresult.go b/typedapi/types/slackresult.go index f0024cc00c..4665b901e0 100644 --- a/typedapi/types/slackresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlackResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L96-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L96-L99 type SlackResult struct { Account *string `json:"account,omitempty"` Message SlackMessage `json:"message"` diff --git a/typedapi/types/slicedscroll.go b/typedapi/types/slicedscroll.go index 7ab266d80c..a8c89909a2 100644 --- a/typedapi/types/slicedscroll.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlicedScroll type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/SlicedScroll.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/SlicedScroll.ts#L23-L27 type SlicedScroll struct { Field *string `json:"field,omitempty"` Id string `json:"id"` diff --git a/typedapi/types/slices.go b/typedapi/types/slices.go index 8d61efa61e..a402081e76 100644 --- a/typedapi/types/slices.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // int // slicescalculation.SlicesCalculation // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L368-L373 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L368-L373 type Slices any diff --git a/typedapi/types/slm.go b/typedapi/types/slm.go index 54d89a7d28..0403ca0eaf 100644 --- a/typedapi/types/slm.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Slm type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L459-L462 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L459-L462 type Slm struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/slmindicator.go b/typedapi/types/slmindicator.go index 33ce3a75b6..1b8417c49f 100644 --- a/typedapi/types/slmindicator.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L174-L178 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L174-L178 type SlmIndicator struct { Details *SlmIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/slmindicatordetails.go b/typedapi/types/slmindicatordetails.go index a465196783..6fda8f1fa4 100644 --- a/typedapi/types/slmindicatordetails.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L179-L183 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L179-L183 type SlmIndicatorDetails struct { Policies int64 `json:"policies"` SlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"slm_status"` diff --git a/typedapi/types/slmindicatorunhealthypolicies.go b/typedapi/types/slmindicatorunhealthypolicies.go index ddcd32a887..38846361aa 100644 --- a/typedapi/types/slmindicatorunhealthypolicies.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlmIndicatorUnhealthyPolicies type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L185-L188 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L185-L188 type SlmIndicatorUnhealthyPolicies struct { Count int64 `json:"count"` InvocationsSinceLastSuccess map[string]int64 `json:"invocations_since_last_success,omitempty"` diff --git a/typedapi/types/slmpolicy.go b/typedapi/types/slmpolicy.go index bd075ec936..62a511ac42 100644 --- a/typedapi/types/slmpolicy.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SLMPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/_types/SnapshotLifecycle.ts#L86-L92 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/_types/SnapshotLifecycle.ts#L86-L92 type SLMPolicy struct { Config *Configuration `json:"config,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/slowlogsettings.go b/typedapi/types/slowlogsettings.go index d2cd5e95f8..9bbbac9051 100644 --- a/typedapi/types/slowlogsettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L515-L520 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L515-L520 type SlowlogSettings struct { Level *string `json:"level,omitempty"` Reformat *bool `json:"reformat,omitempty"` diff --git a/typedapi/types/slowlogtresholdlevels.go b/typedapi/types/slowlogtresholdlevels.go index b3a9cd6b62..5c562b9a20 100644 --- a/typedapi/types/slowlogtresholdlevels.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SlowlogTresholdLevels type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L527-L532 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L527-L532 type SlowlogTresholdLevels struct { Debug Duration `json:"debug,omitempty"` Info Duration `json:"info,omitempty"` diff --git a/typedapi/types/slowlogtresholds.go b/typedapi/types/slowlogtresholds.go index 419febb54b..9a5fae30f6 100644 --- a/typedapi/types/slowlogtresholds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L522-L525 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L522-L525 type SlowlogTresholds struct { Fetch *SlowlogTresholdLevels `json:"fetch,omitempty"` Query *SlowlogTresholdLevels `json:"query,omitempty"` diff --git a/typedapi/types/smoothingmodelcontainer.go b/typedapi/types/smoothingmodelcontainer.go index 5f09f08f86..8e5cb6302c 100644 --- a/typedapi/types/smoothingmodelcontainer.go +++ b/typedapi/types/smoothingmodelcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // SmoothingModelContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L445-L461 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L445-L461 type SmoothingModelContainer struct { AdditionalSmoothingModelContainerProperty map[string]json.RawMessage `json:"-"` // Laplace A smoothing model that uses an additive smoothing where a constant (typically diff --git a/typedapi/types/snapshotindexstats.go b/typedapi/types/snapshotindexstats.go index 3461629d66..deab45fa53 100644 --- a/typedapi/types/snapshotindexstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SnapshotIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29 type SnapshotIndexStats struct { Shards map[string]SnapshotShardsStatus `json:"shards"` ShardsStats SnapshotShardsStats `json:"shards_stats"` diff --git a/typedapi/types/snapshotinfo.go b/typedapi/types/snapshotinfo.go index 668ba8db02..1b4636d0a2 100644 --- a/typedapi/types/snapshotinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SnapshotInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 type SnapshotInfo struct { DataStreams []string `json:"data_streams"` Duration Duration `json:"duration,omitempty"` diff --git a/typedapi/types/snapshotlifecycle.go b/typedapi/types/snapshotlifecycle.go index 63cfa0f3f5..a5114a4635 100644 --- a/typedapi/types/snapshotlifecycle.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SnapshotLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/_types/SnapshotLifecycle.ts#L38-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/_types/SnapshotLifecycle.ts#L38-L59 type SnapshotLifecycle struct { InProgress *InProgress `json:"in_progress,omitempty"` LastFailure *Invocation `json:"last_failure,omitempty"` diff --git a/typedapi/types/snapshotnodeinfo.go b/typedapi/types/snapshotnodeinfo.go index 9ff9deb833..1f12b4415f 100644 --- a/typedapi/types/snapshotnodeinfo.go +++ b/typedapi/types/snapshotnodeinfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SnapshotNodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113 type SnapshotNodeInfo struct { Id string `json:"id"` Name string `json:"name"` diff --git a/typedapi/types/snapshotresponseitem.go b/typedapi/types/snapshotresponseitem.go index 029f3c38b1..87a4ff659c 100644 --- a/typedapi/types/snapshotresponseitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SnapshotResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/get/SnapshotGetResponse.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/get/SnapshotGetResponse.ts#L44-L48 type SnapshotResponseItem struct { Error *ErrorCause `json:"error,omitempty"` Repository string `json:"repository"` diff --git a/typedapi/types/snapshotrestore.go b/typedapi/types/snapshotrestore.go index 5f07f508e0..73d65990b8 100644 --- a/typedapi/types/snapshotrestore.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SnapshotRestore type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/restore/SnapshotRestoreResponse.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/restore/SnapshotRestoreResponse.ts#L30-L34 type SnapshotRestore struct { Indices []string `json:"indices"` Shards ShardStatistics `json:"shards"` diff --git a/typedapi/types/snapshotshardfailure.go b/typedapi/types/snapshotshardfailure.go index 060d3a89e4..068cded11b 100644 --- a/typedapi/types/snapshotshardfailure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SnapshotShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L29 type SnapshotShardFailure struct { Index string `json:"index"` IndexUuid string `json:"index_uuid"` diff --git a/typedapi/types/snapshotshardsstats.go b/typedapi/types/snapshotshardsstats.go index af77d1d4fd..49ef726dbe 100644 --- a/typedapi/types/snapshotshardsstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SnapshotShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L29 type SnapshotShardsStats struct { Done int64 `json:"done"` Failed int64 `json:"failed"` diff --git a/typedapi/types/snapshotshardsstatus.go b/typedapi/types/snapshotshardsstatus.go index 884bbeaf2b..757c93bc28 100644 --- a/typedapi/types/snapshotshardsstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // SnapshotShardsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27 type SnapshotShardsStatus struct { Stage shardsstatsstage.ShardsStatsStage `json:"stage"` Stats ShardsStatsSummary `json:"stats"` diff --git a/typedapi/types/snapshotsrecord.go b/typedapi/types/snapshotsrecord.go index b5aad22428..6208c18da3 100644 --- a/typedapi/types/snapshotsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SnapshotsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/snapshots/types.ts#L24-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/snapshots/types.ts#L24-L96 type SnapshotsRecord struct { // Duration The time it took the snapshot process to complete, in time units. Duration Duration `json:"duration,omitempty"` diff --git a/typedapi/types/snapshotstats.go b/typedapi/types/snapshotstats.go index 882366986e..db266698ad 100644 --- a/typedapi/types/snapshotstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotStats.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotStats.ts#L23-L29 type SnapshotStats struct { Incremental FileCountSnapshotStats `json:"incremental"` StartTimeInMillis int64 `json:"start_time_in_millis"` diff --git a/typedapi/types/snowballanalyzer.go b/typedapi/types/snowballanalyzer.go index 8edddc83df..476a7df5e1 100644 --- a/typedapi/types/snowballanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // SnowballAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L325-L330 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L325-L330 type SnowballAnalyzer struct { Language snowballlanguage.SnowballLanguage `json:"language"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/snowballtokenfilter.go b/typedapi/types/snowballtokenfilter.go index 081b4cc72b..7b106db43e 100644 --- a/typedapi/types/snowballtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // SnowballTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L310-L313 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L310-L313 type SnowballTokenFilter struct { Language *snowballlanguage.SnowballLanguage `json:"language,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/softdeletes.go b/typedapi/types/softdeletes.go index ee5c4827eb..d9888afe5b 100644 --- a/typedapi/types/softdeletes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SoftDeletes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L51-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L51-L64 type SoftDeletes struct { // Enabled Indicates whether soft deletes are enabled on the index. Enabled *bool `json:"enabled,omitempty"` diff --git a/typedapi/types/soranianalyzer.go b/typedapi/types/soranianalyzer.go index 0c49523d24..1de7f5209c 100644 --- a/typedapi/types/soranianalyzer.go +++ b/typedapi/types/soranianalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SoraniAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L269-L274 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L269-L274 type SoraniAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/sort.go b/typedapi/types/sort.go index 1ee607729d..550f16c788 100644 --- a/typedapi/types/sort.go +++ b/typedapi/types/sort.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Sort type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L104-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L104-L104 type Sort []SortCombinations type SortVariant interface { diff --git a/typedapi/types/sortcombinations.go b/typedapi/types/sortcombinations.go index c121467710..12b4e05f8e 100644 --- a/typedapi/types/sortcombinations.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // SortOptions // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L98-L102 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L98-L102 type SortCombinations any type SortCombinationsVariant interface { diff --git a/typedapi/types/sortoptions.go b/typedapi/types/sortoptions.go index 51a347eec0..720eec4b52 100644 --- a/typedapi/types/sortoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // SortOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/sort.ts#L86-L96 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/sort.ts#L86-L96 type SortOptions struct { Doc_ *ScoreSort `json:"_doc,omitempty"` GeoDistance_ *GeoDistanceSort `json:"_geo_distance,omitempty"` diff --git a/typedapi/types/sortprocessor.go b/typedapi/types/sortprocessor.go index beb547bdd9..a2548b1226 100644 --- a/typedapi/types/sortprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SortProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1478-L1494 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1496-L1512 type SortProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/sourceconfig.go b/typedapi/types/sourceconfig.go index c7da3c08fe..8fa3fe501c 100644 --- a/typedapi/types/sourceconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // bool // SourceFilter // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/SourceFilter.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/SourceFilter.ts#L33-L37 type SourceConfig any type SourceConfigVariant interface { diff --git a/typedapi/types/sourceconfigparam.go b/typedapi/types/sourceconfigparam.go index b98f20f5c6..dd85848338 100644 --- a/typedapi/types/sourceconfigparam.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // bool // []string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/SourceFilter.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/SourceFilter.ts#L39-L45 type SourceConfigParam any diff --git a/typedapi/types/sourcefield.go b/typedapi/types/sourcefield.go index 004be63538..bf26719a37 100644 --- a/typedapi/types/sourcefield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SourceField type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/meta-fields.ts#L58-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/sourcefilter.go b/typedapi/types/sourcefilter.go index cad773e498..965165c92b 100644 --- a/typedapi/types/sourcefilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SourceFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/SourceFilter.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/SourceFilter.ts#L23-L31 type SourceFilter struct { Excludes []string `json:"excludes,omitempty"` Includes []string `json:"includes,omitempty"` diff --git a/typedapi/types/sourceindex.go b/typedapi/types/sourceindex.go index 7bf7db19f6..2366c18916 100644 --- a/typedapi/types/sourceindex.go +++ b/typedapi/types/sourceindex.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SourceIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52 type SourceIndex struct { Index string `json:"index"` } diff --git a/typedapi/types/sourceonlyrepository.go b/typedapi/types/sourceonlyrepository.go index d9c80711d0..3140e1278d 100644 --- a/typedapi/types/sourceonlyrepository.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SourceOnlyRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L65-L68 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L65-L68 type SourceOnlyRepository struct { Settings SourceOnlyRepositorySettings `json:"settings"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/sourceonlyrepositorysettings.go b/typedapi/types/sourceonlyrepositorysettings.go index 9773ab12cf..91f09cd53f 100644 --- a/typedapi/types/sourceonlyrepositorysettings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SourceOnlyRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotRepository.ts#L117-L124 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/_types/SnapshotRepository.ts#L117-L124 type SourceOnlyRepositorySettings struct { ChunkSize ByteSize `json:"chunk_size,omitempty"` Compress *bool `json:"compress,omitempty"` diff --git a/typedapi/types/spancontainingquery.go b/typedapi/types/spancontainingquery.go index aa630e97a7..b09c16edda 100644 --- a/typedapi/types/spancontainingquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanContainingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L25-L39 type SpanContainingQuery struct { // Big Can be any span query. // Matching spans from `big` that contain matches from `little` are returned. diff --git a/typedapi/types/spanfieldmaskingquery.go b/typedapi/types/spanfieldmaskingquery.go index 44bae1d507..786c0e2ced 100644 --- a/typedapi/types/spanfieldmaskingquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanFieldMaskingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L41-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L41-L47 type SpanFieldMaskingQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spanfirstquery.go b/typedapi/types/spanfirstquery.go index 406cffdaf4..0a40f82851 100644 --- a/typedapi/types/spanfirstquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanFirstQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L49-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L49-L61 type SpanFirstQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spangapquery.go b/typedapi/types/spangapquery.go index 10cd83d0a4..a0d3c2fa26 100644 --- a/typedapi/types/spangapquery.go +++ b/typedapi/types/spangapquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SpanGapQuery type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L63-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L63-L65 type SpanGapQuery map[string]int type SpanGapQueryVariant interface { diff --git a/typedapi/types/spanishanalyzer.go b/typedapi/types/spanishanalyzer.go index 826864696b..bd19ce08f5 100644 --- a/typedapi/types/spanishanalyzer.go +++ b/typedapi/types/spanishanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L276-L281 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L276-L281 type SpanishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/spanmultitermquery.go b/typedapi/types/spanmultitermquery.go index 042141a045..0e733c21e1 100644 --- a/typedapi/types/spanmultitermquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanMultiTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L67-L75 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L67-L75 type SpanMultiTermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spannearquery.go b/typedapi/types/spannearquery.go index 11799f8c66..f3f69e1f93 100644 --- a/typedapi/types/spannearquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanNearQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L77-L93 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L77-L93 type SpanNearQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spannotquery.go b/typedapi/types/spannotquery.go index 64c0ab6949..07b93ddce7 100644 --- a/typedapi/types/spannotquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanNotQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L95-L122 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L95-L122 type SpanNotQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spanorquery.go b/typedapi/types/spanorquery.go index f8c732f9ee..95776f59fe 100644 --- a/typedapi/types/spanorquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanOrQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L124-L132 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L124-L132 type SpanOrQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spanquery.go b/typedapi/types/spanquery.go index bcfbadfeaf..d37f06308f 100644 --- a/typedapi/types/spanquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SpanQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L158-L200 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L158-L200 type SpanQuery struct { AdditionalSpanQueryProperty map[string]json.RawMessage `json:"-"` // SpanContaining Accepts a list of span queries, but only returns those spans which also match diff --git a/typedapi/types/spantermquery.go b/typedapi/types/spantermquery.go index fbac3c4f96..f2586a6cd7 100644 --- a/typedapi/types/spantermquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L134-L140 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L134-L140 type SpanTermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spanwithinquery.go b/typedapi/types/spanwithinquery.go index df778c84d5..4cf1d05e52 100644 --- a/typedapi/types/spanwithinquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SpanWithinQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/span.ts#L142-L156 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/span.ts#L142-L156 type SpanWithinQuery struct { // Big Can be any span query. // Matching spans from `little` that are enclosed within `big` are returned. diff --git a/typedapi/types/sparseembeddingresult.go b/typedapi/types/sparseembeddingresult.go index dd4534c508..3a4ae4cd60 100644 --- a/typedapi/types/sparseembeddingresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SparseEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Results.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Results.ts#L36-L38 type SparseEmbeddingResult struct { Embedding SparseVector `json:"embedding"` } diff --git a/typedapi/types/sparsevector.go b/typedapi/types/sparsevector.go index 12ed9d991d..cb4df7fa50 100644 --- a/typedapi/types/sparsevector.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SparseVector type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Results.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Results.ts#L24-L28 type SparseVector map[string]float32 diff --git a/typedapi/types/sparsevectorproperty.go b/typedapi/types/sparsevectorproperty.go index 5527bc541b..601c17194f 100644 --- a/typedapi/types/sparsevectorproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // SparseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L206-L208 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L216-L218 type SparseVectorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/sparsevectorquery.go b/typedapi/types/sparsevectorquery.go index 29c7de5d58..6e8508c4fc 100644 --- a/typedapi/types/sparsevectorquery.go +++ b/typedapi/types/sparsevectorquery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SparseVectorQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L80 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L80 type SparseVectorQuery struct { AdditionalSparseVectorQueryProperty map[string]json.RawMessage `json:"-"` // Boost Floating point number used to decrease or increase the relevance scores of diff --git a/typedapi/types/splitprocessor.go b/typedapi/types/splitprocessor.go index 2342a5fea4..e07aa315a2 100644 --- a/typedapi/types/splitprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SplitProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1496-L1521 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1514-L1539 type SplitProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/sql.go b/typedapi/types/sql.go index 0ce4acfc90..21d03d6ced 100644 --- a/typedapi/types/sql.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Sql type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L396-L399 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L396-L399 type Sql struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/ssl.go b/typedapi/types/ssl.go index 3aa0dbec13..c79232c88a 100644 --- a/typedapi/types/ssl.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Ssl type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L401-L404 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L401-L404 type Ssl struct { Http FeatureToggle `json:"http"` Transport FeatureToggle `json:"transport"` diff --git a/typedapi/types/stagnatingbackingindices.go b/typedapi/types/stagnatingbackingindices.go index d8e2c2512c..7d1d52e5c9 100644 --- a/typedapi/types/stagnatingbackingindices.go +++ b/typedapi/types/stagnatingbackingindices.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StagnatingBackingIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/health_report/types.ts#L157-L161 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/health_report/types.ts#L157-L161 type StagnatingBackingIndices struct { FirstOccurrenceTimestamp int64 `json:"first_occurrence_timestamp"` IndexName string `json:"index_name"` diff --git a/typedapi/types/standardanalyzer.go b/typedapi/types/standardanalyzer.go index d8ad59a490..499f7a389e 100644 --- a/typedapi/types/standardanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StandardAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L332-L336 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L332-L336 type StandardAnalyzer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/standarddeviationbounds.go b/typedapi/types/standarddeviationbounds.go index 0be0223033..f41f13a62b 100644 --- a/typedapi/types/standarddeviationbounds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // StandardDeviationBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L281-L288 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L281-L288 type StandardDeviationBounds struct { Lower *Float64 `json:"lower,omitempty"` LowerPopulation *Float64 `json:"lower_population,omitempty"` diff --git a/typedapi/types/standarddeviationboundsasstring.go b/typedapi/types/standarddeviationboundsasstring.go index b91d63c00e..11ecfbcde4 100644 --- a/typedapi/types/standarddeviationboundsasstring.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StandardDeviationBoundsAsString type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L290-L297 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L290-L297 type StandardDeviationBoundsAsString struct { Lower string `json:"lower"` LowerPopulation string `json:"lower_population"` diff --git a/typedapi/types/standardretriever.go b/typedapi/types/standardretriever.go index 86dde729cf..4c7895b514 100644 --- a/typedapi/types/standardretriever.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StandardRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Retriever.ts#L51-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Retriever.ts#L51-L62 type StandardRetriever struct { // Collapse Collapses the top documents by a specified key into a single top document per // key. diff --git a/typedapi/types/standardtokenizer.go b/typedapi/types/standardtokenizer.go index 2b1412a8c3..9daaa26dc4 100644 --- a/typedapi/types/standardtokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StandardTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L121-L124 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L121-L124 type StandardTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/statistics.go b/typedapi/types/statistics.go index e567d1615a..d2bb1ed9b2 100644 --- a/typedapi/types/statistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Statistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/slm/_types/SnapshotLifecycle.ts#L61-L84 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/slm/_types/SnapshotLifecycle.ts#L61-L84 type Statistics struct { Policy *string `json:"policy,omitempty"` RetentionDeletionTime Duration `json:"retention_deletion_time,omitempty"` diff --git a/typedapi/types/stats.go b/typedapi/types/stats.go index 72670eed40..fdaac3b2fb 100644 --- a/typedapi/types/stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // Stats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L30-L114 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/statsaggregate.go b/typedapi/types/statsaggregate.go index cf5f032330..6b5a1fd445 100644 --- a/typedapi/types/statsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L257-L273 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L257-L273 type StatsAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` diff --git a/typedapi/types/statsaggregation.go b/typedapi/types/statsaggregation.go index c0fdbf6c32..5ea39fc275 100644 --- a/typedapi/types/statsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L291-L291 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L291-L291 type StatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/statsbucketaggregate.go b/typedapi/types/statsbucketaggregate.go index fcb7455930..6afa9f273a 100644 --- a/typedapi/types/statsbucketaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L275-L279 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L275-L279 type StatsBucketAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` diff --git a/typedapi/types/statsbucketaggregation.go b/typedapi/types/statsbucketaggregation.go index 9389499101..b407a59793 100644 --- a/typedapi/types/statsbucketaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // StatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L410-L410 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L410-L410 type StatsBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/status.go b/typedapi/types/status.go index e43fdec1d5..e6d3575fce 100644 --- a/typedapi/types/status.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Status type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/_types/SnapshotStatus.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/statuserror.go b/typedapi/types/statuserror.go index 62d3be185b..36b8fb96ed 100644 --- a/typedapi/types/statuserror.go +++ b/typedapi/types/statuserror.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StatusError type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47 type StatusError struct { Index string `json:"index"` Message string `json:"message"` diff --git a/typedapi/types/statusinprogress.go b/typedapi/types/statusinprogress.go index 39c348ed09..c4dca3de91 100644 --- a/typedapi/types/statusinprogress.go +++ b/typedapi/types/statusinprogress.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StatusInProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42 type StatusInProgress struct { Index string `json:"index"` ReindexedDocCount int64 `json:"reindexed_doc_count"` diff --git a/typedapi/types/stemmeroverridetokenfilter.go b/typedapi/types/stemmeroverridetokenfilter.go index a14af5dfb1..8540ea5610 100644 --- a/typedapi/types/stemmeroverridetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StemmerOverrideTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L315-L319 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L315-L319 type StemmerOverrideTokenFilter struct { Rules []string `json:"rules,omitempty"` RulesPath *string `json:"rules_path,omitempty"` diff --git a/typedapi/types/stemmertokenfilter.go b/typedapi/types/stemmertokenfilter.go index 7c9dbbb462..ad48bcca27 100644 --- a/typedapi/types/stemmertokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L321-L325 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L321-L325 type StemmerTokenFilter struct { Language *string `json:"language,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/stepkey.go b/typedapi/types/stepkey.go index d3174f8237..35bd662b69 100644 --- a/typedapi/types/stepkey.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StepKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/move_to_step/types.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/move_to_step/types.ts#L20-L31 type StepKey struct { // Action The optional action to which the index will be moved. Action *string `json:"action,omitempty"` diff --git a/typedapi/types/stopanalyzer.go b/typedapi/types/stopanalyzer.go index e507a0687c..b3f70c1cd7 100644 --- a/typedapi/types/stopanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StopAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L338-L343 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L338-L343 type StopAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/stoptokenfilter.go b/typedapi/types/stoptokenfilter.go index 66b1f41a02..185edc429e 100644 --- a/typedapi/types/stoptokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StopTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L96-L102 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L96-L102 type StopTokenFilter struct { IgnoreCase *bool `json:"ignore_case,omitempty"` RemoveTrailing *bool `json:"remove_trailing,omitempty"` diff --git a/typedapi/types/stopwords.go b/typedapi/types/stopwords.go index 16ef073843..d33666bb70 100644 --- a/typedapi/types/stopwords.go +++ b/typedapi/types/stopwords.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // StopWords type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/StopWords.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/StopWords.ts#L20-L26 type StopWords []string type StopWordsVariant interface { diff --git a/typedapi/types/storage.go b/typedapi/types/storage.go index 7c83ce8cd1..0d4f835dc0 100644 --- a/typedapi/types/storage.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // Storage type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L534-L543 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L534-L543 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/typedapi/types/storedscript.go b/typedapi/types/storedscript.go index e766dd240b..1483c162e6 100644 --- a/typedapi/types/storedscript.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // StoredScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Scripting.ts#L47-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Scripting.ts#L47-L59 type StoredScript struct { // Lang The language the script is written in. // For serach templates, use `mustache`. diff --git a/typedapi/types/storestats.go b/typedapi/types/storestats.go index d9a738064a..9feecc6d4b 100644 --- a/typedapi/types/storestats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StoreStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L371-L398 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L371-L398 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/typedapi/types/streamresult.go b/typedapi/types/streamresult.go index 94deb41d25..2f1b34d34a 100644 --- a/typedapi/types/streamresult.go +++ b/typedapi/types/streamresult.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // StreamResult type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Binary.ts#L27-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Binary.ts#L27-L27 type StreamResult []byte diff --git a/typedapi/types/stringifiedboolean.go b/typedapi/types/stringifiedboolean.go index 53481a495c..465cce79a5 100644 --- a/typedapi/types/stringifiedboolean.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // bool // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_spec_utils/Stringified.ts#L20-L27 type Stringifiedboolean any type StringifiedbooleanVariant interface { diff --git a/typedapi/types/stringifieddouble.go b/typedapi/types/stringifieddouble.go index d5304c36ff..404f347641 100644 --- a/typedapi/types/stringifieddouble.go +++ b/typedapi/types/stringifieddouble.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // Float64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_spec_utils/Stringified.ts#L20-L27 type Stringifieddouble any diff --git a/typedapi/types/stringifiedepochtimeunitmillis.go b/typedapi/types/stringifiedepochtimeunitmillis.go index 80b823ab91..9de37432ab 100644 --- a/typedapi/types/stringifiedepochtimeunitmillis.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_spec_utils/Stringified.ts#L20-L27 type StringifiedEpochTimeUnitMillis any type StringifiedEpochTimeUnitMillisVariant interface { diff --git a/typedapi/types/stringifiedepochtimeunitseconds.go b/typedapi/types/stringifiedepochtimeunitseconds.go index 7291fc4986..5a7adbe859 100644 --- a/typedapi/types/stringifiedepochtimeunitseconds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_spec_utils/Stringified.ts#L20-L27 type StringifiedEpochTimeUnitSeconds any diff --git a/typedapi/types/stringifiedinteger.go b/typedapi/types/stringifiedinteger.go index 7ef7dfd347..e1ef6f818b 100644 --- a/typedapi/types/stringifiedinteger.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_spec_utils/Stringified.ts#L20-L27 type Stringifiedinteger any type StringifiedintegerVariant interface { diff --git a/typedapi/types/stringifiedversionnumber.go b/typedapi/types/stringifiedversionnumber.go index b0efbb00a8..71c043ce06 100644 --- a/typedapi/types/stringifiedversionnumber.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_spec_utils/Stringified.ts#L20-L27 type StringifiedVersionNumber any diff --git a/typedapi/types/stringraretermsaggregate.go b/typedapi/types/stringraretermsaggregate.go index c93d271901..82d79b6ac4 100644 --- a/typedapi/types/stringraretermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // StringRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L483-L487 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L483-L487 type StringRareTermsAggregate struct { Buckets BucketsStringRareTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/stringraretermsbucket.go b/typedapi/types/stringraretermsbucket.go index 0c5d5fdef2..d75d53210f 100644 --- a/typedapi/types/stringraretermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // StringRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L489-L491 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L489-L491 type StringRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/stringstatsaggregate.go b/typedapi/types/stringstatsaggregate.go index c0659d5c1c..0d49ae0e83 100644 --- a/typedapi/types/stringstatsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StringStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L793-L804 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L793-L804 type StringStatsAggregate struct { AvgLength *Float64 `json:"avg_length,omitempty"` AvgLengthAsString *string `json:"avg_length_as_string,omitempty"` diff --git a/typedapi/types/stringstatsaggregation.go b/typedapi/types/stringstatsaggregation.go index ab62f4d0ac..5c6d32f588 100644 --- a/typedapi/types/stringstatsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StringStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L293-L299 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L293-L299 type StringStatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/stringtermsaggregate.go b/typedapi/types/stringtermsaggregate.go index 0f496f0ab0..ff54410e9f 100644 --- a/typedapi/types/stringtermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L424-L429 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L424-L429 type StringTermsAggregate struct { Buckets BucketsStringTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/stringtermsbucket.go b/typedapi/types/stringtermsbucket.go index 4d81990807..7787d4085f 100644 --- a/typedapi/types/stringtermsbucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // StringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L435-L437 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L435-L437 type StringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/stupidbackoffsmoothingmodel.go b/typedapi/types/stupidbackoffsmoothingmodel.go index 1b65fbf9e7..140b2bec36 100644 --- a/typedapi/types/stupidbackoffsmoothingmodel.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // StupidBackoffSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L463-L468 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/suggest.go b/typedapi/types/suggest.go index 36bedcec5b..2f1ea2c417 100644 --- a/typedapi/types/suggest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,5 +26,5 @@ package types // PhraseSuggest // TermSuggest // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L34-L40 type Suggest any diff --git a/typedapi/types/suggestcontext.go b/typedapi/types/suggestcontext.go index a19e1206bf..f0838f558e 100644 --- a/typedapi/types/suggestcontext.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SuggestContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L43-L48 type SuggestContext struct { Name string `json:"name"` Path *string `json:"path,omitempty"` diff --git a/typedapi/types/suggester.go b/typedapi/types/suggester.go index 5a85139119..57d9028a73 100644 --- a/typedapi/types/suggester.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Suggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L101-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/suggestfuzziness.go b/typedapi/types/suggestfuzziness.go index fb16b4f9e1..6dcc045b7a 100644 --- a/typedapi/types/suggestfuzziness.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SuggestFuzziness type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L196-L224 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L196-L224 type SuggestFuzziness struct { // Fuzziness The fuzziness factor. Fuzziness Fuzziness `json:"fuzziness,omitempty"` diff --git a/typedapi/types/sumaggregate.go b/typedapi/types/sumaggregate.go index d52184fc31..be8c98e3e2 100644 --- a/typedapi/types/sumaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SumAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L211-L216 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L211-L216 type SumAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/sumaggregation.go b/typedapi/types/sumaggregation.go index 907df8322d..e9bd1c8c99 100644 --- a/typedapi/types/sumaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L301-L301 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L301-L301 type SumAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/sumbucketaggregation.go b/typedapi/types/sumbucketaggregation.go index 1d7ce07cc8..6b8e501710 100644 --- a/typedapi/types/sumbucketaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SumBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/pipeline.ts#L412-L415 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/pipeline.ts#L412-L415 type SumBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/summary.go b/typedapi/types/summary.go index ae3e9a08ba..be2b05b738 100644 --- a/typedapi/types/summary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // Summary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/enrich/_types/Policy.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/enrich/_types/Policy.ts#L24-L26 type Summary struct { Config map[policytype.PolicyType]EnrichPolicy `json:"config"` } diff --git a/typedapi/types/summaryinfo.go b/typedapi/types/summaryinfo.go index c09205b968..0974125f26 100644 --- a/typedapi/types/summaryinfo.go +++ b/typedapi/types/summaryinfo.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202 type SummaryInfo struct { // Read A collection of statistics that summarise the results of the read operations // in the test. diff --git a/typedapi/types/swedishanalyzer.go b/typedapi/types/swedishanalyzer.go index 28a6b83719..32b71207d2 100644 --- a/typedapi/types/swedishanalyzer.go +++ b/typedapi/types/swedishanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SwedishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L283-L288 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L283-L288 type SwedishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/synccontainer.go b/typedapi/types/synccontainer.go index 7aaea7dc05..d8cf3d7288 100644 --- a/typedapi/types/synccontainer.go +++ b/typedapi/types/synccontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // SyncContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L169-L175 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/_types/Transform.ts#L169-L175 type SyncContainer struct { AdditionalSyncContainerProperty map[string]json.RawMessage `json:"-"` // Time Specifies that the transform uses a time field to synchronize the source and diff --git a/typedapi/types/syncjobconnectorreference.go b/typedapi/types/syncjobconnectorreference.go index 96ef5c5609..4eea498fb1 100644 --- a/typedapi/types/syncjobconnectorreference.go +++ b/typedapi/types/syncjobconnectorreference.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SyncJobConnectorReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/SyncJob.ts#L31-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/SyncJob.ts#L31-L40 type SyncJobConnectorReference struct { Configuration ConnectorConfiguration `json:"configuration"` Filtering FilteringRules `json:"filtering"` diff --git a/typedapi/types/syncrulesfeature.go b/typedapi/types/syncrulesfeature.go index 6a67a152df..12891f1da8 100644 --- a/typedapi/types/syncrulesfeature.go +++ b/typedapi/types/syncrulesfeature.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // SyncRulesFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L219-L228 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L219-L228 type SyncRulesFeature struct { // Advanced Indicates whether advanced sync rules are enabled. Advanced *FeatureEnabled `json:"advanced,omitempty"` diff --git a/typedapi/types/synonymgraphtokenfilter.go b/typedapi/types/synonymgraphtokenfilter.go index c67e02d179..e19e8de73b 100644 --- a/typedapi/types/synonymgraphtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SynonymGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L109-L119 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L109-L119 type SynonymGraphTokenFilter struct { Expand *bool `json:"expand,omitempty"` Format *synonymformat.SynonymFormat `json:"format,omitempty"` diff --git a/typedapi/types/synonymrule.go b/typedapi/types/synonymrule.go index d032555dc7..dcc3f829f3 100644 --- a/typedapi/types/synonymrule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SynonymRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/_types/SynonymRule.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/synonyms/_types/SynonymRule.ts#L26-L37 type SynonymRule struct { // Id The identifier for the synonym rule. // If you do not specify a synonym rule ID when you create a rule, an identifier diff --git a/typedapi/types/synonymruleread.go b/typedapi/types/synonymruleread.go index 93e0b66370..20287c06da 100644 --- a/typedapi/types/synonymruleread.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // SynonymRuleRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/_types/SynonymRule.ts#L40-L49 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/synonyms/_types/SynonymRule.ts#L40-L49 type SynonymRuleRead struct { // Id Synonym Rule identifier Id string `json:"id"` diff --git a/typedapi/types/synonymssetitem.go b/typedapi/types/synonymssetitem.go index 942c334be9..96632d5e56 100644 --- a/typedapi/types/synonymssetitem.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // SynonymsSetItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L36-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L36-L45 type SynonymsSetItem struct { // Count Number of synonym rules that the synonym set contains Count int `json:"count"` diff --git a/typedapi/types/synonymtokenfilter.go b/typedapi/types/synonymtokenfilter.go index 0c49015aa7..0076e05d29 100644 --- a/typedapi/types/synonymtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // SynonymTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L121-L131 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L121-L131 type SynonymTokenFilter struct { Expand *bool `json:"expand,omitempty"` Format *synonymformat.SynonymFormat `json:"format,omitempty"` diff --git a/typedapi/types/tablevaluescontainer.go b/typedapi/types/tablevaluescontainer.go index 58914a08cd..1cd02da1e7 100644 --- a/typedapi/types/tablevaluescontainer.go +++ b/typedapi/types/tablevaluescontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // TableValuesContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/_types/TableValuesContainer.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/_types/TableValuesContainer.ts#L22-L28 type TableValuesContainer struct { AdditionalTableValuesContainerProperty map[string]json.RawMessage `json:"-"` Float64 [][]Float64 `json:"double,omitempty"` diff --git a/typedapi/types/tablevaluesintegervalue.go b/typedapi/types/tablevaluesintegervalue.go index 354c11345f..eaba7579bf 100644 --- a/typedapi/types/tablevaluesintegervalue.go +++ b/typedapi/types/tablevaluesintegervalue.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TableValuesIntegerValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/_types/TableValuesContainer.ts#L30-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/_types/TableValuesContainer.ts#L30-L30 type TableValuesIntegerValue []int type TableValuesIntegerValueVariant interface { diff --git a/typedapi/types/tablevalueskeywordvalue.go b/typedapi/types/tablevalueskeywordvalue.go index 061649ab33..3abcfd2eec 100644 --- a/typedapi/types/tablevalueskeywordvalue.go +++ b/typedapi/types/tablevalueskeywordvalue.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TableValuesKeywordValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/_types/TableValuesContainer.ts#L31-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/_types/TableValuesContainer.ts#L31-L31 type TableValuesKeywordValue []string type TableValuesKeywordValueVariant interface { diff --git a/typedapi/types/tablevalueslongdouble.go b/typedapi/types/tablevalueslongdouble.go index e9d6dba5db..d85d043de0 100644 --- a/typedapi/types/tablevalueslongdouble.go +++ b/typedapi/types/tablevalueslongdouble.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TableValuesLongDouble type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/_types/TableValuesContainer.ts#L33-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/_types/TableValuesContainer.ts#L33-L33 type TableValuesLongDouble []Float64 type TableValuesLongDoubleVariant interface { diff --git a/typedapi/types/tablevalueslongvalue.go b/typedapi/types/tablevalueslongvalue.go index d6ab13f9e2..c833c3c6e6 100644 --- a/typedapi/types/tablevalueslongvalue.go +++ b/typedapi/types/tablevalueslongvalue.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TableValuesLongValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/esql/_types/TableValuesContainer.ts#L32-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/esql/_types/TableValuesContainer.ts#L32-L32 type TableValuesLongValue []int64 type TableValuesLongValueVariant interface { diff --git a/typedapi/types/targetmeanencodingpreprocessor.go b/typedapi/types/targetmeanencodingpreprocessor.go index 85961382f5..ecb97f195c 100644 --- a/typedapi/types/targetmeanencodingpreprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TargetMeanEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L49-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/taskfailure.go b/typedapi/types/taskfailure.go index c701ecac67..e320dfe7d7 100644 --- a/typedapi/types/taskfailure.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TaskFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Errors.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Errors.ts#L67-L72 type TaskFailure struct { NodeId string `json:"node_id"` Reason ErrorCause `json:"reason"` diff --git a/typedapi/types/taskid.go b/typedapi/types/taskid.go index f7dc2a02fd..75552f798d 100644 --- a/typedapi/types/taskid.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L136-L136 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L136-L136 type TaskId any diff --git a/typedapi/types/taskinfo.go b/typedapi/types/taskinfo.go index 9b7b9e9724..6ac5385bca 100644 --- a/typedapi/types/taskinfo.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/tasks/_types/TaskInfo.ts#L32-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/tasks/_types/TaskInfo.ts#L32-L58 type TaskInfo struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` diff --git a/typedapi/types/taskinfos.go b/typedapi/types/taskinfos.go index ee3bd87400..a375247c8a 100644 --- a/typedapi/types/taskinfos.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // []TaskInfo // map[string]ParentTaskInfo // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/tasks/_types/TaskListResponseBase.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/tasks/_types/TaskListResponseBase.ts#L40-L43 type TaskInfos any diff --git a/typedapi/types/tasksrecord.go b/typedapi/types/tasksrecord.go index dcdfc9bcd4..8fb7e7a913 100644 --- a/typedapi/types/tasksrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/tasks/types.ts#L22-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/tasks/types.ts#L22-L101 type TasksRecord struct { // Action The task action. Action *string `json:"action,omitempty"` diff --git a/typedapi/types/tdigest.go b/typedapi/types/tdigest.go index 2bf2c0f240..8468044909 100644 --- a/typedapi/types/tdigest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TDigest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L232-L237 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L232-L237 type TDigest struct { // Compression Limits the maximum number of nodes used by the underlying TDigest algorithm // to `20 * compression`, enabling control of memory usage and approximation diff --git a/typedapi/types/tdigestpercentileranksaggregate.go b/typedapi/types/tdigestpercentileranksaggregate.go index 9c419f491b..25fbd888ea 100644 --- a/typedapi/types/tdigestpercentileranksaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L177-L178 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L177-L178 type TDigestPercentileRanksAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -64,7 +64,7 @@ func (s *TDigestPercentileRanksAggregate) UnmarshalJSON(data []byte) error { localDec := json.NewDecoder(source) switch rawMsg[0] { case '{': - o := make(map[string]string, 0) + o := make(map[string]any, 0) if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "Values", err) } diff --git a/typedapi/types/tdigestpercentilesaggregate.go b/typedapi/types/tdigestpercentilesaggregate.go index a861f10c32..599ff26f38 100644 --- a/typedapi/types/tdigestpercentilesaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L174-L175 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L174-L175 type TDigestPercentilesAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -64,7 +64,7 @@ func (s *TDigestPercentilesAggregate) UnmarshalJSON(data []byte) error { localDec := json.NewDecoder(source) switch rawMsg[0] { case '{': - o := make(map[string]string, 0) + o := make(map[string]any, 0) if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "Values", err) } diff --git a/typedapi/types/template.go b/typedapi/types/template.go index 5dd11c4f69..56551d08e8 100644 --- a/typedapi/types/template.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Template type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37 type Template struct { Aliases map[string]Alias `json:"aliases"` Mappings TypeMapping `json:"mappings"` diff --git a/typedapi/types/templateconfig.go b/typedapi/types/templateconfig.go index 37d9e48ab0..2b5e4b3003 100644 --- a/typedapi/types/templateconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TemplateConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/msearch_template/types.ts#L28-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/templatemapping.go b/typedapi/types/templatemapping.go index e75329bd47..7211a08ed5 100644 --- a/typedapi/types/templatemapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/TemplateMapping.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/TemplateMapping.ts#L27-L34 type TemplateMapping struct { Aliases map[string]Alias `json:"aliases"` IndexPatterns []string `json:"index_patterns"` diff --git a/typedapi/types/templatesrecord.go b/typedapi/types/templatesrecord.go index a9f6063135..0c83d2bd07 100644 --- a/typedapi/types/templatesrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TemplatesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/templates/types.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/templates/types.ts#L22-L48 type TemplatesRecord struct { // ComposedOf The component templates that comprise the index template. ComposedOf *string `json:"composed_of,omitempty"` diff --git a/typedapi/types/term.go b/typedapi/types/term.go index cdf360e330..c500c57ee1 100644 --- a/typedapi/types/term.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Term type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/termvectors/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/termvectors/types.ts#L34-L40 type Term struct { DocFreq *int `json:"doc_freq,omitempty"` Score *Float64 `json:"score,omitempty"` diff --git a/typedapi/types/terminateprocessor.go b/typedapi/types/terminateprocessor.go index 1871fcff74..e99c9e65ae 100644 --- a/typedapi/types/terminateprocessor.go +++ b/typedapi/types/terminateprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TerminateProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1523-L1523 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1541-L1541 type TerminateProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/termquery.go b/typedapi/types/termquery.go index cbe82a60ef..c14acb8e3a 100644 --- a/typedapi/types/termquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L238-L255 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L238-L255 type TermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/termrangequery.go b/typedapi/types/termrangequery.go index 048bbfa200..f26ec9d613 100644 --- a/typedapi/types/termrangequery.go +++ b/typedapi/types/termrangequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // TermRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L174-L174 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L174-L174 type TermRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/termsaggregation.go b/typedapi/types/termsaggregation.go index 54d1c4ad52..2de9992908 100644 --- a/typedapi/types/termsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // TermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L963-L1031 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L963-L1031 type TermsAggregation struct { // CollectMode Determines how child aggregations should be calculated: breadth-first or // depth-first. diff --git a/typedapi/types/termsexclude.go b/typedapi/types/termsexclude.go index 89b663da47..5cc85aa1f9 100644 --- a/typedapi/types/termsexclude.go +++ b/typedapi/types/termsexclude.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TermsExclude type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1077-L1078 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1077-L1078 type TermsExclude []string type TermsExcludeVariant interface { diff --git a/typedapi/types/termsgrouping.go b/typedapi/types/termsgrouping.go index 3a3e75265a..556f9c176c 100644 --- a/typedapi/types/termsgrouping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TermsGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/rollup/_types/Groupings.ts#L75-L82 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/termsinclude.go b/typedapi/types/termsinclude.go index 436cd02414..562238f73b 100644 --- a/typedapi/types/termsinclude.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ package types // []string // TermsPartition // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1074-L1075 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1074-L1075 type TermsInclude any type TermsIncludeVariant interface { diff --git a/typedapi/types/termslookup.go b/typedapi/types/termslookup.go index e58286d82e..17fd94dc79 100644 --- a/typedapi/types/termslookup.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TermsLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L270-L275 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L270-L275 type TermsLookup struct { Id string `json:"id"` Index string `json:"index"` diff --git a/typedapi/types/termspartition.go b/typedapi/types/termspartition.go index f86b901390..b404436bdf 100644 --- a/typedapi/types/termspartition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermsPartition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1080-L1089 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1080-L1089 type TermsPartition struct { // NumPartitions The number of partitions. NumPartitions int64 `json:"num_partitions"` diff --git a/typedapi/types/termsquery.go b/typedapi/types/termsquery.go index 9ae0068120..9bd5f7f32d 100644 --- a/typedapi/types/termsquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L257-L263 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L257-L263 type TermsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/termsqueryfield.go b/typedapi/types/termsqueryfield.go index 1da31b787f..d44af16508 100644 --- a/typedapi/types/termsqueryfield.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // []FieldValue // TermsLookup // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L265-L268 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L265-L268 type TermsQueryField any type TermsQueryFieldVariant interface { diff --git a/typedapi/types/termssetquery.go b/typedapi/types/termssetquery.go index fc45ea25cf..3d74be9924 100644 --- a/typedapi/types/termssetquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermsSetQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L277-L299 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L277-L299 type TermsSetQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/termsuggest.go b/typedapi/types/termsuggest.go index 35f2dbebea..6999b381f0 100644 --- a/typedapi/types/termsuggest.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L64-L69 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L64-L69 type TermSuggest struct { Length int `json:"length"` Offset int `json:"offset"` diff --git a/typedapi/types/termsuggester.go b/typedapi/types/termsuggester.go index 62ade61f5b..811f52ac35 100644 --- a/typedapi/types/termsuggester.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -35,7 +35,7 @@ import ( // TermSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L506-L568 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/termsuggestoption.go b/typedapi/types/termsuggestoption.go index 2a55b56d9f..31d3ba236d 100644 --- a/typedapi/types/termsuggestoption.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/suggester.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/suggester.ts#L93-L99 type TermSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Freq int64 `json:"freq"` diff --git a/typedapi/types/termvector.go b/typedapi/types/termvector.go index 9e8d0dc2cd..dc57d0c5ec 100644 --- a/typedapi/types/termvector.go +++ b/typedapi/types/termvector.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TermVector type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/termvectors/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/termvectors/types.ts#L23-L26 type TermVector struct { FieldStatistics *FieldStatistics `json:"field_statistics,omitempty"` Terms map[string]Term `json:"terms"` diff --git a/typedapi/types/termvectorsfilter.go b/typedapi/types/termvectorsfilter.go index 775f4f0d43..f3435a21b6 100644 --- a/typedapi/types/termvectorsfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermVectorsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/termvectors/types.ts#L49-L86 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/termvectorsresult.go b/typedapi/types/termvectorsresult.go index fd4fbc16bc..9700a9c8ba 100644 --- a/typedapi/types/termvectorsresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermVectorsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/mtermvectors/types.ts#L96-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/mtermvectors/types.ts#L96-L104 type TermVectorsResult struct { Error *ErrorCause `json:"error,omitempty"` Found *bool `json:"found,omitempty"` diff --git a/typedapi/types/termvectorstoken.go b/typedapi/types/termvectorstoken.go index e0cdb22de5..d608c5b618 100644 --- a/typedapi/types/termvectorstoken.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TermVectorsToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/termvectors/types.ts#L42-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/termvectors/types.ts#L42-L47 type TermVectorsToken struct { EndOffset *int `json:"end_offset,omitempty"` Payload *string `json:"payload,omitempty"` diff --git a/typedapi/types/testpopulation.go b/typedapi/types/testpopulation.go index 40b69225ad..6f6f660d21 100644 --- a/typedapi/types/testpopulation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TestPopulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L319-L329 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L319-L329 type TestPopulation struct { // Field The field to aggregate. Field string `json:"field"` diff --git a/typedapi/types/textclassificationinferenceoptions.go b/typedapi/types/textclassificationinferenceoptions.go index 38d19ceff6..0be4f5ec2d 100644 --- a/typedapi/types/textclassificationinferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L173-L183 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L202-L214 type TextClassificationInferenceOptions struct { // ClassificationLabels Classification labels to apply other than the stored labels. Must have the // same deminsions as the default configured labels @@ -43,6 +43,7 @@ type TextClassificationInferenceOptions struct { ResultsField *string `json:"results_field,omitempty"` // Tokenization The tokenization options Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"` + Vocabulary *Vocabulary `json:"vocabulary,omitempty"` } func (s *TextClassificationInferenceOptions) UnmarshalJSON(data []byte) error { @@ -98,6 +99,11 @@ func (s *TextClassificationInferenceOptions) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Tokenization", err) } + case "vocabulary": + if err := dec.Decode(&s.Vocabulary); err != nil { + return fmt.Errorf("%s | %w", "Vocabulary", err) + } + } } return nil diff --git a/typedapi/types/textclassificationinferenceupdateoptions.go b/typedapi/types/textclassificationinferenceupdateoptions.go index b2fc2c8fa0..821a09cb60 100644 --- a/typedapi/types/textclassificationinferenceupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L351-L360 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L382-L391 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/typedapi/types/textembedding.go b/typedapi/types/textembedding.go index d578a433ad..4e3da587a1 100644 --- a/typedapi/types/textembedding.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextEmbedding type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Knn.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Knn.ts#L94-L97 type TextEmbedding struct { ModelId string `json:"model_id"` ModelText string `json:"model_text"` diff --git a/typedapi/types/textembeddingbyteresult.go b/typedapi/types/textembeddingbyteresult.go index 4eaf9dca35..f8a5b1c354 100644 --- a/typedapi/types/textembeddingbyteresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingByteResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Results.ts#L53-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Results.ts#L53-L58 type TextEmbeddingByteResult struct { Embedding []byte `json:"embedding"` } diff --git a/typedapi/types/textembeddinginferenceoptions.go b/typedapi/types/textembeddinginferenceoptions.go index db9c0ae1d8..a716beaadb 100644 --- a/typedapi/types/textembeddinginferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L221-L231 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L252-L262 type TextEmbeddingInferenceOptions struct { // EmbeddingSize The number of dimensions in the embedding output EmbeddingSize *int `json:"embedding_size,omitempty"` diff --git a/typedapi/types/textembeddinginferenceupdateoptions.go b/typedapi/types/textembeddinginferenceupdateoptions.go index 98cef2f986..a3034db952 100644 --- a/typedapi/types/textembeddinginferenceupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L380-L384 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L411-L415 type TextEmbeddingInferenceUpdateOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/textembeddingresult.go b/typedapi/types/textembeddingresult.go index 00efef9f18..b8c909796c 100644 --- a/typedapi/types/textembeddingresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/_types/Results.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/Results.ts#L60-L65 type TextEmbeddingResult struct { Embedding []float32 `json:"embedding"` } diff --git a/typedapi/types/textexpansioninferenceoptions.go b/typedapi/types/textexpansioninferenceoptions.go index 02f8e23404..17dc2c85b4 100644 --- a/typedapi/types/textexpansioninferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L233-L240 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L264-L271 type TextExpansionInferenceOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/textexpansioninferenceupdateoptions.go b/typedapi/types/textexpansioninferenceupdateoptions.go index 00f332421c..4ff03b1632 100644 --- a/typedapi/types/textexpansioninferenceupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L386-L390 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L417-L421 type TextExpansionInferenceUpdateOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/textexpansionquery.go b/typedapi/types/textexpansionquery.go index 6819f65684..8f07b57582 100644 --- a/typedapi/types/textexpansionquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextExpansionQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L36 type TextExpansionQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/textindexprefixes.go b/typedapi/types/textindexprefixes.go index 2974606e2c..b0cd242e8c 100644 --- a/typedapi/types/textindexprefixes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextIndexPrefixes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L281-L284 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L298-L301 type TextIndexPrefixes struct { MaxChars int `json:"max_chars"` MinChars int `json:"min_chars"` diff --git a/typedapi/types/textproperty.go b/typedapi/types/textproperty.go index 73285f723c..a85b1eee36 100644 --- a/typedapi/types/textproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // TextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L286-L303 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L303-L320 type TextProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` diff --git a/typedapi/types/textsimilarityreranker.go b/typedapi/types/textsimilarityreranker.go index 878a0f549d..b59ac1bf2f 100644 --- a/typedapi/types/textsimilarityreranker.go +++ b/typedapi/types/textsimilarityreranker.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TextSimilarityReranker type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Retriever.ts#L93-L104 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Retriever.ts#L93-L104 type TextSimilarityReranker struct { // Field The document field to be used for text similarity comparisons. This field // should contain the text that will be evaluated against the inference_text diff --git a/typedapi/types/texttoanalyze.go b/typedapi/types/texttoanalyze.go index 967a90ad51..2e36c84130 100644 --- a/typedapi/types/texttoanalyze.go +++ b/typedapi/types/texttoanalyze.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TextToAnalyze type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/types.ts#L69-L69 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/analyze/types.ts#L69-L69 type TextToAnalyze []string type TextToAnalyzeVariant interface { diff --git a/typedapi/types/thaianalyzer.go b/typedapi/types/thaianalyzer.go index c0bbb63efd..8dc131187c 100644 --- a/typedapi/types/thaianalyzer.go +++ b/typedapi/types/thaianalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ThaiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L297-L301 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L297-L301 type ThaiAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/thaitokenizer.go b/typedapi/types/thaitokenizer.go index 1274c8ecb9..4728d555bc 100644 --- a/typedapi/types/thaitokenizer.go +++ b/typedapi/types/thaitokenizer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // ThaiTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L126-L128 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L126-L128 type ThaiTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/threadcount.go b/typedapi/types/threadcount.go index b0666e24cc..c110ac7fbd 100644 --- a/typedapi/types/threadcount.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ThreadCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1075-L1100 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1075-L1100 type ThreadCount struct { // Active Number of active threads in the thread pool. Active *int64 `json:"active,omitempty"` diff --git a/typedapi/types/threadpoolrecord.go b/typedapi/types/threadpoolrecord.go index ddb3de175e..e4f7fa7303 100644 --- a/typedapi/types/threadpoolrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ThreadPoolRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/thread_pool/types.ts#L22-L124 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/thread_pool/types.ts#L22-L124 type ThreadPoolRecord struct { // Active The number of active threads in the current thread pool. Active *string `json:"active,omitempty"` diff --git a/typedapi/types/throttlestate.go b/typedapi/types/throttlestate.go index e434bbfd0f..03ca8a7f08 100644 --- a/typedapi/types/throttlestate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ThrottleState type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L120-L123 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L120-L123 type ThrottleState struct { Reason string `json:"reason"` Timestamp DateTime `json:"timestamp"` diff --git a/typedapi/types/timehttphistogram.go b/typedapi/types/timehttphistogram.go index 4f0373070d..cc676aeff3 100644 --- a/typedapi/types/timehttphistogram.go +++ b/typedapi/types/timehttphistogram.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TimeHttpHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L708-L712 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L708-L712 type TimeHttpHistogram struct { Count int64 `json:"count"` GeMillis *int64 `json:"ge_millis,omitempty"` diff --git a/typedapi/types/timeofmonth.go b/typedapi/types/timeofmonth.go index b33c963004..4a599052e7 100644 --- a/typedapi/types/timeofmonth.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TimeOfMonth type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L111-L114 type TimeOfMonth struct { At []string `json:"at"` On []int `json:"on"` diff --git a/typedapi/types/timeofweek.go b/typedapi/types/timeofweek.go index 37194ca00e..480518d6af 100644 --- a/typedapi/types/timeofweek.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // TimeOfWeek type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L116-L119 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L116-L119 type TimeOfWeek struct { At []string `json:"at"` On []day.Day `json:"on"` diff --git a/typedapi/types/timeofyear.go b/typedapi/types/timeofyear.go index 47da8f5239..4ec97e8be0 100644 --- a/typedapi/types/timeofyear.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // TimeOfYear type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Schedule.ts#L121-L125 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Schedule.ts#L121-L125 type TimeOfYear struct { At []string `json:"at"` Int []month.Month `json:"int"` diff --git a/typedapi/types/timeseriesaggregate.go b/typedapi/types/timeseriesaggregate.go index 960d0c7c69..5b773a554f 100644 --- a/typedapi/types/timeseriesaggregate.go +++ b/typedapi/types/timeseriesaggregate.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TimeSeriesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L730-L731 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L730-L731 type TimeSeriesAggregate struct { Buckets BucketsTimeSeriesBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/timeseriesaggregation.go b/typedapi/types/timeseriesaggregation.go index 5518f38aef..46a76ce50c 100644 --- a/typedapi/types/timeseriesaggregation.go +++ b/typedapi/types/timeseriesaggregation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TimeSeriesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1033-L1046 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1033-L1046 type TimeSeriesAggregation struct { // Keyed Set to `true` to associate a unique string key with each bucket and returns // the ranges as a hash rather than an array. diff --git a/typedapi/types/timeseriesbucket.go b/typedapi/types/timeseriesbucket.go index 65116d0d56..4c82824c0f 100644 --- a/typedapi/types/timeseriesbucket.go +++ b/typedapi/types/timeseriesbucket.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // TimeSeriesBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L733-L735 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L733-L735 type TimeSeriesBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/timesync.go b/typedapi/types/timesync.go index f5dc433c6a..e250321da9 100644 --- a/typedapi/types/timesync.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TimeSync type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L177-L189 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/timingstats.go b/typedapi/types/timingstats.go index 178d12cce7..d0ecbf561d 100644 --- a/typedapi/types/timingstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L564-L569 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L564-L569 type TimingStats struct { // ElapsedTime Runtime of the analysis in milliseconds. ElapsedTime int64 `json:"elapsed_time"` diff --git a/typedapi/types/tokencountproperty.go b/typedapi/types/tokencountproperty.go index 95ccaa1769..8a368a860d 100644 --- a/typedapi/types/tokencountproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // TokenCountProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/specialized.ts#L94-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/specialized.ts#L94-L101 type TokenCountProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` diff --git a/typedapi/types/tokendetail.go b/typedapi/types/tokendetail.go index cde8a5be19..c2c83ddbc9 100644 --- a/typedapi/types/tokendetail.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TokenDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/analyze/types.ts#L71-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/analyze/types.ts#L71-L74 type TokenDetail struct { Name string `json:"name"` Tokens []ExplainAnalyzeToken `json:"tokens"` diff --git a/typedapi/types/tokenfilter.go b/typedapi/types/tokenfilter.go index 056fe41a8c..68cb5b38d6 100644 --- a/typedapi/types/tokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // TokenFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L345-L350 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L345-L350 type TokenFilter any type TokenFilterVariant interface { diff --git a/typedapi/types/tokenfilterdefinition.go b/typedapi/types/tokenfilterdefinition.go index e4f71fcd1e..a05e1ce60e 100644 --- a/typedapi/types/tokenfilterdefinition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -70,7 +70,7 @@ package types // PhoneticTokenFilter // DictionaryDecompounderTokenFilter // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L352-L404 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L352-L404 type TokenFilterDefinition any type TokenFilterDefinitionVariant interface { diff --git a/typedapi/types/tokenizationconfigcontainer.go b/typedapi/types/tokenizationconfigcontainer.go index 14d8387aaf..4d56edeef6 100644 --- a/typedapi/types/tokenizationconfigcontainer.go +++ b/typedapi/types/tokenizationconfigcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // TokenizationConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L110-L131 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L135-L158 type TokenizationConfigContainer struct { AdditionalTokenizationConfigContainerProperty map[string]json.RawMessage `json:"-"` // Bert Indicates BERT tokenization and its options @@ -37,7 +37,8 @@ type TokenizationConfigContainer struct { // Mpnet Indicates MPNET tokenization and its options Mpnet *NlpBertTokenizationConfig `json:"mpnet,omitempty"` // Roberta Indicates RoBERTa tokenization and its options - Roberta *NlpRobertaTokenizationConfig `json:"roberta,omitempty"` + Roberta *NlpRobertaTokenizationConfig `json:"roberta,omitempty"` + XlmRoberta *XlmRobertaTokenizationConfig `json:"xlm_roberta,omitempty"` } // MarhsalJSON overrides marshalling for types with additional properties diff --git a/typedapi/types/tokenizer.go b/typedapi/types/tokenizer.go index 2b6fee04e1..98bf3006de 100644 --- a/typedapi/types/tokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // string // TokenizerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L140-L145 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L140-L145 type Tokenizer any type TokenizerVariant interface { diff --git a/typedapi/types/tokenizerdefinition.go b/typedapi/types/tokenizerdefinition.go index 3b70843ca4..e41f567de7 100644 --- a/typedapi/types/tokenizerdefinition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -41,7 +41,7 @@ package types // KuromojiTokenizer // NoriTokenizer // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L147-L170 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L147-L170 type TokenizerDefinition any type TokenizerDefinitionVariant interface { diff --git a/typedapi/types/tokenpruningconfig.go b/typedapi/types/tokenpruningconfig.go index 6c5ac0f236..1e7d11cda4 100644 --- a/typedapi/types/tokenpruningconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TokenPruningConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/TokenPruningConfig.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/toolcall.go b/typedapi/types/toolcall.go index 6844b6d55c..75ae49f788 100644 --- a/typedapi/types/toolcall.go +++ b/typedapi/types/toolcall.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ToolCall type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L122-L138 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L112-L128 type ToolCall struct { // Function The function that the model called. Function ToolCallFunction `json:"function"` diff --git a/typedapi/types/toolcallfunction.go b/typedapi/types/toolcallfunction.go index f5ffcd644a..d113b3d715 100644 --- a/typedapi/types/toolcallfunction.go +++ b/typedapi/types/toolcallfunction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ToolCallFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/chat_completion_unified/UnifiedRequest.ts#L108-L120 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L98-L110 type ToolCallFunction struct { // Arguments The arguments to call the function with in JSON format. Arguments string `json:"arguments"` diff --git a/typedapi/types/topclassentry.go b/typedapi/types/topclassentry.go index 60bef9efe1..45d8575b30 100644 --- a/typedapi/types/topclassentry.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L428-L432 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L459-L463 type TopClassEntry struct { ClassName string `json:"class_name"` ClassProbability Float64 `json:"class_probability"` diff --git a/typedapi/types/tophit.go b/typedapi/types/tophit.go index 3de95dee05..dcf7249c2f 100644 --- a/typedapi/types/tophit.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TopHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/text_structure/_types/Structure.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/text_structure/_types/Structure.ts#L35-L38 type TopHit struct { Count int64 `json:"count"` Value json.RawMessage `json:"value,omitempty"` diff --git a/typedapi/types/tophitsaggregate.go b/typedapi/types/tophitsaggregate.go index b57e0dd45a..e4f6005423 100644 --- a/typedapi/types/tophitsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TopHitsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L747-L753 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L747-L753 type TopHitsAggregate struct { Hits HitsMetadata `json:"hits"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/tophitsaggregation.go b/typedapi/types/tophitsaggregation.go index 4dd7864abb..dba3b18d78 100644 --- a/typedapi/types/tophitsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TopHitsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L346-L406 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L346-L406 type TopHitsAggregation struct { // DocvalueFields Fields for which to return doc values. DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` diff --git a/typedapi/types/topleftbottomrightgeobounds.go b/typedapi/types/topleftbottomrightgeobounds.go index 05894202d3..1f910997d9 100644 --- a/typedapi/types/topleftbottomrightgeobounds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TopLeftBottomRightGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L161-L164 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L161-L164 type TopLeftBottomRightGeoBounds struct { BottomRight GeoLocation `json:"bottom_right"` TopLeft GeoLocation `json:"top_left"` diff --git a/typedapi/types/topmetrics.go b/typedapi/types/topmetrics.go index f7aabdcd21..d1cbfa86ad 100644 --- a/typedapi/types/topmetrics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TopMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L832-L836 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L832-L836 type TopMetrics struct { Metrics map[string]FieldValue `json:"metrics"` Sort []FieldValue `json:"sort"` diff --git a/typedapi/types/topmetricsaggregate.go b/typedapi/types/topmetricsaggregate.go index 06bdccb557..276caf275d 100644 --- a/typedapi/types/topmetricsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TopMetricsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L827-L830 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L827-L830 type TopMetricsAggregate struct { Meta Metadata `json:"meta,omitempty"` Top []TopMetrics `json:"top"` diff --git a/typedapi/types/topmetricsaggregation.go b/typedapi/types/topmetricsaggregation.go index 49cc7bca72..1e0768916d 100644 --- a/typedapi/types/topmetricsaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TopMetricsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L408-L425 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L408-L425 type TopMetricsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/topmetricsvalue.go b/typedapi/types/topmetricsvalue.go index 1cd06a5019..668235406b 100644 --- a/typedapi/types/topmetricsvalue.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TopMetricsValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L427-L432 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L427-L432 type TopMetricsValue struct { // Field A field to return as a metric. Field string `json:"field"` diff --git a/typedapi/types/toprightbottomleftgeobounds.go b/typedapi/types/toprightbottomleftgeobounds.go index 93578af26c..c138c348c4 100644 --- a/typedapi/types/toprightbottomleftgeobounds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TopRightBottomLeftGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L166-L169 type TopRightBottomLeftGeoBounds struct { BottomLeft GeoLocation `json:"bottom_left"` TopRight GeoLocation `json:"top_right"` diff --git a/typedapi/types/totalfeatureimportance.go b/typedapi/types/totalfeatureimportance.go index 43c5fa2b77..e3ecf88942 100644 --- a/typedapi/types/totalfeatureimportance.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L289-L296 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L290-L297 type TotalFeatureImportance struct { // Classes If the trained model is a classification model, feature importance statistics // are gathered per target class value. diff --git a/typedapi/types/totalfeatureimportanceclass.go b/typedapi/types/totalfeatureimportanceclass.go index 9687d49392..32833e9737 100644 --- a/typedapi/types/totalfeatureimportanceclass.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportanceClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L298-L303 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L299-L304 type TotalFeatureImportanceClass struct { // ClassName The target class value. Could be a string, boolean, or number. ClassName string `json:"class_name"` diff --git a/typedapi/types/totalfeatureimportancestatistics.go b/typedapi/types/totalfeatureimportancestatistics.go index bfed60e527..c48bf6c688 100644 --- a/typedapi/types/totalfeatureimportancestatistics.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TotalFeatureImportanceStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L305-L312 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L306-L313 type TotalFeatureImportanceStatistics struct { // Max The maximum importance value across all the training data for this feature. Max int `json:"max"` diff --git a/typedapi/types/totaluserprofiles.go b/typedapi/types/totaluserprofiles.go index e0ee902f1e..a6c6d1e4e1 100644 --- a/typedapi/types/totaluserprofiles.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TotalUserProfiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/suggest_user_profiles/Response.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/suggest_user_profiles/Response.ts#L24-L27 type TotalUserProfiles struct { Relation string `json:"relation"` Value int64 `json:"value"` diff --git a/typedapi/types/trackhits.go b/typedapi/types/trackhits.go index 9224c639e8..21c7d5f6de 100644 --- a/typedapi/types/trackhits.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,7 +25,7 @@ package types // bool // int // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/search/_types/hits.ts#L144-L152 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/search/_types/hits.ts#L144-L152 type TrackHits any type TrackHitsVariant interface { diff --git a/typedapi/types/trainedmodel.go b/typedapi/types/trainedmodel.go index f185e00ea6..72385a49f7 100644 --- a/typedapi/types/trainedmodel.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TrainedModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/trainedmodelassignment.go b/typedapi/types/trainedmodelassignment.go index de6746099e..9da7075ce3 100644 --- a/typedapi/types/trainedmodelassignment.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignment type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L459-L476 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L472-L489 type TrainedModelAssignment struct { AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"` // AssignmentState The overall assignment state. diff --git a/typedapi/types/trainedmodelassignmentroutingstateandreason.go b/typedapi/types/trainedmodelassignmentroutingstateandreason.go new file mode 100644 index 0000000000..6b0c40f855 --- /dev/null +++ b/typedapi/types/trainedmodelassignmentroutingstateandreason.go @@ -0,0 +1,89 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/routingstate" +) + +// TrainedModelAssignmentRoutingStateAndReason type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L431-L441 +type TrainedModelAssignmentRoutingStateAndReason struct { + // Reason The reason for the current state. It is usually populated only when the + // `routing_state` is `failed`. + Reason *string `json:"reason,omitempty"` + // RoutingState The current routing state. + RoutingState routingstate.RoutingState `json:"routing_state"` +} + +func (s *TrainedModelAssignmentRoutingStateAndReason) 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 "reason": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Reason", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Reason = &o + + case "routing_state": + if err := dec.Decode(&s.RoutingState); err != nil { + return fmt.Errorf("%s | %w", "RoutingState", err) + } + + } + } + return nil +} + +// NewTrainedModelAssignmentRoutingStateAndReason returns a TrainedModelAssignmentRoutingStateAndReason. +func NewTrainedModelAssignmentRoutingStateAndReason() *TrainedModelAssignmentRoutingStateAndReason { + r := &TrainedModelAssignmentRoutingStateAndReason{} + + return r +} + +// false diff --git a/typedapi/types/trainedmodelassignmentroutingtable.go b/typedapi/types/trainedmodelassignmentroutingtable.go index 4fab6e6a6e..314ca8c637 100644 --- a/typedapi/types/trainedmodelassignmentroutingtable.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentRoutingTable type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L430-L448 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L443-L461 type TrainedModelAssignmentRoutingTable struct { // CurrentAllocations Current number of allocations. CurrentAllocations int `json:"current_allocations"` diff --git a/typedapi/types/trainedmodelassignmenttaskparameters.go b/typedapi/types/trainedmodelassignmenttaskparameters.go index ca502539b5..c559d5e328 100644 --- a/typedapi/types/trainedmodelassignmenttaskparameters.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentTaskParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L369-L405 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L370-L406 type TrainedModelAssignmentTaskParameters struct { // CacheSize The size of the trained model cache. CacheSize ByteSize `json:"cache_size,omitempty"` diff --git a/typedapi/types/trainedmodelconfig.go b/typedapi/types/trainedmodelconfig.go index 4ba3c96d14..0767edb0b2 100644 --- a/typedapi/types/trainedmodelconfig.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // TrainedModelConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L203-L239 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L203-L240 type TrainedModelConfig struct { CompressedDefinition *string `json:"compressed_definition,omitempty"` // CreateTime The time when the trained model was created. @@ -68,8 +68,9 @@ type TrainedModelConfig struct { ModelPackage *ModelPackageConfig `json:"model_package,omitempty"` ModelSizeBytes ByteSize `json:"model_size_bytes,omitempty"` // ModelType The model type - ModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"` - PrefixStrings *TrainedModelPrefixStrings `json:"prefix_strings,omitempty"` + ModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"` + PlatformArchitecture *string `json:"platform_architecture,omitempty"` + PrefixStrings *TrainedModelPrefixStrings `json:"prefix_strings,omitempty"` // Tags A comma delimited string of tags. A trained model can have many tags, or // none. Tags []string `json:"tags"` @@ -239,6 +240,18 @@ func (s *TrainedModelConfig) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "ModelType", err) } + case "platform_architecture": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "PlatformArchitecture", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.PlatformArchitecture = &o + case "prefix_strings": if err := dec.Decode(&s.PrefixStrings); err != nil { return fmt.Errorf("%s | %w", "PrefixStrings", err) diff --git a/typedapi/types/trainedmodelconfiginput.go b/typedapi/types/trainedmodelconfiginput.go index c01ed92821..ea6dbee0e5 100644 --- a/typedapi/types/trainedmodelconfiginput.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TrainedModelConfigInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L241-L244 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L242-L245 type TrainedModelConfigInput struct { // FieldNames An array of input field names for the model. FieldNames []string `json:"field_names"` diff --git a/typedapi/types/trainedmodelconfigmetadata.go b/typedapi/types/trainedmodelconfigmetadata.go index 87e5e69858..50c9bb0418 100644 --- a/typedapi/types/trainedmodelconfigmetadata.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TrainedModelConfigMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L246-L254 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L247-L255 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/typedapi/types/trainedmodeldeploymentallocationstatus.go b/typedapi/types/trainedmodeldeploymentallocationstatus.go index 60129a25a4..2eb906488e 100644 --- a/typedapi/types/trainedmodeldeploymentallocationstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // TrainedModelDeploymentAllocationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L450-L457 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L463-L470 type TrainedModelDeploymentAllocationStatus struct { // AllocationCount The current number of nodes where the model is allocated. AllocationCount int `json:"allocation_count"` diff --git a/typedapi/types/trainedmodeldeploymentnodesstats.go b/typedapi/types/trainedmodeldeploymentnodesstats.go index 8fe8951dd9..349d5fc096 100644 --- a/typedapi/types/trainedmodeldeploymentnodesstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelDeploymentNodesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L156-L201 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L156-L201 type TrainedModelDeploymentNodesStats struct { // AverageInferenceTimeMs The average time for each inference call to complete on this node. AverageInferenceTimeMs Float64 `json:"average_inference_time_ms,omitempty"` @@ -54,12 +54,12 @@ type TrainedModelDeploymentNodesStats struct { // NumberOfPendingRequests The number of inference requests queued to be processed. NumberOfPendingRequests *int `json:"number_of_pending_requests,omitempty"` PeakThroughputPerMinute int64 `json:"peak_throughput_per_minute"` - // RejectionExecutionCount The number of inference requests that were not processed because the queue + // RejectedExecutionCount The number of inference requests that were not processed because the queue // was full. - RejectionExecutionCount *int `json:"rejection_execution_count,omitempty"` + RejectedExecutionCount *int `json:"rejected_execution_count,omitempty"` // RoutingState The current routing state and reason for the current routing state for this // allocation. - RoutingState TrainedModelAssignmentRoutingTable `json:"routing_state"` + RoutingState TrainedModelAssignmentRoutingStateAndReason `json:"routing_state"` // StartTime The epoch timestamp when the allocation started. StartTime *int64 `json:"start_time,omitempty"` // ThreadsPerAllocation The number of threads used by each allocation during inference. @@ -217,7 +217,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error { s.PeakThroughputPerMinute = f } - case "rejection_execution_count": + case "rejected_execution_count": var tmp any dec.Decode(&tmp) @@ -225,12 +225,12 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error { case string: value, err := strconv.Atoi(v) if err != nil { - return fmt.Errorf("%s | %w", "RejectionExecutionCount", err) + return fmt.Errorf("%s | %w", "RejectedExecutionCount", err) } - s.RejectionExecutionCount = &value + s.RejectedExecutionCount = &value case float64: f := int(v) - s.RejectionExecutionCount = &f + s.RejectedExecutionCount = &f } case "routing_state": diff --git a/typedapi/types/trainedmodeldeploymentstats.go b/typedapi/types/trainedmodeldeploymentstats.go index 822dfdee1a..776c5a47b0 100644 --- a/typedapi/types/trainedmodeldeploymentstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // TrainedModelDeploymentStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L62-L107 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L62-L107 type TrainedModelDeploymentStats struct { AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"` // AllocationStatus The detailed allocation status for the deployment. diff --git a/typedapi/types/trainedmodelentities.go b/typedapi/types/trainedmodelentities.go index 3b00781efa..0b8a603b5c 100644 --- a/typedapi/types/trainedmodelentities.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelEntities type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L421-L427 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L452-L458 type TrainedModelEntities struct { ClassName string `json:"class_name"` ClassProbability Float64 `json:"class_probability"` diff --git a/typedapi/types/trainedmodelinferenceclassimportance.go b/typedapi/types/trainedmodelinferenceclassimportance.go index c8eee6c622..fdb9ff09dd 100644 --- a/typedapi/types/trainedmodelinferenceclassimportance.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L434-L437 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L465-L468 type TrainedModelInferenceClassImportance struct { ClassName string `json:"class_name"` Importance Float64 `json:"importance"` diff --git a/typedapi/types/trainedmodelinferencefeatureimportance.go b/typedapi/types/trainedmodelinferencefeatureimportance.go index 645e72afa0..39eff49453 100644 --- a/typedapi/types/trainedmodelinferencefeatureimportance.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L439-L443 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L470-L474 type TrainedModelInferenceFeatureImportance struct { Classes []TrainedModelInferenceClassImportance `json:"classes,omitempty"` FeatureName string `json:"feature_name"` diff --git a/typedapi/types/trainedmodelinferencestats.go b/typedapi/types/trainedmodelinferencestats.go index 3a77ecf127..d6281254b3 100644 --- a/typedapi/types/trainedmodelinferencestats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L127-L147 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L127-L147 type TrainedModelInferenceStats struct { // CacheMissCount The number of times the model was loaded for inference and was not retrieved // from the cache. diff --git a/typedapi/types/trainedmodellocation.go b/typedapi/types/trainedmodellocation.go index 34c7a76f1f..75b4e18284 100644 --- a/typedapi/types/trainedmodellocation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TrainedModelLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L478-L480 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L491-L493 type TrainedModelLocation struct { Index TrainedModelLocationIndex `json:"index"` } diff --git a/typedapi/types/trainedmodellocationindex.go b/typedapi/types/trainedmodellocationindex.go index be763d8943..ccfe4ca32c 100644 --- a/typedapi/types/trainedmodellocationindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TrainedModelLocationIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L482-L484 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L495-L497 type TrainedModelLocationIndex struct { Name string `json:"name"` } diff --git a/typedapi/types/trainedmodelprefixstrings.go b/typedapi/types/trainedmodelprefixstrings.go index df1b3f38f0..285647155a 100644 --- a/typedapi/types/trainedmodelprefixstrings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelPrefixStrings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L486-L495 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L499-L508 type TrainedModelPrefixStrings struct { // Ingest String prepended to input at ingest Ingest *string `json:"ingest,omitempty"` diff --git a/typedapi/types/trainedmodelsizestats.go b/typedapi/types/trainedmodelsizestats.go index 761c368dfb..394725e0a0 100644 --- a/typedapi/types/trainedmodelsizestats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TrainedModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L149-L154 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/TrainedModel.ts#L149-L154 type TrainedModelSizeStats struct { // ModelSizeBytes The size of the model in bytes. ModelSizeBytes ByteSize `json:"model_size_bytes"` diff --git a/typedapi/types/trainedmodelsrecord.go b/typedapi/types/trainedmodelsrecord.go index 97c2544d8a..ace2218093 100644 --- a/typedapi/types/trainedmodelsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/ml_trained_models/types.ts#L23-L115 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/trainedmodelstats.go b/typedapi/types/trainedmodelstats.go index 866afedfda..0f0db4ee10 100644 --- a/typedapi/types/trainedmodelstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/TrainedModel.ts#L42-L60 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/trainedmodeltree.go b/typedapi/types/trainedmodeltree.go index 1a03e6e8d6..dbfef81d0d 100644 --- a/typedapi/types/trainedmodeltree.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTree type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/trainedmodeltreenode.go b/typedapi/types/trainedmodeltreenode.go index bf20a11b65..2a602f8507 100644 --- a/typedapi/types/trainedmodeltreenode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTreeNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L81-L91 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/transformauthorization.go b/typedapi/types/transformauthorization.go index 1ed13bb985..4a021dd743 100644 --- a/typedapi/types/transformauthorization.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TransformAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/Authorization.ts#L59-L71 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/transformcontainer.go b/typedapi/types/transformcontainer.go index 8bc32978b6..0b35d3c831 100644 --- a/typedapi/types/transformcontainer.go +++ b/typedapi/types/transformcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // TransformContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Transform.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Transform.ts#L27-L34 type TransformContainer struct { AdditionalTransformContainerProperty map[string]json.RawMessage `json:"-"` Chain []TransformContainer `json:"chain,omitempty"` diff --git a/typedapi/types/transformdestination.go b/typedapi/types/transformdestination.go index 08dc023512..a7d1147bf0 100644 --- a/typedapi/types/transformdestination.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TransformDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L34-L45 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/transformhealthissue.go b/typedapi/types/transformhealthissue.go new file mode 100644 index 0000000000..c1ce2be5f3 --- /dev/null +++ b/typedapi/types/transformhealthissue.go @@ -0,0 +1,138 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// TransformHealthIssue type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform_stats/types.ts#L51-L63 +type TransformHealthIssue struct { + // Count Number of times this issue has occurred since it started + Count int `json:"count"` + // Details Details about the issue + Details *string `json:"details,omitempty"` + FirstOccurenceString DateTime `json:"first_occurence_string,omitempty"` + // FirstOccurrence The timestamp this issue occurred for for the first time + FirstOccurrence *int64 `json:"first_occurrence,omitempty"` + // Issue A description of the issue + Issue string `json:"issue"` + // Type The type of the issue + Type string `json:"type"` +} + +func (s *TransformHealthIssue) 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": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Details", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Details = &o + + case "first_occurence_string": + if err := dec.Decode(&s.FirstOccurenceString); err != nil { + return fmt.Errorf("%s | %w", "FirstOccurenceString", err) + } + + case "first_occurrence": + if err := dec.Decode(&s.FirstOccurrence); err != nil { + return fmt.Errorf("%s | %w", "FirstOccurrence", err) + } + + case "issue": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Issue", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Issue = o + + case "type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Type = o + + } + } + return nil +} + +// NewTransformHealthIssue returns a TransformHealthIssue. +func NewTransformHealthIssue() *TransformHealthIssue { + r := &TransformHealthIssue{} + + return r +} + +// false diff --git a/typedapi/types/transformindexerstats.go b/typedapi/types/transformindexerstats.go index a5a86ca2bd..5a9e45171e 100644 --- a/typedapi/types/transformindexerstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TransformIndexerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform_stats/types.ts#L56-L74 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform_stats/types.ts#L73-L91 type TransformIndexerStats struct { DeleteTimeInMs *int64 `json:"delete_time_in_ms,omitempty"` DocumentsDeleted *int64 `json:"documents_deleted,omitempty"` diff --git a/typedapi/types/transformprogress.go b/typedapi/types/transformprogress.go index f5a501c183..d7bd2521f9 100644 --- a/typedapi/types/transformprogress.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TransformProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform_stats/types.ts#L48-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform_stats/types.ts#L65-L71 type TransformProgress struct { DocsIndexed int64 `json:"docs_indexed"` DocsProcessed int64 `json:"docs_processed"` diff --git a/typedapi/types/transformsource.go b/typedapi/types/transformsource.go index ffb2e02ead..d2f5c469e0 100644 --- a/typedapi/types/transformsource.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TransformSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/_types/Transform.ts#L146-L165 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/transformsrecord.go b/typedapi/types/transformsrecord.go index 646fafd73b..8855b6936e 100644 --- a/typedapi/types/transformsrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TransformsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cat/transforms/types.ts#L22-L197 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cat/transforms/types.ts#L22-L197 type TransformsRecord struct { // ChangesLastDetectionTime The timestamp when changes were last detected in the source indices. ChangesLastDetectionTime *string `json:"changes_last_detection_time,omitempty"` diff --git a/typedapi/types/transformstats.go b/typedapi/types/transformstats.go index fa4fd0cd00..c665a17b5b 100644 --- a/typedapi/types/transformstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TransformStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform_stats/types.ts#L31-L42 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform_stats/types.ts#L31-L42 type TransformStats struct { Checkpointing Checkpointing `json:"checkpointing"` Health *TransformStatsHealth `json:"health,omitempty"` diff --git a/typedapi/types/transformstatshealth.go b/typedapi/types/transformstatshealth.go index efe5879c7e..6181099a8a 100644 --- a/typedapi/types/transformstatshealth.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,8 +26,11 @@ import ( // TransformStatsHealth type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform_stats/types.ts#L44-L46 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform_stats/types.ts#L44-L49 type TransformStatsHealth struct { + // Issues If a non-healthy status is returned, contains a list of issues of the + // transform. + Issues []TransformHealthIssue `json:"issues,omitempty"` Status healthstatus.HealthStatus `json:"status"` } diff --git a/typedapi/types/transformsummary.go b/typedapi/types/transformsummary.go index f65c84a7da..2c9416dab9 100644 --- a/typedapi/types/transformsummary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,14 +31,15 @@ import ( // TransformSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/transform/get_transform/types.ts#L33-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/transform/get_transform/types.ts#L33-L62 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 // update to the transform, this property is omitted. Authorization *TransformAuthorization `json:"authorization,omitempty"` // CreateTime The time the transform was created. - CreateTime *int64 `json:"create_time,omitempty"` + CreateTime *int64 `json:"create_time,omitempty"` + CreateTimeString DateTime `json:"create_time_string,omitempty"` // Description Free text description of the transform. Description *string `json:"description,omitempty"` // Dest The destination for the transform. @@ -86,6 +87,11 @@ func (s *TransformSummary) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "CreateTime", err) } + case "create_time_string": + if err := dec.Decode(&s.CreateTimeString); err != nil { + return fmt.Errorf("%s | %w", "CreateTimeString", err) + } + case "description": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { diff --git a/typedapi/types/translog.go b/typedapi/types/translog.go index 25f14b05df..f3a06166d1 100644 --- a/typedapi/types/translog.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // Translog type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L355-L377 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L355-L377 type Translog struct { // Durability Whether or not to `fsync` and commit the translog after every index, delete, // update, or bulk request. diff --git a/typedapi/types/translogretention.go b/typedapi/types/translogretention.go index 13f33e8aaa..f55e2ec35e 100644 --- a/typedapi/types/translogretention.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TranslogRetention type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/_types/IndexSettings.ts#L396-L415 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/_types/IndexSettings.ts#L396-L415 type TranslogRetention struct { // Age This controls the maximum duration for which translog files are kept by each // shard. Keeping more diff --git a/typedapi/types/translogstats.go b/typedapi/types/translogstats.go index d44159e63f..3309435ec9 100644 --- a/typedapi/types/translogstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TranslogStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L400-L408 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L400-L408 type TranslogStats struct { EarliestLastModifiedAge int64 `json:"earliest_last_modified_age"` Operations int64 `json:"operations"` diff --git a/typedapi/types/translogstatus.go b/typedapi/types/translogstatus.go index aa9220f08f..fa6ff0d93f 100644 --- a/typedapi/types/translogstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TranslogStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L102-L109 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/recovery/types.ts#L102-L109 type TranslogStatus struct { Percent Percentage `json:"percent"` Recovered int64 `json:"recovered"` diff --git a/typedapi/types/transport.go b/typedapi/types/transport.go index 472f0cb3e6..ec66e015ed 100644 --- a/typedapi/types/transport.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Transport type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1118-L1161 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1118-L1161 type Transport struct { // InboundHandlingTimeHistogram The distribution of the time spent handling each inbound message on a // transport thread, represented as a histogram. diff --git a/typedapi/types/transporthistogram.go b/typedapi/types/transporthistogram.go index 48280ed47d..4b0ac49362 100644 --- a/typedapi/types/transporthistogram.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TransportHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/nodes/_types/Stats.ts#L1163-L1177 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/nodes/_types/Stats.ts#L1163-L1177 type TransportHistogram struct { // Count The number of times a transport thread took a period of time within the // bounds of this bucket to handle an inbound message. diff --git a/typedapi/types/triggercontainer.go b/typedapi/types/triggercontainer.go index 9cb86e638d..6588f03bc3 100644 --- a/typedapi/types/triggercontainer.go +++ b/typedapi/types/triggercontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // TriggerContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Trigger.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Trigger.ts#L23-L28 type TriggerContainer struct { AdditionalTriggerContainerProperty map[string]json.RawMessage `json:"-"` Schedule *ScheduleContainer `json:"schedule,omitempty"` diff --git a/typedapi/types/triggereventcontainer.go b/typedapi/types/triggereventcontainer.go index b61889a817..44e75c9640 100644 --- a/typedapi/types/triggereventcontainer.go +++ b/typedapi/types/triggereventcontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // TriggerEventContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Trigger.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Trigger.ts#L32-L37 type TriggerEventContainer struct { AdditionalTriggerEventContainerProperty map[string]json.RawMessage `json:"-"` Schedule *ScheduleTriggerEvent `json:"schedule,omitempty"` diff --git a/typedapi/types/triggereventresult.go b/typedapi/types/triggereventresult.go index baea5d349f..c807a60d6b 100644 --- a/typedapi/types/triggereventresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TriggerEventResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Trigger.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Trigger.ts#L39-L43 type TriggerEventResult struct { Manual TriggerEventContainer `json:"manual"` TriggeredTime DateTime `json:"triggered_time"` diff --git a/typedapi/types/trimprocessor.go b/typedapi/types/trimprocessor.go index 656ad20edd..32d9a736ed 100644 --- a/typedapi/types/trimprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TrimProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1525-L1541 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1543-L1559 type TrimProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/trimtokenfilter.go b/typedapi/types/trimtokenfilter.go index 8005a06b1a..131953a1b8 100644 --- a/typedapi/types/trimtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // TrimTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L327-L329 type TrimTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/truncatetokenfilter.go b/typedapi/types/truncatetokenfilter.go index 198fe596b3..6c2159acb3 100644 --- a/typedapi/types/truncatetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TruncateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L331-L334 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L331-L334 type TruncateTokenFilter struct { Length *int `json:"length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/ttestaggregate.go b/typedapi/types/ttestaggregate.go index 0f65e0408e..ccf81d3273 100644 --- a/typedapi/types/ttestaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TTestAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L838-L845 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L838-L845 type TTestAggregate struct { Meta Metadata `json:"meta,omitempty"` Value *Float64 `json:"value,omitempty"` diff --git a/typedapi/types/ttestaggregation.go b/typedapi/types/ttestaggregation.go index bef433e059..ad4f8ea3d6 100644 --- a/typedapi/types/ttestaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -26,7 +26,7 @@ import ( // TTestAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L303-L317 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L303-L317 type TTestAggregation struct { // A Test population A. A *TestPopulation `json:"a,omitempty"` diff --git a/typedapi/types/turkishanalyzer.go b/typedapi/types/turkishanalyzer.go index 5711f7e191..16c0174562 100644 --- a/typedapi/types/turkishanalyzer.go +++ b/typedapi/types/turkishanalyzer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TurkishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L290-L295 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L290-L295 type TurkishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/typefieldmappings.go b/typedapi/types/typefieldmappings.go index 6b52b1196b..e005824ed3 100644 --- a/typedapi/types/typefieldmappings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // TypeFieldMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/get_field_mapping/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/get_field_mapping/types.ts#L24-L26 type TypeFieldMappings struct { Mappings map[string]FieldMapping `json:"mappings"` } diff --git a/typedapi/types/typemapping.go b/typedapi/types/typemapping.go index fb7999c493..3bb46567f5 100644 --- a/typedapi/types/typemapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // TypeMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/TypeMapping.ts#L34-L57 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/TypeMapping.ts#L34-L57 type TypeMapping struct { AllField *AllField `json:"all_field,omitempty"` DataStreamTimestamp_ *DataStreamTimestamp `json:"_data_stream_timestamp,omitempty"` diff --git a/typedapi/types/typequery.go b/typedapi/types/typequery.go index 3bcc6c7543..91cc4b59ac 100644 --- a/typedapi/types/typequery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // TypeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L301-L303 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L301-L303 type TypeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/uaxemailurltokenizer.go b/typedapi/types/uaxemailurltokenizer.go index f5138d3609..c264dd2085 100644 --- a/typedapi/types/uaxemailurltokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UaxEmailUrlTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L130-L133 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L130-L133 type UaxEmailUrlTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/unassignedinformation.go b/typedapi/types/unassignedinformation.go index 39e88544ce..d1d0f2c21b 100644 --- a/typedapi/types/unassignedinformation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // UnassignedInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/cluster/allocation_explain/types.ts#L128-L136 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/allocation_explain/types.ts#L128-L136 type UnassignedInformation struct { AllocationStatus *string `json:"allocation_status,omitempty"` At DateTime `json:"at"` diff --git a/typedapi/types/uniquetokenfilter.go b/typedapi/types/uniquetokenfilter.go index cdc56a2e0d..87f03407c7 100644 --- a/typedapi/types/uniquetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UniqueTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L336-L339 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L336-L339 type UniqueTokenFilter struct { OnlyOnSamePosition *bool `json:"only_on_same_position,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/unmappedraretermsaggregate.go b/typedapi/types/unmappedraretermsaggregate.go index 3e4dd265ca..c888811141 100644 --- a/typedapi/types/unmappedraretermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // UnmappedRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L493-L499 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L493-L499 type UnmappedRareTermsAggregate struct { Buckets BucketsVoid `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/unmappedsampleraggregate.go b/typedapi/types/unmappedsampleraggregate.go index 7c1641acc0..744754a37a 100644 --- a/typedapi/types/unmappedsampleraggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // UnmappedSamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L561-L562 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L561-L562 type UnmappedSamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/unmappedsignificanttermsaggregate.go b/typedapi/types/unmappedsignificanttermsaggregate.go index 5947ae87bf..f710c7c945 100644 --- a/typedapi/types/unmappedsignificanttermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UnmappedSignificantTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L690-L696 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L690-L696 type UnmappedSignificantTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsVoid `json:"buckets"` diff --git a/typedapi/types/unmappedtermsaggregate.go b/typedapi/types/unmappedtermsaggregate.go index 1b8a1525a2..61f2d5971d 100644 --- a/typedapi/types/unmappedtermsaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UnmappedTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L463-L469 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L463-L469 type UnmappedTermsAggregate struct { Buckets BucketsVoid `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/unrateddocument.go b/typedapi/types/unrateddocument.go index 01d0132c6f..43cbe25941 100644 --- a/typedapi/types/unrateddocument.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // UnratedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/rank_eval/types.ts#L150-L153 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/rank_eval/types.ts#L150-L153 type UnratedDocument struct { Id_ string `json:"_id"` Index_ string `json:"_index"` diff --git a/typedapi/types/unsignedlongnumberproperty.go b/typedapi/types/unsignedlongnumberproperty.go index 48c16bd00a..1754eedf80 100644 --- a/typedapi/types/unsignedlongnumberproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -36,7 +36,7 @@ import ( // UnsignedLongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L181-L184 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L191-L194 type UnsignedLongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/untypeddecayfunction.go b/typedapi/types/untypeddecayfunction.go index d1a059b69c..1fc1d4c5f7 100644 --- a/typedapi/types/untypeddecayfunction.go +++ b/typedapi/types/untypeddecayfunction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ import ( // UntypedDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/compound.ts#L204-L207 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/compound.ts#L204-L207 type UntypedDecayFunction struct { DecayFunctionBase map[string]DecayPlacement `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/typedapi/types/untypeddistancefeaturequery.go b/typedapi/types/untypeddistancefeaturequery.go index a8e8ceb577..001a9ad586 100644 --- a/typedapi/types/untypeddistancefeaturequery.go +++ b/typedapi/types/untypeddistancefeaturequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UntypedDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/specialized.ts#L61-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/specialized.ts#L61-L64 type UntypedDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/untypedrangequery.go b/typedapi/types/untypedrangequery.go index d605a46234..cbbf83220f 100644 --- a/typedapi/types/untypedrangequery.go +++ b/typedapi/types/untypedrangequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // UntypedRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L150-L159 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L150-L159 type UntypedRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/updateaction.go b/typedapi/types/updateaction.go index 042b9df0ba..ddd0c6c456 100644 --- a/typedapi/types/updateaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UpdateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L182-L217 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L182-L217 type UpdateAction struct { // DetectNoop If true, the `result` in the response is set to 'noop' when no changes to the // document occur. diff --git a/typedapi/types/updatebyqueryrethrottlenode.go b/typedapi/types/updatebyqueryrethrottlenode.go index d210c483cb..8edbdb3859 100644 --- a/typedapi/types/updatebyqueryrethrottlenode.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // UpdateByQueryRethrottleNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/updateoperation.go b/typedapi/types/updateoperation.go index bfba938558..c0d89c1b44 100644 --- a/typedapi/types/updateoperation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // UpdateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_global/bulk/types.ts#L146-L156 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_global/bulk/types.ts#L146-L156 type UpdateOperation struct { // Id_ The document ID. Id_ *string `json:"_id,omitempty"` diff --git a/typedapi/types/uppercaseprocessor.go b/typedapi/types/uppercaseprocessor.go index c791a703f3..1650f258f6 100644 --- a/typedapi/types/uppercaseprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UppercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1543-L1559 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1561-L1577 type UppercaseProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/uppercasetokenfilter.go b/typedapi/types/uppercasetokenfilter.go index 394d86839d..f4662117f5 100644 --- a/typedapi/types/uppercasetokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // UppercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L341-L343 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L341-L343 type UppercaseTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/uripartsprocessor.go b/typedapi/types/uripartsprocessor.go index d79ded3109..e59d853aa5 100644 --- a/typedapi/types/uripartsprocessor.go +++ b/typedapi/types/uripartsprocessor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UriPartsProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1579-L1605 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1597-L1623 type UriPartsProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/urldecodeprocessor.go b/typedapi/types/urldecodeprocessor.go index 68bd1e2a34..df5ae24d96 100644 --- a/typedapi/types/urldecodeprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UrlDecodeProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L1561-L1577 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L1579-L1595 type UrlDecodeProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/usagephase.go b/typedapi/types/usagephase.go index 17c50a3821..0c424e903e 100644 --- a/typedapi/types/usagephase.go +++ b/typedapi/types/usagephase.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // UsagePhase type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L154-L157 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L154-L157 type UsagePhase struct { Actions []string `json:"actions"` MinAge int64 `json:"min_age"` diff --git a/typedapi/types/usagephases.go b/typedapi/types/usagephases.go index f6ac91af21..a909887ad1 100644 --- a/typedapi/types/usagephases.go +++ b/typedapi/types/usagephases.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // UsagePhases type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L159-L165 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L159-L165 type UsagePhases struct { Cold *UsagePhase `json:"cold,omitempty"` Delete *UsagePhase `json:"delete,omitempty"` diff --git a/typedapi/types/usagestatsindex.go b/typedapi/types/usagestatsindex.go index 21fe7dcfbc..33856e1556 100644 --- a/typedapi/types/usagestatsindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // UsageStatsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L41-L43 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L41-L43 type UsageStatsIndex struct { Shards []UsageStatsShards `json:"shards"` } diff --git a/typedapi/types/usagestatsshards.go b/typedapi/types/usagestatsshards.go index d2a91acd9c..cf5925e3ed 100644 --- a/typedapi/types/usagestatsshards.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UsageStatsShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L45-L50 type UsageStatsShards struct { Routing ShardRouting `json:"routing"` Stats IndicesShardsStats `json:"stats"` diff --git a/typedapi/types/user.go b/typedapi/types/user.go index 51fbc5f70a..b6817e87d7 100644 --- a/typedapi/types/user.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // User type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/User.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/User.ts#L23-L31 type User struct { Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/useragentprocessor.go b/typedapi/types/useragentprocessor.go index 32c2dafd38..a78bd32c71 100644 --- a/typedapi/types/useragentprocessor.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // UserAgentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Processors.ts#L514-L545 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Processors.ts#L514-L545 type UserAgentProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. diff --git a/typedapi/types/userindicesprivileges.go b/typedapi/types/userindicesprivileges.go index 2fa8d18cee..acadc450c3 100644 --- a/typedapi/types/userindicesprivileges.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // UserIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/Privileges.ts#L292-L314 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/Privileges.ts#L292-L314 type UserIndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/userprofile.go b/typedapi/types/userprofile.go index 172c68896f..315f99ff25 100644 --- a/typedapi/types/userprofile.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UserProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/UserProfile.ts#L41-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/UserProfile.ts#L41-L47 type UserProfile struct { Data map[string]json.RawMessage `json:"data"` Enabled *bool `json:"enabled,omitempty"` diff --git a/typedapi/types/userprofilehitmetadata.go b/typedapi/types/userprofilehitmetadata.go index c5cb19ef23..3dde6fd037 100644 --- a/typedapi/types/userprofilehitmetadata.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UserProfileHitMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/UserProfile.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/UserProfile.ts#L27-L30 type UserProfileHitMetadata struct { PrimaryTerm_ int64 `json:"_primary_term"` SeqNo_ int64 `json:"_seq_no"` diff --git a/typedapi/types/userprofileuser.go b/typedapi/types/userprofileuser.go index 7493992554..42800a7196 100644 --- a/typedapi/types/userprofileuser.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UserProfileUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/UserProfile.ts#L32-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/UserProfile.ts#L32-L39 type UserProfileUser struct { Email *string `json:"email,omitempty"` FullName *string `json:"full_name,omitempty"` diff --git a/typedapi/types/userprofilewithmetadata.go b/typedapi/types/userprofilewithmetadata.go index 2a1f660c55..92ea25fa4d 100644 --- a/typedapi/types/userprofilewithmetadata.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UserProfileWithMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/_types/UserProfile.ts#L49-L52 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/_types/UserProfile.ts#L49-L52 type UserProfileWithMetadata struct { Data map[string]json.RawMessage `json:"data"` Doc_ UserProfileHitMetadata `json:"_doc"` diff --git a/typedapi/types/userquerycontainer.go b/typedapi/types/userquerycontainer.go index 450f9e7c70..4a8269e9ba 100644 --- a/typedapi/types/userquerycontainer.go +++ b/typedapi/types/userquerycontainer.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // UserQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/query_user/types.ts#L37-L101 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/query_user/types.ts#L37-L101 type UserQueryContainer struct { AdditionalUserQueryContainerProperty map[string]json.RawMessage `json:"-"` // Bool matches users matching boolean combinations of other queries. diff --git a/typedapi/types/userrealm.go b/typedapi/types/userrealm.go index 5e5cf0a4a5..f8cc6fad0a 100644 --- a/typedapi/types/userrealm.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // UserRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/security/get_token/types.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/security/get_token/types.ts#L50-L53 type UserRealm struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/validation.go b/typedapi/types/validation.go index 026f6e5604..29777deae0 100644 --- a/typedapi/types/validation.go +++ b/typedapi/types/validation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -28,7 +28,7 @@ package types // IncludedInValidation // RegexValidation // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/connector/_types/Connector.ts#L50-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/connector/_types/Connector.ts#L50-L56 type Validation any type ValidationVariant interface { diff --git a/typedapi/types/validationloss.go b/typedapi/types/validationloss.go index 92621023b4..4d5c065167 100644 --- a/typedapi/types/validationloss.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ValidationLoss type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/DataframeAnalytics.ts#L571-L576 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/DataframeAnalytics.ts#L571-L576 type ValidationLoss struct { // FoldValues Validation loss values for every added decision tree during the forest // growing procedure. diff --git a/typedapi/types/valuecountaggregate.go b/typedapi/types/valuecountaggregate.go index 3db2db2ba4..182d1f7cfe 100644 --- a/typedapi/types/valuecountaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L231-L236 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L231-L236 type ValueCountAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/valuecountaggregation.go b/typedapi/types/valuecountaggregation.go index ca377725ba..74af350604 100644 --- a/typedapi/types/valuecountaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L434-L434 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L434-L434 type ValueCountAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/variablewidthhistogramaggregate.go b/typedapi/types/variablewidthhistogramaggregate.go index 4f2abd3bbd..6567b50500 100644 --- a/typedapi/types/variablewidthhistogramaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // VariableWidthHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L402-L404 type VariableWidthHistogramAggregate struct { Buckets BucketsVariableWidthHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/variablewidthhistogramaggregation.go b/typedapi/types/variablewidthhistogramaggregation.go index c65b104c7a..9bc1ab0fd0 100644 --- a/typedapi/types/variablewidthhistogramaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // VariableWidthHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/bucket.ts#L1091-L1115 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/bucket.ts#L1091-L1115 type VariableWidthHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` diff --git a/typedapi/types/variablewidthhistogrambucket.go b/typedapi/types/variablewidthhistogrambucket.go index 809af6e5e2..8f70e89ca8 100644 --- a/typedapi/types/variablewidthhistogrambucket.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // VariableWidthHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L406-L413 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L406-L413 type VariableWidthHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/vector.go b/typedapi/types/vector.go index 08539d1744..ca803961fc 100644 --- a/typedapi/types/vector.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Vector type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L464-L468 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L464-L468 type Vector struct { Available bool `json:"available"` DenseVectorDimsAvgCount int `json:"dense_vector_dims_avg_count"` diff --git a/typedapi/types/verifyindex.go b/typedapi/types/verifyindex.go index 2bbdc64e0b..979ca02dc5 100644 --- a/typedapi/types/verifyindex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // VerifyIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/indices/recovery/types.ts#L111-L116 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/versionproperty.go b/typedapi/types/versionproperty.go index 8ce1345c3c..c6abe4d9c6 100644 --- a/typedapi/types/versionproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // VersionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L305-L307 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L322-L324 type VersionProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/vertex.go b/typedapi/types/vertex.go index df6dfe582a..2c6d38c4b9 100644 --- a/typedapi/types/vertex.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Vertex type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/_types/Vertex.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/graph/_types/Vertex.ts#L23-L28 type Vertex struct { Depth int64 `json:"depth"` Field string `json:"field"` diff --git a/typedapi/types/vertexdefinition.go b/typedapi/types/vertexdefinition.go index 82e9bc6b8c..eb8e102736 100644 --- a/typedapi/types/vertexdefinition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // VertexDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/_types/Vertex.ts#L30-L59 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/types/vertexinclude.go b/typedapi/types/vertexinclude.go index f800bf3601..b50d7a9f40 100644 --- a/typedapi/types/vertexinclude.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // VertexInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/graph/_types/Vertex.ts#L61-L64 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/graph/_types/Vertex.ts#L61-L64 type VertexInclude struct { Boost Float64 `json:"boost"` Term string `json:"term"` diff --git a/typedapi/types/vocabulary.go b/typedapi/types/vocabulary.go index 49bb61355b..d7ec03358f 100644 --- a/typedapi/types/vocabulary.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Vocabulary type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L217-L219 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L248-L250 type Vocabulary struct { Index string `json:"index"` } diff --git a/typedapi/types/voyageaiservicesettings.go b/typedapi/types/voyageaiservicesettings.go new file mode 100644 index 0000000000..220d6edc5d --- /dev/null +++ b/typedapi/types/voyageaiservicesettings.go @@ -0,0 +1,143 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// VoyageAIServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1075-L1106 +type VoyageAIServiceSettings struct { + // Dimensions The number of dimensions for resulting output embeddings. + // This setting maps to `output_dimension` in the VoyageAI documentation. + // Only for the `text_embedding` task type. + Dimensions *int `json:"dimensions,omitempty"` + // EmbeddingType The data type for the embeddings to be returned. + // This setting maps to `output_dtype` in the VoyageAI documentation. + // Permitted values: float, int8, bit. + // `int8` is a synonym of `byte` in the VoyageAI documentation. + // `bit` is a synonym of `binary` in the VoyageAI documentation. + // Only for the `text_embedding` task type. + EmbeddingType *float32 `json:"embedding_type,omitempty"` + // ModelId The name of the model to use for the inference task. + // Refer to the VoyageAI documentation for the list of available text embedding + // and rerank models. + ModelId string `json:"model_id"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // VoyageAI. + // The `voyageai` service sets a default number of requests allowed per minute + // depending on the task type. + // For both `text_embedding` and `rerank`, it is set to `2000`. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` +} + +func (s *VoyageAIServiceSettings) 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 "dimensions": + + 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", "Dimensions", err) + } + s.Dimensions = &value + case float64: + f := int(v) + s.Dimensions = &f + } + + case "embedding_type": + 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", "EmbeddingType", err) + } + f := float32(value) + s.EmbeddingType = &f + case float64: + f := float32(v) + s.EmbeddingType = &f + } + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + } + } + return nil +} + +// NewVoyageAIServiceSettings returns a VoyageAIServiceSettings. +func NewVoyageAIServiceSettings() *VoyageAIServiceSettings { + r := &VoyageAIServiceSettings{} + + return r +} + +// true + +type VoyageAIServiceSettingsVariant interface { + VoyageAIServiceSettingsCaster() *VoyageAIServiceSettings +} + +func (s *VoyageAIServiceSettings) VoyageAIServiceSettingsCaster() *VoyageAIServiceSettings { + return s +} diff --git a/typedapi/types/voyageaitasksettings.go b/typedapi/types/voyageaitasksettings.go new file mode 100644 index 0000000000..86bfcb379b --- /dev/null +++ b/typedapi/types/voyageaitasksettings.go @@ -0,0 +1,143 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// VoyageAITaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1108-L1132 +type VoyageAITaskSettings struct { + // InputType Type of the input text. + // Permitted values: `ingest` (maps to `document` in the VoyageAI + // documentation), `search` (maps to `query` in the VoyageAI documentation). + // Only for the `text_embedding` task type. + InputType *string `json:"input_type,omitempty"` + // ReturnDocuments Whether to return the source documents in the response. + // Only for the `rerank` task type. + ReturnDocuments *bool `json:"return_documents,omitempty"` + // TopK The number of most relevant documents to return. + // If not specified, the reranking results of all documents will be returned. + // Only for the `rerank` task type. + TopK *int `json:"top_k,omitempty"` + // Truncation Whether to truncate the input texts to fit within the context length. + Truncation *bool `json:"truncation,omitempty"` +} + +func (s *VoyageAITaskSettings) 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 "input_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "InputType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.InputType = &o + + case "return_documents": + 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", "ReturnDocuments", err) + } + s.ReturnDocuments = &value + case bool: + s.ReturnDocuments = &v + } + + case "top_k": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "TopK", err) + } + s.TopK = &value + case float64: + f := int(v) + s.TopK = &f + } + + case "truncation": + 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", "Truncation", err) + } + s.Truncation = &value + case bool: + s.Truncation = &v + } + + } + } + return nil +} + +// NewVoyageAITaskSettings returns a VoyageAITaskSettings. +func NewVoyageAITaskSettings() *VoyageAITaskSettings { + r := &VoyageAITaskSettings{} + + return r +} + +// true + +type VoyageAITaskSettingsVariant interface { + VoyageAITaskSettingsCaster() *VoyageAITaskSettings +} + +func (s *VoyageAITaskSettings) VoyageAITaskSettingsCaster() *VoyageAITaskSettings { + return s +} diff --git a/typedapi/types/waitforactiveshards.go b/typedapi/types/waitforactiveshards.go index 644c0df8d1..c8fd3f122e 100644 --- a/typedapi/types/waitforactiveshards.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -25,5 +25,5 @@ package types // int // waitforactiveshardoptions.WaitForActiveShardOptions // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/common.ts#L146-L147 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/common.ts#L146-L147 type WaitForActiveShards any diff --git a/typedapi/types/waitfornodes.go b/typedapi/types/waitfornodes.go new file mode 100644 index 0000000000..70ef3ee9ba --- /dev/null +++ b/typedapi/types/waitfornodes.go @@ -0,0 +1,29 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +// WaitForNodes holds the union for the following types: +// +// string +// int +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/cluster/health/types.ts#L47-L47 +type WaitForNodes any diff --git a/typedapi/types/waitforsnapshotaction.go b/typedapi/types/waitforsnapshotaction.go index 0cecf2c538..ace277d156 100644 --- a/typedapi/types/waitforsnapshotaction.go +++ b/typedapi/types/waitforsnapshotaction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WaitForSnapshotAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ilm/_types/Phase.ts#L145-L147 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ilm/_types/Phase.ts#L145-L147 type WaitForSnapshotAction struct { Policy string `json:"policy"` } diff --git a/typedapi/types/warmerstats.go b/typedapi/types/warmerstats.go index 08fb12644c..331046de3e 100644 --- a/typedapi/types/warmerstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WarmerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Stats.ts#L410-L415 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Stats.ts#L410-L415 type WarmerStats struct { Current int64 `json:"current"` Total int64 `json:"total"` diff --git a/typedapi/types/watch.go b/typedapi/types/watch.go index a85eb4c5b5..235b0016eb 100644 --- a/typedapi/types/watch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // Watch type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Watch.ts#L37-L47 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Watch.ts#L37-L47 type Watch struct { Actions map[string]WatcherAction `json:"actions"` Condition WatcherCondition `json:"condition"` diff --git a/typedapi/types/watcher.go b/typedapi/types/watcher.go index 72eef80417..9f3362d640 100644 --- a/typedapi/types/watcher.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Watcher type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L470-L474 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L470-L474 type Watcher struct { Available bool `json:"available"` Count Counter `json:"count"` diff --git a/typedapi/types/watcheraction.go b/typedapi/types/watcheraction.go index 3e28d16f75..c562703eca 100644 --- a/typedapi/types/watcheraction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // WatcherAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L35-L54 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L35-L54 type WatcherAction struct { ActionType *actiontype.ActionType `json:"action_type,omitempty"` Condition *WatcherCondition `json:"condition,omitempty"` diff --git a/typedapi/types/watcheractions.go b/typedapi/types/watcheractions.go index f27cdac86f..6929277213 100644 --- a/typedapi/types/watcheractions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // WatcherActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L406-L408 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L406-L408 type WatcherActions struct { Actions map[string]WatcherActionTotals `json:"actions"` } diff --git a/typedapi/types/watcheractiontotals.go b/typedapi/types/watcheractiontotals.go index 80603add5a..b7fa729ec7 100644 --- a/typedapi/types/watcheractiontotals.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // WatcherActionTotals type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L422-L425 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L422-L425 type WatcherActionTotals struct { Total Duration `json:"total"` TotalTimeInMs int64 `json:"total_time_in_ms"` diff --git a/typedapi/types/watchercondition.go b/typedapi/types/watchercondition.go index f754e5b69d..1731b35906 100644 --- a/typedapi/types/watchercondition.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -29,7 +29,7 @@ import ( // WatcherCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Conditions.ts#L50-L62 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Conditions.ts#L50-L62 type WatcherCondition struct { AdditionalWatcherConditionProperty map[string]json.RawMessage `json:"-"` Always *AlwaysCondition `json:"always,omitempty"` diff --git a/typedapi/types/watcherinput.go b/typedapi/types/watcherinput.go index c8e8609a66..a67a761143 100644 --- a/typedapi/types/watcherinput.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -27,7 +27,7 @@ import ( // WatcherInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Input.ts#L90-L98 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Input.ts#L90-L98 type WatcherInput struct { AdditionalWatcherInputProperty map[string]json.RawMessage `json:"-"` Chain *ChainInput `json:"chain,omitempty"` diff --git a/typedapi/types/watchernodestats.go b/typedapi/types/watchernodestats.go index ffaf71da2f..3d785f78c3 100644 --- a/typedapi/types/watchernodestats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // WatcherNodeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/stats/types.ts#L33-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/stats/types.ts#L33-L61 type WatcherNodeStats struct { // CurrentWatches The current executing watches metric gives insight into the watches that are // currently being executed by Watcher. diff --git a/typedapi/types/watcherstatusactions.go b/typedapi/types/watcherstatusactions.go index b4f1df9504..51c166fb44 100644 --- a/typedapi/types/watcherstatusactions.go +++ b/typedapi/types/watcherstatusactions.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // WatcherStatusActions type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Action.ts#L56-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Action.ts#L56-L56 type WatcherStatusActions map[string]ActionStatus type WatcherStatusActionsVariant interface { diff --git a/typedapi/types/watcherwatch.go b/typedapi/types/watcherwatch.go index 1a1a155abc..975e9005a4 100644 --- a/typedapi/types/watcherwatch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // WatcherWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L410-L415 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L410-L415 type WatcherWatch struct { Action map[string]Counter `json:"action,omitempty"` Condition map[string]Counter `json:"condition,omitempty"` diff --git a/typedapi/types/watcherwatchtrigger.go b/typedapi/types/watcherwatchtrigger.go index 2380f22f5a..668314c5b3 100644 --- a/typedapi/types/watcherwatchtrigger.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // WatcherWatchTrigger type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L417-L420 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L417-L420 type WatcherWatchTrigger struct { All_ Counter `json:"_all"` Schedule *WatcherWatchTriggerSchedule `json:"schedule,omitempty"` diff --git a/typedapi/types/watcherwatchtriggerschedule.go b/typedapi/types/watcherwatchtriggerschedule.go index 5e1ce9aaef..d80d7b0643 100644 --- a/typedapi/types/watcherwatchtriggerschedule.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WatcherWatchTriggerSchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L476-L479 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L476-L479 type WatcherWatchTriggerSchedule struct { Active int64 `json:"active"` All_ Counter `json:"_all"` diff --git a/typedapi/types/watchrecord.go b/typedapi/types/watchrecord.go index 8ebd754a6e..40ae7eb964 100644 --- a/typedapi/types/watchrecord.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // WatchRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/execute_watch/types.ts#L27-L39 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/execute_watch/types.ts#L27-L39 type WatchRecord struct { Condition WatcherCondition `json:"condition"` Input WatcherInput `json:"input"` diff --git a/typedapi/types/watchrecordqueuedstats.go b/typedapi/types/watchrecordqueuedstats.go index 2852731a48..577419749b 100644 --- a/typedapi/types/watchrecordqueuedstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // WatchRecordQueuedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/stats/types.ts#L71-L77 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/stats/types.ts#L71-L77 type WatchRecordQueuedStats struct { // ExecutionTime The time the watch was run. // This is just before the input is being run. diff --git a/typedapi/types/watchrecordstats.go b/typedapi/types/watchrecordstats.go index d61be4def8..fdf47fac59 100644 --- a/typedapi/types/watchrecordstats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -32,7 +32,7 @@ import ( // WatchRecordStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/stats/types.ts#L79-L94 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/stats/types.ts#L79-L94 type WatchRecordStats struct { ExecutedActions []string `json:"executed_actions,omitempty"` // ExecutionPhase The current watch execution phase. diff --git a/typedapi/types/watchstatus.go b/typedapi/types/watchstatus.go index 0a2b99f232..6ad994460a 100644 --- a/typedapi/types/watchstatus.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WatchStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Watch.ts#L49-L56 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Watch.ts#L49-L56 type WatchStatus struct { Actions WatcherStatusActions `json:"actions"` ExecutionState *string `json:"execution_state,omitempty"` diff --git a/typedapi/types/watsonxservicesettings.go b/typedapi/types/watsonxservicesettings.go index cb64ecf151..1f09432072 100644 --- a/typedapi/types/watsonxservicesettings.go +++ b/typedapi/types/watsonxservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WatsonxServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/inference/put_watsonx/PutWatsonxRequest.ts#L80-L117 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/inference/_types/CommonTypes.ts#L1143-L1180 type WatsonxServiceSettings struct { // ApiKey A valid API key of your Watsonx account. // You can find your Watsonx API keys or you can create a new one on the API diff --git a/typedapi/types/web.go b/typedapi/types/web.go index a8124c20ab..d76aeaefd4 100644 --- a/typedapi/types/web.go +++ b/typedapi/types/web.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // Web type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ingest/_types/Database.ts#L61-L61 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ingest/_types/Database.ts#L61-L61 type Web struct { } diff --git a/typedapi/types/webhookaction.go b/typedapi/types/webhookaction.go index ae76139187..89586e4f2e 100644 --- a/typedapi/types/webhookaction.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // WebhookAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L293-L293 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L293-L293 type WebhookAction struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` diff --git a/typedapi/types/webhookresult.go b/typedapi/types/webhookresult.go index ccf1fcfc09..976359ae90 100644 --- a/typedapi/types/webhookresult.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // WebhookResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/_types/Actions.ts#L295-L298 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/_types/Actions.ts#L295-L298 type WebhookResult struct { Request HttpInputRequestResult `json:"request"` Response *HttpInputResponseResult `json:"response,omitempty"` diff --git a/typedapi/types/weightedaverageaggregation.go b/typedapi/types/weightedaverageaggregation.go index 1fa8718490..d36d8de0c0 100644 --- a/typedapi/types/weightedaverageaggregation.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -33,7 +33,7 @@ import ( // WeightedAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L449-L463 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L449-L463 type WeightedAverageAggregation struct { // Format A numeric response formatter. Format *string `json:"format,omitempty"` diff --git a/typedapi/types/weightedaveragevalue.go b/typedapi/types/weightedaveragevalue.go index c61ae56935..847f436cd7 100644 --- a/typedapi/types/weightedaveragevalue.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WeightedAverageValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/metric.ts#L465-L475 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/metric.ts#L465-L475 type WeightedAverageValue struct { // Field The field from which to extract the values or weights. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/weightedavgaggregate.go b/typedapi/types/weightedavgaggregate.go index d56714c35e..261ffbd1fd 100644 --- a/typedapi/types/weightedavgaggregate.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WeightedAvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/aggregations/Aggregate.ts#L224-L229 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/aggregations/Aggregate.ts#L224-L229 type WeightedAvgAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/weightedtokensquery.go b/typedapi/types/weightedtokensquery.go index e1220b2b75..1da3258670 100644 --- a/typedapi/types/weightedtokensquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WeightedTokensQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/WeightedTokensQuery.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/WeightedTokensQuery.ts#L25-L33 type WeightedTokensQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/weights.go b/typedapi/types/weights.go index acfed655f7..c6e3fccfc6 100644 --- a/typedapi/types/weights.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // Weights type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/put_trained_model/types.ts#L108-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/put_trained_model/types.ts#L108-L110 type Weights struct { Weights Float64 `json:"weights"` } diff --git a/typedapi/types/whitespaceanalyzer.go b/typedapi/types/whitespaceanalyzer.go index 0762539f55..e36d0cd8cb 100644 --- a/typedapi/types/whitespaceanalyzer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -30,7 +30,7 @@ import ( // WhitespaceAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/analyzers.ts#L345-L348 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/analyzers.ts#L345-L348 type WhitespaceAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/whitespacetokenizer.go b/typedapi/types/whitespacetokenizer.go index 239f1e07ac..ae60e64bc1 100644 --- a/typedapi/types/whitespacetokenizer.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WhitespaceTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/tokenizers.ts#L135-L138 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/tokenizers.ts#L135-L138 type WhitespaceTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/wildcardproperty.go b/typedapi/types/wildcardproperty.go index 1a3348f7c8..f7b1ffab61 100644 --- a/typedapi/types/wildcardproperty.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -34,7 +34,7 @@ import ( // WildcardProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/mapping/core.ts#L309-L316 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/mapping/core.ts#L326-L333 type WildcardProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/wildcardquery.go b/typedapi/types/wildcardquery.go index cf3c3faa79..6a760ce773 100644 --- a/typedapi/types/wildcardquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WildcardQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/term.ts#L305-L325 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/term.ts#L305-L325 type WildcardQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/wktgeobounds.go b/typedapi/types/wktgeobounds.go index 695cad6052..0713e620d1 100644 --- a/typedapi/types/wktgeobounds.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WktGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/Geo.ts#L150-L152 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/Geo.ts#L150-L152 type WktGeoBounds struct { Wkt string `json:"wkt"` } diff --git a/typedapi/types/worddelimitergraphtokenfilter.go b/typedapi/types/worddelimitergraphtokenfilter.go index 2c961abc5a..6f9869016d 100644 --- a/typedapi/types/worddelimitergraphtokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WordDelimiterGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L150-L167 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L150-L167 type WordDelimiterGraphTokenFilter struct { AdjustOffsets *bool `json:"adjust_offsets,omitempty"` CatenateAll *bool `json:"catenate_all,omitempty"` diff --git a/typedapi/types/worddelimitertokenfilter.go b/typedapi/types/worddelimitertokenfilter.go index 464a4ae1fe..1cc815168d 100644 --- a/typedapi/types/worddelimitertokenfilter.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WordDelimiterTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/analysis/token_filters.ts#L133-L148 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/analysis/token_filters.ts#L133-L148 type WordDelimiterTokenFilter struct { CatenateAll *bool `json:"catenate_all,omitempty"` CatenateNumbers *bool `json:"catenate_numbers,omitempty"` diff --git a/typedapi/types/wrapperquery.go b/typedapi/types/wrapperquery.go index f9c424c865..331d463812 100644 --- a/typedapi/types/wrapperquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WrapperQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/_types/query_dsl/abstractions.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/_types/query_dsl/abstractions.ts#L508-L517 type WrapperQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/writesummaryinfo.go b/typedapi/types/writesummaryinfo.go index 16cadd6b1b..3260c64ff1 100644 --- a/typedapi/types/writesummaryinfo.go +++ b/typedapi/types/writesummaryinfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // WriteSummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191 type WriteSummaryInfo struct { // Count The number of write operations performed in the test. Count int `json:"count"` diff --git a/typedapi/types/xlmrobertatokenizationconfig.go b/typedapi/types/xlmrobertatokenizationconfig.go new file mode 100644 index 0000000000..9c96480596 --- /dev/null +++ b/typedapi/types/xlmrobertatokenizationconfig.go @@ -0,0 +1,152 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate" +) + +// XlmRobertaTokenizationConfig type. +// +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L200-L200 +type XlmRobertaTokenizationConfig struct { + // DoLowerCase Should the tokenizer lower case the text + DoLowerCase *bool `json:"do_lower_case,omitempty"` + // MaxSequenceLength Maximum input sequence length for the model + MaxSequenceLength *int `json:"max_sequence_length,omitempty"` + // Span Tokenization spanning options. Special value of -1 indicates no spanning + // takes place + Span *int `json:"span,omitempty"` + // Truncate Should tokenization input be automatically truncated before sending to the + // model for inference + Truncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"` + // WithSpecialTokens Is tokenization completed with special tokens + WithSpecialTokens *bool `json:"with_special_tokens,omitempty"` +} + +func (s *XlmRobertaTokenizationConfig) 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 "do_lower_case": + 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", "DoLowerCase", err) + } + s.DoLowerCase = &value + case bool: + s.DoLowerCase = &v + } + + case "max_sequence_length": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "MaxSequenceLength", err) + } + s.MaxSequenceLength = &value + case float64: + f := int(v) + s.MaxSequenceLength = &f + } + + case "span": + + 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", "Span", err) + } + s.Span = &value + case float64: + f := int(v) + s.Span = &f + } + + case "truncate": + if err := dec.Decode(&s.Truncate); err != nil { + return fmt.Errorf("%s | %w", "Truncate", err) + } + + case "with_special_tokens": + 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", "WithSpecialTokens", err) + } + s.WithSpecialTokens = &value + case bool: + s.WithSpecialTokens = &v + } + + } + } + return nil +} + +// NewXlmRobertaTokenizationConfig returns a XlmRobertaTokenizationConfig. +func NewXlmRobertaTokenizationConfig() *XlmRobertaTokenizationConfig { + r := &XlmRobertaTokenizationConfig{} + + return r +} + +// true + +type XlmRobertaTokenizationConfigVariant interface { + XlmRobertaTokenizationConfigCaster() *XlmRobertaTokenizationConfig +} + +func (s *XlmRobertaTokenizationConfig) XlmRobertaTokenizationConfigCaster() *XlmRobertaTokenizationConfig { + return s +} diff --git a/typedapi/types/xpackdatafeed.go b/typedapi/types/xpackdatafeed.go index c1cb2fe96b..4c2edceab5 100644 --- a/typedapi/types/xpackdatafeed.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // XpackDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L74-L76 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L74-L76 type XpackDatafeed struct { Count int64 `json:"count"` } diff --git a/typedapi/types/xpackfeature.go b/typedapi/types/xpackfeature.go index 38af7a4584..a8686dd2e0 100644 --- a/typedapi/types/xpackfeature.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // XpackFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/info/types.ts#L85-L90 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/info/types.ts#L85-L90 type XpackFeature struct { Available bool `json:"available"` Description *string `json:"description,omitempty"` diff --git a/typedapi/types/xpackfeatures.go b/typedapi/types/xpackfeatures.go index 27d6b95a0b..c9176f4d2d 100644 --- a/typedapi/types/xpackfeatures.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types // XpackFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/info/types.ts#L42-L83 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/info/types.ts#L42-L83 type XpackFeatures struct { AggregateMetric XpackFeature `json:"aggregate_metric"` Analytics XpackFeature `json:"analytics"` diff --git a/typedapi/types/xpackquery.go b/typedapi/types/xpackquery.go index 59329a69f3..ea7acbb4ea 100644 --- a/typedapi/types/xpackquery.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // XpackQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L269-L274 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L269-L274 type XpackQuery struct { Count *int `json:"count,omitempty"` Failed *int `json:"failed,omitempty"` diff --git a/typedapi/types/xpackrealm.go b/typedapi/types/xpackrealm.go index 414ecce9b2..08b4d111c0 100644 --- a/typedapi/types/xpackrealm.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // XpackRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L427-L436 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L427-L436 type XpackRealm struct { Available bool `json:"available"` Cache []RealmCache `json:"cache,omitempty"` diff --git a/typedapi/types/xpackrolemapping.go b/typedapi/types/xpackrolemapping.go index 93c972fe24..aa31cfa12d 100644 --- a/typedapi/types/xpackrolemapping.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // XpackRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L280-L283 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L280-L283 type XpackRoleMapping struct { Enabled int `json:"enabled"` Size int `json:"size"` diff --git a/typedapi/types/xpackruntimefieldtypes.go b/typedapi/types/xpackruntimefieldtypes.go index 4f4440c5a3..addb8cbee9 100644 --- a/typedapi/types/xpackruntimefieldtypes.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // XpackRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/types.ts#L285-L287 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/types.ts#L285-L287 type XpackRuntimeFieldTypes struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/zeroshotclassificationinferenceoptions.go b/typedapi/types/zeroshotclassificationinferenceoptions.go index a101c9fd1f..0b10d2f752 100644 --- a/typedapi/types/zeroshotclassificationinferenceoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L185-L206 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L216-L237 type ZeroShotClassificationInferenceOptions struct { // ClassificationLabels The zero shot classification labels indicating entailment, neutral, and // contradiction diff --git a/typedapi/types/zeroshotclassificationinferenceupdateoptions.go b/typedapi/types/zeroshotclassificationinferenceupdateoptions.go index 0a20fe6a49..b203e637e6 100644 --- a/typedapi/types/zeroshotclassificationinferenceupdateoptions.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/ml/_types/inference.ts#L362-L371 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/ml/_types/inference.ts#L393-L402 type ZeroShotClassificationInferenceUpdateOptions struct { // Labels The labels to predict. Labels []string `json:"labels"` diff --git a/typedapi/watcher/ackwatch/ack_watch.go b/typedapi/watcher/ackwatch/ack_watch.go index 69fd06b210..5c324196f2 100644 --- a/typedapi/watcher/ackwatch/ack_watch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Acknowledge a watch. // Acknowledging a watch enables you to manually throttle the execution of the @@ -111,7 +111,7 @@ func NewAckWatchFunc(tp elastictransport.Interface) NewAckWatch { // This happens when the condition of the watch is not met (the condition // evaluates to false). // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-ack-watch func New(tp elastictransport.Interface) *AckWatch { r := &AckWatch{ transport: tp, diff --git a/typedapi/watcher/ackwatch/response.go b/typedapi/watcher/ackwatch/response.go index d5551b1372..7b89702df5 100644 --- a/typedapi/watcher/ackwatch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package ackwatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package ackwatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24 type Response struct { Status types.WatchStatus `json:"status"` } diff --git a/typedapi/watcher/activatewatch/activate_watch.go b/typedapi/watcher/activatewatch/activate_watch.go index b2e7a93b6b..fcfa9a8903 100644 --- a/typedapi/watcher/activatewatch/activate_watch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Activate a watch. // A watch can be either active or inactive. @@ -80,7 +80,7 @@ func NewActivateWatchFunc(tp elastictransport.Interface) NewActivateWatch { // Activate a watch. // A watch can be either active or inactive. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-activate-watch func New(tp elastictransport.Interface) *ActivateWatch { r := &ActivateWatch{ transport: tp, diff --git a/typedapi/watcher/activatewatch/response.go b/typedapi/watcher/activatewatch/response.go index 8c6deb5738..ccd7928af4 100644 --- a/typedapi/watcher/activatewatch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package activatewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package activatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24 type Response struct { Status types.ActivationStatus `json:"status"` } diff --git a/typedapi/watcher/deactivatewatch/deactivate_watch.go b/typedapi/watcher/deactivatewatch/deactivate_watch.go index 483a7c8f6e..cc11450122 100644 --- a/typedapi/watcher/deactivatewatch/deactivate_watch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Deactivate a watch. // A watch can be either active or inactive. @@ -80,7 +80,7 @@ func NewDeactivateWatchFunc(tp elastictransport.Interface) NewDeactivateWatch { // Deactivate a watch. // A watch can be either active or inactive. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-deactivate-watch func New(tp elastictransport.Interface) *DeactivateWatch { r := &DeactivateWatch{ transport: tp, diff --git a/typedapi/watcher/deactivatewatch/response.go b/typedapi/watcher/deactivatewatch/response.go index bfbbb830de..4d37eed7a5 100644 --- a/typedapi/watcher/deactivatewatch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deactivatewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deactivatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24 type Response struct { Status types.ActivationStatus `json:"status"` } diff --git a/typedapi/watcher/deletewatch/delete_watch.go b/typedapi/watcher/deletewatch/delete_watch.go index 9b4387a551..4a51bf8db2 100644 --- a/typedapi/watcher/deletewatch/delete_watch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Delete a watch. // When the watch is removed, the document representing the watch in the @@ -100,7 +100,7 @@ func NewDeleteWatchFunc(tp elastictransport.Interface) NewDeleteWatch { // When Elasticsearch security features are enabled, make sure no write // privileges are granted to anyone for the `.watches` index. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-delete-watch func New(tp elastictransport.Interface) *DeleteWatch { r := &DeleteWatch{ transport: tp, diff --git a/typedapi/watcher/deletewatch/response.go b/typedapi/watcher/deletewatch/response.go index 1bdc80e5fc..263eb6bac7 100644 --- a/typedapi/watcher/deletewatch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package deletewatch // Response holds the response body struct for the package deletewatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/delete_watch/DeleteWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/delete_watch/DeleteWatchResponse.ts#L22-L24 type Response struct { Found bool `json:"found"` Id_ string `json:"_id"` diff --git a/typedapi/watcher/executewatch/execute_watch.go b/typedapi/watcher/executewatch/execute_watch.go index 593f80a939..2ea6117902 100644 --- a/typedapi/watcher/executewatch/execute_watch.go +++ b/typedapi/watcher/executewatch/execute_watch.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Run a watch. // This API can be used to force execution of the watch outside of its @@ -128,7 +128,7 @@ func NewExecuteWatchFunc(tp elastictransport.Interface) NewExecuteWatch { // the API will be used as a base, instead of the information who stored the // watch. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-execute-watch func New(tp elastictransport.Interface) *ExecuteWatch { r := &ExecuteWatch{ transport: tp, diff --git a/typedapi/watcher/executewatch/request.go b/typedapi/watcher/executewatch/request.go index 04098452b7..48e4dab48c 100644 --- a/typedapi/watcher/executewatch/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package executewatch @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L105 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L105 type Request struct { // ActionModes Determines how to handle the watch actions as part of the watch execution. diff --git a/typedapi/watcher/executewatch/response.go b/typedapi/watcher/executewatch/response.go index 11b919cda3..34c7650ee5 100644 --- a/typedapi/watcher/executewatch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package executewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L34 type Response struct { // Id_ The watch record identifier as it would be stored in the `.watcher-history` diff --git a/typedapi/watcher/getsettings/get_settings.go b/typedapi/watcher/getsettings/get_settings.go index 8f8219df6b..998bf60f0c 100644 --- a/typedapi/watcher/getsettings/get_settings.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get Watcher index settings. // Get settings for the Watcher internal index (`.watches`). @@ -76,7 +76,7 @@ func NewGetSettingsFunc(tp elastictransport.Interface) NewGetSettings { // Only a subset of settings are shown, for example `index.auto_expand_replicas` // and `index.number_of_replicas`. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-settings.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-get-settings func New(tp elastictransport.Interface) *GetSettings { r := &GetSettings{ transport: tp, diff --git a/typedapi/watcher/getsettings/response.go b/typedapi/watcher/getsettings/response.go index e6653d37b9..1b20a76010 100644 --- a/typedapi/watcher/getsettings/response.go +++ b/typedapi/watcher/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/get_settings/WatcherGetSettingsResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/get_settings/WatcherGetSettingsResponse.ts#L22-L26 type Response struct { Index types.IndexSettings `json:"index"` } diff --git a/typedapi/watcher/getwatch/get_watch.go b/typedapi/watcher/getwatch/get_watch.go index 169c855775..d697935200 100644 --- a/typedapi/watcher/getwatch/get_watch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get a watch. package getwatch @@ -78,7 +78,7 @@ func NewGetWatchFunc(tp elastictransport.Interface) NewGetWatch { // Get a watch. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-get-watch func New(tp elastictransport.Interface) *GetWatch { r := &GetWatch{ transport: tp, diff --git a/typedapi/watcher/getwatch/response.go b/typedapi/watcher/getwatch/response.go index 301c67a4e3..37eae89b4a 100644 --- a/typedapi/watcher/getwatch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package getwatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getwatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/get_watch/GetWatchResponse.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/get_watch/GetWatchResponse.ts#L24-L34 type Response struct { Found bool `json:"found"` Id_ string `json:"_id"` diff --git a/typedapi/watcher/putwatch/put_watch.go b/typedapi/watcher/putwatch/put_watch.go index 4dcc1b41c1..0551bc3d87 100644 --- a/typedapi/watcher/putwatch/put_watch.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Create or update a watch. // When a watch is registered, a new document that represents the watch is added @@ -121,7 +121,7 @@ func NewPutWatchFunc(tp elastictransport.Interface) NewPutWatch { // If the user is able to read index `a`, but not index `b`, the same will apply // when the watch runs. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-put-watch func New(tp elastictransport.Interface) *PutWatch { r := &PutWatch{ transport: tp, diff --git a/typedapi/watcher/putwatch/request.go b/typedapi/watcher/putwatch/request.go index 4c3d0079e3..976b91f027 100644 --- a/typedapi/watcher/putwatch/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putwatch @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/put_watch/WatcherPutWatchRequest.ts#L31-L110 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/put_watch/WatcherPutWatchRequest.ts#L31-L110 type Request struct { // Actions The list of actions that will be run if the condition matches. diff --git a/typedapi/watcher/putwatch/response.go b/typedapi/watcher/putwatch/response.go index e397d844d4..540952483d 100644 --- a/typedapi/watcher/putwatch/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package putwatch // Response holds the response body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31 type Response struct { Created bool `json:"created"` Id_ string `json:"_id"` diff --git a/typedapi/watcher/querywatches/query_watches.go b/typedapi/watcher/querywatches/query_watches.go index a2f459f03b..3e049c5204 100644 --- a/typedapi/watcher/querywatches/query_watches.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Query watches. // Get all registered watches in a paginated manner and optionally filter @@ -83,7 +83,7 @@ func NewQueryWatchesFunc(tp elastictransport.Interface) NewQueryWatches { // // Note that only the `_id` and `metadata.*` fields are queryable or sortable. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-query-watches.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-query-watches func New(tp elastictransport.Interface) *QueryWatches { r := &QueryWatches{ transport: tp, diff --git a/typedapi/watcher/querywatches/request.go b/typedapi/watcher/querywatches/request.go index 69c197fbf6..1e1264555f 100644 --- a/typedapi/watcher/querywatches/request.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package querywatches @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L70 type Request struct { // From The offset from the first result to fetch. diff --git a/typedapi/watcher/querywatches/response.go b/typedapi/watcher/querywatches/response.go index d8f9495948..2ce3926a87 100644 --- a/typedapi/watcher/querywatches/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package querywatches @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L34 type Response struct { // Count The total number of watches found. diff --git a/typedapi/watcher/start/response.go b/typedapi/watcher/start/response.go index 3272425a99..9455774225 100644 --- a/typedapi/watcher/start/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/start/WatcherStartResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/watcher/start/start.go b/typedapi/watcher/start/start.go index bb9bdd2faf..26efdbed99 100644 --- a/typedapi/watcher/start/start.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Start the watch service. // Start the Watcher service if it is not already running. @@ -72,7 +72,7 @@ func NewStartFunc(tp elastictransport.Interface) NewStart { // Start the watch service. // Start the Watcher service if it is not already running. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-start func New(tp elastictransport.Interface) *Start { r := &Start{ transport: tp, diff --git a/typedapi/watcher/stats/response.go b/typedapi/watcher/stats/response.go index 3fef7b3241..22d93d5ffe 100644 --- a/typedapi/watcher/stats/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/stats/WatcherStatsResponse.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/stats/WatcherStatsResponse.ts#L24-L32 type Response struct { ClusterName string `json:"cluster_name"` ManuallyStopped bool `json:"manually_stopped"` diff --git a/typedapi/watcher/stats/stats.go b/typedapi/watcher/stats/stats.go index 39fc850a39..4cde8824a5 100644 --- a/typedapi/watcher/stats/stats.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get Watcher statistics. // This API always returns basic metrics. @@ -80,7 +80,7 @@ func NewStatsFunc(tp elastictransport.Interface) NewStats { // This API always returns basic metrics. // You retrieve more metrics by using the metric parameter. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stats func New(tp elastictransport.Interface) *Stats { r := &Stats{ transport: tp, diff --git a/typedapi/watcher/stop/response.go b/typedapi/watcher/stop/response.go index 968a932fbf..4ef43437fb 100644 --- a/typedapi/watcher/stop/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/stop/WatcherStopResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/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/typedapi/watcher/stop/stop.go b/typedapi/watcher/stop/stop.go index 1d8e4d0e09..3c52699d70 100644 --- a/typedapi/watcher/stop/stop.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Stop the watch service. // Stop the Watcher service if it is running. @@ -72,7 +72,7 @@ func NewStopFunc(tp elastictransport.Interface) NewStop { // Stop the watch service. // Stop the Watcher service if it is running. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stop func New(tp elastictransport.Interface) *Stop { r := &Stop{ transport: tp, diff --git a/typedapi/watcher/updatesettings/request.go b/typedapi/watcher/updatesettings/request.go index 737e0fc4dd..773d2b7cb4 100644 --- a/typedapi/watcher/updatesettings/request.go +++ b/typedapi/watcher/updatesettings/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatesettings @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts#L24-L58 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts#L24-L61 type Request struct { IndexAutoExpandReplicas *string `json:"index.auto_expand_replicas,omitempty"` IndexNumberOfReplicas *int `json:"index.number_of_replicas,omitempty"` diff --git a/typedapi/watcher/updatesettings/response.go b/typedapi/watcher/updatesettings/response.go index d280b0e423..5dc732fc69 100644 --- a/typedapi/watcher/updatesettings/response.go +++ b/typedapi/watcher/updatesettings/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package updatesettings // Response holds the response body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/watcher/update_settings/WatcherUpdateSettingsResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/watcher/update_settings/WatcherUpdateSettingsResponse.ts#L20-L24 type Response struct { Acknowledged bool `json:"acknowledged"` } diff --git a/typedapi/watcher/updatesettings/update_settings.go b/typedapi/watcher/updatesettings/update_settings.go index 86346d9f69..541bb6b9d4 100644 --- a/typedapi/watcher/updatesettings/update_settings.go +++ b/typedapi/watcher/updatesettings/update_settings.go @@ -16,12 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Update Watcher index settings. // Update settings for the Watcher internal index (`.watches`). // Only a subset of settings can be modified. -// This includes `index.auto_expand_replicas` and `index.number_of_replicas`. +// This includes `index.auto_expand_replicas`, `index.number_of_replicas`, +// `index.routing.allocation.exclude.*`, +// `index.routing.allocation.include.*` and +// `index.routing.allocation.require.*`. +// Modification of `index.routing.allocation.include._tier_preference` is an +// exception and is not allowed as the +// Watcher shards must always be in the `data_content` tier. package updatesettings import ( @@ -79,9 +85,15 @@ func NewUpdateSettingsFunc(tp elastictransport.Interface) NewUpdateSettings { // Update Watcher index settings. // Update settings for the Watcher internal index (`.watches`). // Only a subset of settings can be modified. -// This includes `index.auto_expand_replicas` and `index.number_of_replicas`. +// This includes `index.auto_expand_replicas`, `index.number_of_replicas`, +// `index.routing.allocation.exclude.*`, +// `index.routing.allocation.include.*` and +// `index.routing.allocation.require.*`. +// Modification of `index.routing.allocation.include._tier_preference` is an +// exception and is not allowed as the +// Watcher shards must always be in the `data_content` tier. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-update-settings.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-update-settings func New(tp elastictransport.Interface) *UpdateSettings { r := &UpdateSettings{ transport: tp, diff --git a/typedapi/xpack/info/info.go b/typedapi/xpack/info/info.go index 4502f0691b..12a50631c2 100644 --- a/typedapi/xpack/info/info.go +++ b/typedapi/xpack/info/info.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get information. // The information provided by the API includes: diff --git a/typedapi/xpack/info/response.go b/typedapi/xpack/info/response.go index 8da4e19864..a2105acc8d 100644 --- a/typedapi/xpack/info/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/info/XPackInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/info/XPackInfoResponse.ts#L22-L29 type Response struct { Build types.BuildInformation `json:"build"` Features types.XpackFeatures `json:"features"` diff --git a/typedapi/xpack/usage/response.go b/typedapi/xpack/usage/response.go index 3cbec8138b..8348cbacdd 100644 --- a/typedapi/xpack/usage/response.go +++ b/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/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 package usage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/0f6f3696eb685db8b944feefb6a209ad7e385b9c/specification/xpack/usage/XPackUsageResponse.ts#L43-L79 +// https://github.com/elastic/elasticsearch-specification/blob/f1932ce6b46a53a8342db522b1a7883bcc9e0996/specification/xpack/usage/XPackUsageResponse.ts#L43-L79 type Response struct { AggregateMetric types.Base `json:"aggregate_metric"` Analytics types.Analytics `json:"analytics"` diff --git a/typedapi/xpack/usage/usage.go b/typedapi/xpack/usage/usage.go index 7fd2e072c0..87720ad6b7 100644 --- a/typedapi/xpack/usage/usage.go +++ b/typedapi/xpack/usage/usage.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/0f6f3696eb685db8b944feefb6a209ad7e385b9c +// https://github.com/elastic/elasticsearch-specification/tree/f1932ce6b46a53a8342db522b1a7883bcc9e0996 // Get usage information. // Get information about the features that are currently enabled and available @@ -76,7 +76,7 @@ func NewUsageFunc(tp elastictransport.Interface) NewUsage { // under the current license. // The API also provides some usage statistics. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html +// https://www.elastic.co/docs/api/doc/elasticsearch/v8/group/endpoint-xpack func New(tp elastictransport.Interface) *Usage { r := &Usage{ transport: tp,